Switch 7700 Command reference Guide, v2.0

Table Of Contents
SNMP Configuration Commands 479
Parameter
snmp: Configure to send SNMP Trap packets.
authentication: Configure to send SNMP authentication Trap packets.
coldstart: Configure to send SNMP cold start Trap packets.
linkdown: Configure to send SNMP link down Trap packets.
linkup: Configure to send SNMP link up Trap packets.
warmstart: Configure to send SNMP warm start Trap packets.
Description
Using the snmp-agent trap enable command, you can enable the device to send
Trap message. Using the
undo snmp-agent trap enable command, you can
disable Trap message sending.
By default, Trap message sending is disabled.
The snmp-agent trap enable command and the snmp-agent target-host
command should be used at the same time. The
snmp-agent target-host
command specifies which hosts can receive Trap message. However, to send Trap
message, at least one
snmp-agent target-host command should be configured.
Example
Enable to send the trap packet of SNMP authentication failure to 10.1.1.1. The
packet is in the V2C format and the community name is 3Com.
[SW7700]snmp-agent trap enable standard authentication
[SW7700]snmp-agent target-host 10.1.1.1 version 2c 3Com
snmp-agent trap life Syntax
snmp-agent trap life seconds
undo snmp-agent trap life
View
System view
Parameter
seconds: Specify the timeouts, ranging from 1 to 2592000 seconds. By default,
the timeout interval is 120 seconds.
Description
Using the snmp-agent trap life command, you can set the timeout of Trap
packets. Using the
undo snmp-agent trap life command, you can restore the
default value.
The set timeout of Trap packet is represented by seconds. If time exceeds
seconds, this Trap packet will be discarded.