Snmp configuration example, Network requirements, Network diagram – H3C Technologies H3C S3600 Series Switches User Manual
Page 860: Network procedure
1-8
To do…
Use the command…
Remarks
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 ]
SNMP Configuration Example
SNMP Configuration Example
Network requirements
z
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 switch location, and enabling the switch to sent traps.
Thus, the NMS is able to access Switch A and receive the traps sent by Switch A.
Network diagram
Figure 1-2 Network diagram for SNMP configuration
Network procedure
# Enable SNMP agent, and set the SNMPv1 and SNMPv2c community names.
[Sysname] snmp-agent
[Sysname] snmp-agent sys-info version all
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Set the access right of the NMS to the MIB of the SNMP agent.
[Sysname] snmp-agent mib-view include internet 1.3.6.1
# For SNMPv3, set:
z
SNMPv3 group and user
z
security to the level of needing authentication and encryption
z
authentication protocol to HMAC-MD5
z
authentication password to passmd5
z
encryption protocol to AES
z
encryption password to cfb128cfb128
[Sysname] snmp-agent group v3 managev3group privacy write-view internet