3com 4500 PWR 26-PORT User Manual

Page of 466
SNMP Configuration Commands
389
[SW4500]snmp-agent target-host trap address udp-domain 2.2.2.2 
params securityname comaccess
[SW4500]
To enable Trap messages to be sent to 
2.2.2.2
 with a community name of 
public
, enter the following:
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]snmp-agent trap enable
[SW4500]snmp-agent target-host trap address udp-domain 2.2.2.2 
params securityname public
[SW4500]
snmp-agent trap enable
Syntax
snmp-agent trap enable [ configuration | flash | ospf [ process-id ] 
ospf-trap-list ] | standard [ authentication | coldstart | linkdown 
| linkup | warmstart ]* | system ]
undo snmp-agent trap enable [ bgp [ backwardtransition ] [ 
established ] | configuration | flash | ospf [ process-id ] [ 
ospf-trap-list ] | standard [ authentication | coldstart | linkdown | 
linkup | warmstart ]* | system ]
View
System view
Parameter
configuration:
 Configure to send SNMP configuration Trap packets.
flash:
 Configure to send SNMP flash Trap packets.
ospf [ process-id ] [ ospf-trap-list ]
: Configure to send the OSPF trap 
packets. 
process-id
 is the ID of the OSPF process, ranging from 1 to 65535. 
ospf-trap-list
 is the list of OSPF trap information.
standard [ authentication | coldstart | linkdown | linkup | warmstart 
]*
: Configure to send standard Trap messages. 
authentication
: Configure to send SNMP authentication Trap messages 
when authentication fails. 
coldstart
: Configure to send SNMP cold start Trap messages when switch is 
rebooted. 
linkdown
: Configure to send SNMP link down Trap messages when switch port 
turns down. 
linkup
: Configure to send SNMP link up Trap messages when switch port 
turns up. 
warmstart
: Configure to send SNMP warm start Trap messages when snmp is 
re-enabled.
system:
 Configure to send SysMib trap messages.