Technical data
352 CHAPTER 11: SYSTEM MANAGEMENT
Example: SNMP
Configuration
A Network Management Station (NMS) and the Ethernet switch are connected by
the Ethernet. The IP address of NMS is 129.102.149.23 and the IP address of the
VLAN interface on the switch is 129.102.0.1.
Perform the following configurations on the switch:
■ Set the community name and access authority
■ Set the administrator ID, contact and switch location
■ Enable the switch to send a trap packet.
Figure 5 SNMP Configuration Example
1 Enter the system view.
<SW7700> system-view
2 Set the community name, group name, and user.
[SW7700]snmp-agent sys-info version all
[SW7700]snmp-agent community write public
[SW7700]snmp-agent mib include internet 1.3.6.1
[SW7700]snmp-agent group v3 managev3group write internet
[SW7700]snmp-agent usm v3 managev3user managev3group
3 Set the administrator ID, contact and the physical location of the Ethernet switch.
[SW7700] snmp-agent sys-info contact Mr.Smith-Tel:3306
[SW7700] snmp-agent sys-info location telephone-closet, 3rd-floor
4 Set the VLAN interface 2 as the interface used by network management. Add
Ethernet port 2/0/3 to the VLAN 2. This port will be used for network
management. Set the IP address of VLAN interface 2 as 129.102.0.1.
[SW7700]vlan 2
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 string of the
system
display snmp-agent sys-info contact
Display the location character string of the
system
display snmp-agent sys-info location
Display the version character string of the
system
display snmp-agent sys-info version
Table 58 Displaying and Debugging SNMP (continued)
Operation Command
NMS
129.102.149.23
129.102.0.1
Ethernet