3com 8807 참조 가이드

다운로드
페이지 1099
SNMP Configuration Commands
913
Description
Use the snmp-agent trap enable command to enable the sending of Trap 
messages.
Use the undo snmp-agent trap enable command to disable the sending of Trap 
messages.
By default, Trap message sending is disabled.
The snmp-agent trap enable command and 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 the 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 
community name is public.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] snmp-agent trap enable standard authentication
 
[SW8800] snmp-agent target-host trap address udp-domain 10.1.1.1 
 
params securityname public 
snmp-agent trap life
Syntax
snmp-agent trap life seconds
undo snmp-agent trap life
View
System view
Parameter
seconds: Specifies the timeouts, ranging from 1 to 2,592,000 seconds; By default, 
the timeout interval is 120 seconds.
Description
Use the snmp-agent trap life command to configure the timeout of Trap 
packets.
Use the undo snmp-agent trap life command to restore the default value.
The set timeout of Trap packet is represented by seconds. If time exceeds seconds
this Trap packet will be discarded.
Related command: snmp-agent trap enable, snmp-agent target-host .
Example
# Configure the timeout interval of Trap packet as 60 seconds.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] snmp-agent trap life 60