282 CHAPTER 16: SNMP CONFIGURATION
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 317 Set the Destination Address of Trap
Setting Lifetime of Trap
Message
You can use the following command to set the 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.
Table 318 Set the Lifetime of Trap Message
By default, the lifetime of Trap message is 120 seconds.
Setting SNMP System
Information
The SNMP system information includes the character string sysContact (system
contact), the character string describing the system location, the version
information about the SNMP operating in the system.
You can use the following commands to set the system information.
Perform the following configuration in System View.
Table 319 Set SNMP System Information
By default, the sysLocation is specified as a blank string, that is, “”.
Setting the Engine ID of
a Local or Remote
Device
You can use the following commands to set the engine ID of a local or remote
device.
Perform the following configuration in System View.
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
Operation Command
Set lifetime of Trap message snmp-agent trap life seconds
Restore lifetime of Trap message undo snmp-agent trap life
Operation Command
Set SNMP System Information snmp-agent sys-info { contact sysContact |
location syslocation | version { { v1 | v2c
| v3 } * | all } }
Restore the default SNMP System
Information of the Switch
undo snmp-agent sys-info [ { contact |
location }* | version { { v1 | v2c | v3 }*
| all } ]