beautypg.com

Snmpv1/snmpv2c configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual

Page 160

background image

10

To do…

Use the command…

Remarks

Display SNMP agent group
information

display snmp-agent group
[ group-name ]

Display basic information of the
trap queue

display snmp-agent trap
queue

Display the modules that can send
traps and whether their trap

sending is enabled or not

display snmp-agent trap-list

Display SNMPv3 agent user
information

display snmp-agent
usm-user
[ engineid engineid |
username user-name | group

group-name ] *

Display SNMPv1 or v2c agent
community information

display snmp-agent
community
[ read | write ]

Display MIB view information for
an SNMP agent

display snmp-agent
mib-view
[ exclude | include
| viewname view-name ]

SNMPv1/SNMPv2c Configuration Example

Network requirements

As shown in

Figure 4

, the NMS connects to the agent through an Ethernet.

The IP address of the NMS is 1.1.1.2/24.

The IP address of the agent is 1.1.1.1/24.

The NMS monitors and manages the agent using SNMPv1 or SNMPv2c. The agent reports errors

or faults to the NMS.

Figure 4 Network diagram for SNMPv1/v2c

Configuration procedure

Step1

Configuring the SNMP agent

# Configure the IP address of the agent as 1.1.1.1/24 and make sure that there is a route between the

agent and the NMS. (The configuration procedure is omitted here)
# Configure the SNMP basic information, including the version and community name.

system-view

[Sysname] snmp-agent sys-info version v1 v2c

[Sysname] snmp-agent community read public

[Sysname] snmp-agent community write private

# Configure the contact person and physical location information of the switch.