Specifications

14-17
System Management Software Configuration Guide for Cisco IE 2000U and Connected Grid Switches
Chapter 14 Configuring SNMP
Configuring SNMP
To remove the specified host from receiving traps, use the no snmp-server host host global
configuration command. The no snmp-server host command with no keywords disables traps, but not
informs, to the host. To disable informs, use the no snmp-server host informs global configuration
command. To disable a specific trap type, use the no snmp-server enable traps notification-types global
configuration command.
EXAMPLE
The following example specifies the engine ID for the remote host, an SNMP user to be associated with
the remote host, an SNMP group, the host that will receive the informs:
Switch(config)# snmp-server engineID remote 172.16.20.3 80000009030000B064EFE100
Switch(config)# snmp-server user abcd public remote 172.16.20.3 v3 encrypted auth md5
publichost remotehostusers
Switch(config)# snmp-server group GROUP1 v2c auth read viewA write viewA notify viewB
Switch(config)# snmp-server host example.com informs version 3 public
Switch(config)# snmp-server enable traps bgp
Switch(config)# exit
Step 6
snmp-server enable traps
notification-types
Enable the switch to send traps or informs and specify the type of
notifications to be sent. For a list of notification types, see
Table 14-4 on page 14-14, or enter snmp-server enable traps ?
To enable multiple types of traps, you must enter a separate
snmp-server enable traps command for each trap type.
Note When you configure a trap by using the notification type
port-security, configure the port security trap first, and
then configure the port security trap rate:
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate rate
Step 7
snmp-server trap-source
interface-id
(Optional) Specify the source interface, which provides the IP
address for the trap message. This command also sets the source
IP address for informs.
Step 8
snmp-server queue-length length (Optional) Establish the message queue length for each trap host.
The range is 1 to 1000; the default is 10.
Step 9
snmp-server trap-timeout
seconds
(Optional) Define how often to resend trap messages. The range
is 1 to 1000; the default is 30 seconds.
Step 10
end Return to privileged EXEC mode.
Step 11
show running-config Verify your entries.
Step 12
copy running-config
startup-config
(Optional) Save your entries in the configuration file.
Command Purpose