Displaying and maintaining snmp, Snmp configuration examples, 7 snmp configuration examples – H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 411
41-7
Displaying and Maintaining SNMP
To do…
Use the command…
Remarks
Display the SNMP information
about the current device
display snmp-agent sys-info
[ contact |
location
| version ]*
Display SNMP packet statistics
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 ]
Available in any view
SNMP Configuration Examples
SNMP Configuration Examples
Network requirements
z
As shown in
, an NMS and Switch A (SNMP agent) are connected through the Ethernet.
The IP address of the NMS is 10.10.10.1 and that of the VLAN interface on Switch A is 10.10.10.2.
z
Perform the following configuration on Switch A: setting the community name and access
permission, administrator ID, contact and location of Switch A, and enabling the device to sent trap
messages.
Thus, the NMS is able to access Switch A and receive the trap messages sent by Switch A.
Figure 41-2
Network diagram for SNMP configuration
Ethernet
10.10.10.1
NMS
10.10.10.2
Switch A
Network procedure
# Enable SNMP agent, and set the SNMPv1 and SNMPv2c community names.
[device] snmp-agent
[device] snmp-agent sys-info version all
[device] snmp-agent community read public
[device] snmp-agent community write private