6-7
Cisco Global Site Selector Administration Guide
OL-10410-01
Chapter 6 Configuring SNMP
Specifying Recipients for SNMP Notification Operations
Specifying Recipients for SNMP Notification
Operations
You can specify the recipient of an SNMP notification operation by using the
snmp-server host
command in global configuration mode. To remove the
specified host, use the
no
form of this command.
To specify the recipient of an SNMP notification operation, perform the following
steps:
1.
Log in to the CLI and enable privileged EXEC mode.
gss1.example.com>
enable
gss1.example.com#
2.
Access global configuration mode.
gss1.example.com#
config
gss1.example.com(config)#
3.
Enable the SNMP agent by entering the following command:
gss1.example.com(config)#
snmp enable
4.
Specify the recipients of SNMP notification operations by using the
snmp-server host
command and a
host-address
and a
community-string
.
gss1.example.com(config)#
snmp-server host 10.1.1.1 MyCommunity
5.
Send SNMP traps to the specified host by entering the following command:
gss1.example.com(config)#
snmp-server host 10.1.1.1 MyCommunity
traps
Note
You can configure a maximum of 10 hosts for traps notification.
6.
Specify the version of the SNMP protocol used to send the traps by entering
the
version
command and one of the available keywords:
•
1—Specifies SNMPv1 (the default).
•
2—Specifies SNMPv2c.
gss1.example.com(config)#
snmp-server host 10.1.1.1 MyCommunity
traps version 2