C
HAPTER
21
| SNMP Commands
SNMP Target Host Commands
– 586 –
COMMAND USAGE
â—† If you do not enter an snmp-server enable traps command, no
notifications controlled by this command are sent. In order to configure
this device to send SNMP notifications, you must enter at least one
snmp-server enable traps command. If you enter the command with
no keywords, both authentication and link-up-down notifications are
enabled. If you enter the command with a keyword, only the
notification type related to that keyword is enabled.
â—† The snmp-server enable traps command is used in conjunction with
the snmp-server host command. Use the snmp-server host command
to specify which host or hosts receive SNMP notifications. In order to
send notifications, you must configure at least one snmp-server host
command.
â—† The authentication, link-up, and link-down traps are legacy
notifications, and therefore when used for SNMP Version 3 hosts, they
must be enabled in conjunction with the corresponding entries in the
Notify View assigned by the snmp-server group command.
EXAMPLE
Console(config)#snmp-server enable traps link-up-down
Console(config)#
RELATED COMMANDS
snmp-server host (586)
snmp-server host This command specifies the recipient of a Simple Network Management
Protocol notification operation. Use the no form to remove the specified
host.
SYNTAX
snmp-server host host-addr [inform [retry retries |
timeout seconds]] community-string
[version {1 | 2c | 3 {auth | noauth | priv} [udp-port port]}
no snmp-server host host-addr
host-addr - Internet address of the host (the targeted recipient).
(Maximum host addresses: 5 trap destination IP address entries)
inform - Notifications are sent as inform messages. Note that this
option is only available for version 2c and 3 hosts. (Default: traps
are used)
retries - The maximum number of times to resend an inform
message if the recipient does not acknowledge receipt. (Range:
0-255; Default: 3)
seconds - The number of seconds to wait for an
acknowledgment before resending an inform message. (Range:
0-2147483647 centiseconds; Default: 1500 centiseconds)