3com S7906E Guide De Référence

Page de 2327
 
1-11 
Description 
Use the enable snmp trap updown command to enable the trap function for interface state changes. 
Use the undo enable snmp trap updown command to disable the trap function for interface state 
changes. 
By default, the trap function for interface state changes is enabled. 
Note that: 
To enable an interface to generate linkUp/linkDown traps when its state changes, you need to enable 
the Link up/down trap function on the 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 commands: snmp-agent target-hostsnmp-agent trap enable
Examples 
# Enable the sending of linkUp/linkDown SNMP traps on port GigabitEthernet 2/0/1 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 params securityname public 
[Sysname] interface GigabitEthernet 2/0/1 
[Sysname-GigabitEthernet2/0/1] enable snmp trap updown 
snmp-agent 
Syntax 
snmp-agent 
undo snmp-agent 
View 
System view 
Default Level 
3: Manage level 
Parameters 
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. 
You can enable SNMP agent through any commands that begin with snmp-agent
Examples 
# Enable SNMP agent on the device.