SNMP 273

Table 312 Displaying and Debugging SNMP (continued)

Operation

Command

 

 

Display the contact character string of the

display snmp-agent sys-info

system

contact

Display the location character strng of the

display snmp-agent sys-info

system

location

Display the version character string of the

display snmp-agent sys-info

system

version

 

 

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 63 SNMP Configuration Example

129.102.149.23

129.102.0.1

NMS

Ethernet

1Enter the system view.

<SW7750>system-view

2Set the community name, group name, and user.

[SW7750]snmp-agent sys-info version all

[SW7750]snmp-agent community write public

[SW7750]snmp-agent mib include internet 1.3.6.1

[SW7750]snmp-agent group v3 managev3group write internet

[SW7750]snmp-agent usm v3 managev3user managev3group

3Set the administrator ID, contact and the physical location of the Ethernet switch.

[SW7750]snmp-agent sys-info contact Mr.Smith-Tel:3306

[SW7750]snmp-agent sys-info location telephone-closet, 3rd-floor

4Set 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.

[SW7750]vlan 2

[SW7750-vlan2]port ethernet 2/0/3

[SW7750-vlan2]interface vlan 2

[SW7750-Vlan-interface2]ip address 129.102.0.1 255.255.255.0

Page 273
Image 273
3Com 10014298 manual Example Snmp Configuration, Enter the system view, Set the community name, group name, and user