CLI Reference Guide-R04

Table Of Contents
Chapter 5
| SNMP Commands
SNMP Target Host Commands
– 198 –
Example
Console(config)#snmp-server host 10.1.19.23 batman
Console(config)#
Related Commands
snmp-server enable traps (194)
snmp-server
enable port-traps link-
up-down
This command enables the device to send SNMP traps from a specific interface (i.e.,
SNMP notifications) when the ports link toggles its status from up to down or
down to up. Use the no form to disable SNMP traps being sent.
Syntax
[no] snmp-server enable port-traps link-up-down
Default Setting
Disabled
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
This command can enable SNMP traps on the current interface only if they are also
enabled at the global level with the snmp-server enable traps command.
Example
Console(config)#interface ethernet 1/1
Console(config-if)#snmp-server enable port-traps link-up-down
Console(config)#
snmp-server
enable port-traps
mac-notification
This command enables the device to send SNMP traps (i.e., SNMP notifications)
when a dynamic MAC address is added or removed. Use the no form to restore the
default setting.
Syntax
[no] snmp-server enable port-traps mac-notification
mac-notification - Keyword to issue trap when a dynamic MAC address is
added or removed.
Default Setting
Disabled