
Parameter
None
Default
Enable
Command Mode
Global configuration mode
Example
//Enable the SNMP function of the switch.
switch(config)# snmp
7.2.2
snmp-server trap2sink
Command Description
snmp-server trap2sink ip
//This command is used to configure the SNMP version.
snmp-server trapsink ip
//This command is used to restore the default SNMP version.
Parameter
None
Default
snmp
Command Mode
Global configuration mode
Example
//Configure the SNMP version of the switch.
switch(config)# snmp-server trap2sink 192.168.1.1
7.2.3
snmp-server trap
Command Description
snmp-server trap
//This command is used to enable snmp trap.
no snmp-server trap
//This command is used to disable snmp trap.
Parameter
None
Default
Disable
Command Mode