352
C
11: S
HAPTER
YSTEM
Example: SNMP
Configuration
M
ANAGEMENT
Table 58 Displaying and Debugging SNMP (continued)
Operation
Display the current community name
Display the current MIB view
Display the contact character string of the
system
Display the location character string of the
system
Display the version character string of the
system
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
129.102.149.23
NMS
Ethernet
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
Command
display snmp-agent community [ read |
write ]
display snmp-agent mib-view [ exclude |
include | viewname mib-view ]
display snmp-agent sys-info contact
display snmp-agent sys-info location
display snmp-agent sys-info version
129.102.0.1
Need help?
Do you have a question about the Switch 7700 and is the answer not in the manual?
Questions and answers