H3C S7500E Series Ethernet Switches Operation Manual
Operation Manual – SNMP-RMON
H3C S7500E Series Ethernet Switches Chapter 1 SNMP Configuration
1-10
II. Network diagram
Terminal
Agent
NMS
Console
Vlan-int2
1.1.1.1/24
1.1.1.2/24
Figure 1-3 Network diagram for SNMP (on a switch)
III. Configuration procedure
1) Configuring SNMP Agent
# Configure the SNMP basic information, including version and community name.
<Sysname> system-view
[Sysname] snmp-agent sys-info version v2c
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Configure VLAN-interface 2 (with the IP address of 1.1.1.1/24). Add the port Ethernet
2/0/1 to VLAN 2.
[Sysname] vlan 2
[Sysname-vlan2] port Ethernet 2/0/1
[Sysname-vlan2] quit
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] ip address 1.1.1.1 255.255.255.0
[Sysname-Vlan-interface2] quit
# Configure the contact person and physical location information of the switch.
[Sysname] snmp-agent sys-info version all
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable the sending of Traps to the NMS with an IP address of 1.1.1.2/24, using
public as the community name.
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 udp-port 5000
params securityname public
2) Configuring SNMP NMS
With SNMPv2c, the user needs to specify the read only community, the read and write
community, the timeout time, and number of retries. The user can inquire and configure
the device through the NMS.