System information
Configuring SNMP
4-25
2. Use the no snmp-server host command to remove the specified host.
Specifying Specific Trap Types
Use the snmp-server host traps command in Global Configuration mode to
configure an SNMP trap host to receive specific trap types as shown below. If no trap
type is specified, all traps are sent to this trap host.
MOT(config)#snmp-server host <ip-address> traps <community-string>
[udp-port <port>] [snmp | ospf | vrrp | bgp]
where:
ip-address is the IP address of the host
community-string is the password; valid entry is from 1 to 32 alphabetic
characters.
port is the UDP port number; valid values are 0 to 65535.
Specifying SNMP Trap Versions
Using the snmp-server host version command in Global Configuration mode to
configure the SNMP trap version for the specified trap type as shown in the example
below. If no trap type is specified, all traps are sent to this trap host.
MOT(config)#snmp-server host <ip-address> version {1 | 2c | 3 auth | 3 noauth
| 3 priv} <community-string> [udp-port <port>] [snmp | ospf | vrrp | bgp]
where:
ip-address is the IP address of the host.
community-string is the password; valid entry is from 1 to 32 alphabetic
characters.
Note: If the community-string is not defined using snmp-server community
command prior to using the snmp-server host command, the default form of
the snmp-server community command is automatically inserted into the
configuration. The password (community-string) used for this default
configuration is the same as that specified in the snmp-server host
command.