3com 8807 사용자 가이드

다운로드
페이지 883
740
C
HAPTER
 64: SNMP C
ONFIGURATION
By default, the contact information for system maintenance is "R&D Hangzhou, 
3Com 3Com Technology Co., Ltd.", the physical location information is 
"Hangzhou China", and the version is SNMPv1, SNMPv2C, and SNMPv3.
Enabling/Disabling 
SNMP Agent to Send 
Trap
The managed device transmits trap without request to the Network Management 
Station to report some critical and urgent events (such as restart).
You can use the following commands to enable or disable the managed device to 
send trap message.
Perform the following configuration in corresponding views.
By default, the current port or VLAN interface sends trap messages.
Setting the Destination 
Address of Trap
You can use the following commands to set or delete the destination address of 
the trap.
Perform the following configuration in system view.
Table 679   Set the system information
Operation 
Command 
Set the system 
information 
snmp-agent sys-info { contact sysContact | location sysLocation | 
version { { v1 | v2c | v3 }* | all } } 
Restore the default 
information 
undo snmp-agent sys-info { { contact | location }* | version { { 
v1 | v2c | v3 }* | all } }
Table 680   Enable/disable SNMP Agent to send Trap
Operation 
Command 
Enable the sending of 
trap(system view) 
snmp-agent trap enable [ standard [ authentication ] [ 
coldstart ] [ linkdown ] [ linkup ] | bgp [ 
backwardtransition ] [ established ] | vrrp [ authfailure 
newmaster ] ] 
Disable the sending of 
trap(system view) 
undo snmp-agent trap enable [ standard [ 
authentication ] [ coldstart ] [ linkdown ] [ linkup ] | bgp 
backwardtransition ] [ established ] | vrrp [ 
authfailure | newmaster ] ] 
Enable the switch ports to send 
SNMP trap messages (Ethernet 
port view or VLAN interface 
view) 
enable snmp trap updown 
Disable the switch port to send 
SNMP trap messages (Ethernet 
port view or VLAN interface 
view) 
undo enable snmp trap updown
Table 681   Set the destination address of trap
Operation 
Command 
Set the destination address 
of trap 
snmp-agent target-host trap address udp-domain 
host-addr [ udp-port udp-port-number ] params 
securityname securityname [ v1 | v2c | v3 [ authentication | 
privacy ] ]