480 CHAPTER 12: USING SYSTEM MANAGEMENT COMMANDS
Number of GetReq msgs sent :0
Number of GetNextReq msgs Received :0
Number of GetNextReq msgs sent :0
Number of GetResp msgs received :0
Number of GetResp msgs sent :0
Number of GetNextResp msgs received :0
Number of GetNextResp msgs sent :0
Number of SnmpMibSync msgs received :0
Number of SnmpMibSync msgs sent :0
Number of SnmpMibGetCntrReq msgs received :0
Number of SnmpMibGetCntrReq msgs sent :0
Number of SnmpMibGetCntrResp msgs received :0
Number of SnmpMibGetCntrResp msgs sent :0
enable snmp trap Syntax
enable snmp trap updown
undo enable snmp trap updown
View
Ethernet port view
Parameter
None.
Description
Use the enable snmp trap updown command to enable the current port to
transmit the LINK UP and LINK DOWN trap information.
Use the undo enable snmp trap updown command to disable the current port to
transmit the LINK UP and LINK DOWN trap information.
The command is not available for the Loopback interface, NULL interface and AUX
interface.
Example
Enable the current port GigabitEthernet1/0/1 to transmit the LINK UP and LINK
DOWN trap information.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]interface GigabitEthernet 1/0/1
[SW5500-GigabitEthernet1/0/1]enable snmp trap updown
snmp-agent community Syntax
snmp-agent community { read | write }
community-name
[ mib-view
view-name
] [ acl
acl-list
] ]
undo snmp-agent community
community-name