3Com Switch 4200G Configuration Guide
282 CHAPTER 33: SNMP CONFIGURATION
Setting the Logging
Function for Network
Management
You can use the display logbuffer command to display logging information for the
get and set operations sent from NMS.
Displaying SNMP After the above configuration is completed, execute the display command in any
view to view the running of SNMP, and to verify the configuration.
SNMP Configuration
Example
SNMP Configuration
Example
Network requirements
■ An NMS and an Ethernet switch are connected through the Ethernet. The IP
address of the NMS is 10.10.10.1 and that of the VLAN interface on the switch is
10.10.10.2.
■ Perform the following configuration on the switch: setting the community name
and access authority, administrator ID, contact and switch location, and enabling
the switch to sent trap packet.
Table 252 Set the logging function for network management
Operation Command Description
Enter system view system-view —
Set the logging function
for network
management
snmp-agent log { set-operation |
get-operation | all }
Optional;
By default, the logging
function for SNMP is
disabled.
Table 253 Display SNMP
Operation Command
Display system information of the current SNMP
device
display snmp-agent sys-info [ contact |
location | version ]*
Display SNMP packet statistics information display snmp-agent statistics
Display the engine ID of the current device display snmp-agent { local-engineid |
remote-engineid }
Display group information about the device display snmp-agent group [ group-name ]
Display SNMP user information display snmp-agent usm-user [ engineid
engineid | username user-name | group
group-name ]
Display Trap list information display snmp-agent trap-list
Display the currently configured community
name
display snmp-agent community [ read |
write ]
Display the currently configured MIB view display snmp-agent mib-view [ exclude |
include | viewname view-name ]