Technical data
348 CHAPTER 11: SYSTEM MANAGEMENT
Perform the following configuration in system view.
Setting the Destination Address of a Trap
You can use the following commands to set or delete the destination address of
the trap.
Perform the following configuration in system view.
The authentication parameter specifies that the packet is authenticated without
encryption. This parameter is supported only in SNMP V3.
The privacy parameter specifies that the packet is authenticated and encrypted.
This parameter is supported only in SNMP V3.
Setting the Lifetime of the Trap Message
You can use the following command to set lifetime of a trap message. A trap
message that exists longer than the set lifetime will be dropped.
Perform the following configuration in system view.
By default, the lifetime of a trap message is 120 seconds.
Setting SNMP Information
The SNMP system information includes the character string sysContact (system
contact), the character string describing the system location, and the version
information for SNMP in the system.
Use the following commands to set the system information.
Tab le 46 Enabling and Disabling an SNMP Agent to Send a Trap
Operation Command
Enable to send a trap snmp-agent trap enable [ standard [
authentication ] [ coldstart ] [ linkdown ] [
linkup ] [ warmstart ] ]
Disable to send a trap undo snmp-agent trap enable [ standard [
authentication ] [ linkdown ] [ linkup ] [
coldstart ] [ warmstart ] ]
Tab le 47 Setting the Destination Address of a 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
community-string [ v1 | v2c | v3 {
authentication | privacy } ]
Delete the destination address of trap undo snmp-agent target-host host-addr
securityname community-string
Tab le 48 Setting the Lifetime of the Trap Message
Operation Command
Set lifetime of Trap message snmp-agent trap life seconds
Restore lifetime of Trap message undo snmp-agent trap life