User Manual
58
Users Manual of XGS-6350-24X4C
packet. Use the following command in global configuration mode:
Command Function
snmp-server packetsizebyte-count
Sets the maximum length of the data
packet.
e) Monitoring SNMP state
You can run the following command in global configuration mode to monitor SNMP output/input statistics,
including illegal community character string items, number of mistakes and request variables.
Command Function
show snmp
Monitores the SNMP state.
f) Configuring SNMP trap
Use the following command to configure the system to send the SNMP traps (the second task is
optional):
Configuring the system to send trap
Run the following commands in global configuration mode to configure the system to send trap to a host.
Command Function
snmp-server host host
community-string[trap-type]
Specifies the receiver of the trap
message.
snmp-server hosthost
[traps|informs]{version {v1 | v2c | v3 {auth |
noauth | priv } }}community-string [trap-type]
Specifies the receiver, version number
and username of the trap message.
Note: For the trap of SNMPv3, you must
configure SNMP engine ID for the host before
the host is configured to receive the trap
message.
When the system is started, the SNMP agent will automatically run. All types of traps are activated. You can
use the command snmp-server host to specify which host will receive which kind of trap.
Some traps need to be controlled through other commands. For example, if you want SNMP link traps to be
sent when an interface is opened or closed, you need to run snmp trap link-status in interface configuration
mode to activate link traps. To close these traps, run the interface configuration command snmp trap
link-stat.
You have to configure the command snmp-server host for the host to receive the traps.
Modifying the running parameter of the trap
As an optional item, it can specify the source interface where traps originate, queue length of message or
value of resending interval for each host.
To modify the running parameters of traps, you can run the following optional commands in global
configuration mode.
Command Function










