CLI Reference Guide-R07

Table Of Contents
Chapter 5
| SNMP Commands
SNMP Target Host Commands
– 178 –
Command Mode
Interface Configuration (Ethernet, Port Channel)
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
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
This command can enable MAC authentication traps on the current interface only if
they are also enabled at the global level with the snmp-server enable traps mac-
authentication command.
Example
Console(config)#interface ethernet 1/1
Console(config-if)#snmp-server enable port-traps mac-notification
Console(config)#
show snmp-server
enable port-traps
This command shows if SNMP traps are enabled or disabled for the specified
interfaces.
Syntax
show snmp-server enable port-traps interface [interface]
interface
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-10/28)