Setting the Destination
Address of Trap
Setting Lifetime of Trap
Message
Setting SNMP System
Information
Table 417 Enable/Disable SNMP Agent to Send Trap
Operation
Command
Enable to send trap
snmp-agent trap enable [ configuration | flash |
ospf [
[ authentication | coldstart | linkdown | linkup
| warmstart ]* | system ]
Disable to send trap
undo snmp-agent trap enable [ bgp [
backwardtransition ] [ established ] |
configuration | flash | ospf [
ospf-trap-list
coldstart | linkdown | linkup | warmstart ]* |
system ]
You can use the following commands to set or delete the destination address of
the trap.
Perform the following configuration in System View.
Table 418 Set the Destination Address of Trap
Operation
Command
Set the destination
snmp-agent target-host trap address udp-domain
address of trap
host-addr
securityname
authentication | privacy ] ]
Delete the destination
undo snmp-agent target-host
address of trap
securityname
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 419 Set the Lifetime of Trap Message
Operation
Set lifetime of Trap message
Restore lifetime of Trap message
By default, the lifetime of Trap message is 120 seconds.
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 420 Set SNMP System Information
Operation
Set SNMP System Information
process-id
ospf-trap-list
] [
] | standard [ authentication |
udp-port-number
[ udp-port
community-string
community-string
Command
snmp-agent trap life
undo snmp-agent trap life
Command
snmp-agent sys-info { contact
syslocation
location
| v3 } * | all } }
SNMP Configuration
] | standard
process-id
] [
] params
[ v1 | v2c | v3 [
host-addr
seconds
sysContact
| version { { v1 | v2c
347
|
Need help?
Do you have a question about the SuperStack 4 and is the answer not in the manual?
Questions and answers