3com MSR 20-20 참조 매뉴얼

다운로드
페이지 2742
2336
C
HAPTER
 154: SNMP C
ONFIGURATION
 C
OMMANDS
Parameter
None
Description
Use the enable snmp trap updown command to enable the sending of Trap 
messages for interface state change (linkup/linkdown Trap messages).
Use the undo enable snmp trap updown command to disable the sending of 
linkup/linkdown SNMP Trap messages on an interface.
By default, the sending of linkup/linkdown SNMP Trap messages is enabled.
Note that:
To enable an interface to send SNMP Trap packets when its state changes, you 
need to enable the Link up/down Trap packet transmission function on an 
interface and globally. Use the enable snmp trap updown command to enable 
this function on an interface, and use the snmp-agent trap enable [ standard 
linkdown | linkup ] * ] command to enable this function globally.
Related command:
Example
#Enable the sending of linkup/linkdown SNMP Trap messages on the port Ethernet 
1/0 and use the community name public.
<Sysname> system-view
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 pa
rams securityname public
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] enable snmp trap updown 
snmp-agent
Syntax
snmp-agent
undo snmp-agent
View
System view
Parameter
None
Description
Use the snmp-agent command to enable SNMP agent.
Use the undo snmp-agent command to disable SNMP agent.
By default, SNMP agent is disabled.
Example
# Disable the current SNMP agent.
<Sysname> system-view
[Sysname] undo snmp-agent