3com 4500 50-PORT User Manual

Page of 466
SNMP Configuration Commands
391
snmp-agent trap 
queue-size
Syntax
snmp-agent trap queue-size
 length
undo snmp-agent trap queue-size
View
System view
Parameter
length:
 Length of queue, ranging from 1 to 1000; the default length is 100.
Description
Use the 
snmp-agent trap queue-size
 command to configure the information 
queue length of Trap packet sent to destination host. Use the 
undo snmp-agent 
trap queue-size
 command to restore the default value.
For the related commands, see 
snmp-agent trap enable
snmp-agent target-host
snmp-agent trap life
.
Example
Configure the queue length to 200.
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]snmp-agent trap queue-size 200
[SW4500]
snmp-agent trap source
Syntax
snmp-agent trap source vlan-interface vlan-id
undo snmp-agent trap source
View
System view
Parameter
vlan-id: 
Specify the VLAN interface ID, ranging from 1 to 4094.
Description
Use the 
snmp-agent trap source
 command to specify the source address for 
sending Traps. Use the 
undo snmp-agent trap source
 command to cancel the 
source address for sending Traps.
Example
Configure the IP address of the VLAN interface 1 as the source address for 
transmitting the Trap packets. 
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]snmp-agent trap source vlan-interface 1
[SW4500]