3com 8807 User Guide

Page of 883
Displaying and Debugging SNMP
743
Setting the Size of the 
SNMP Packet 
Sent/Received by an 
Agent
You can use the following commands to set the size of SNMP packet sent/received 
by an agent.
Perform the following configuration in system view.
The agent can receive/send the SNMP packets of the sizes ranging from 484 to 
17940, measured in bytes. By default, the size of an SNMP packet is 2000 bytes.
Disabling SNMP Agent
To disable SNMP Agent, perform the following configuration in system view.
If users disable NMP Agent, it will be enabled whatever snmp-agent command is 
configured thereafter.
Displaying and 
Debugging SNMP
After the above configuration, execute the display command in any view to 
display the running of the SNMP configuration, and to verify the effect of the 
configuration.
SNMP Configuration 
Example
Network requirements
Network Management Station and the switch are connected through the 
Ethernet. The IP address of Network Management Station is 129.102.149.23 and 
Table 688   Set the size of the SNMP packet sent/received by an agent
Operation 
Command 
Set the size of the SNMP packet sent/received 
by an agent 
snmp-agent packet max-size byte-count 
Restore the default size of the SNMP packet 
sent/received by an agent 
undo snmp-agent packet max-size
Table 689   Disable snmp agent
Operation 
Command 
Disable snmp agent 
undo snmp-agent
Table 690   Display and debug SNMP
Operation 
Command 
Display the statistics information about SNMP 
packets 
display snmp-agent statistics 
Display the engine ID of the active device 
display snmp-agent local-engineid 
Display the group name, the security mode, 
the states for all types of views, and the 
storage mode of each group of the switch. 
display snmp-agent group [ group-name ] 
Display SNMP user information in the group 
user table 
display snmp-agent usm-user [ engineid 
engineid | group groupname | username 
username ]* 
Display the current community name 
display snmp-agent community [ read | 
write ] 
Display the current MIB view 
display snmp-agent mib-view [ exclude | 
include | { viewname mib-view } ] 
Display the contact character strings, location 
character strings, and the SNMP version of the 
system 
display snmp-agent sys-info [ contact | 
location | version ]*