Configuring Snmpv1/Snmpv2C Example - HP 5820X Switch Configuration Manual

Network management and monitoring
Hide thumbs Also See for 5820X Switch:
Table of Contents

Advertisement

Configuring SNMPv1/SNMPv2c example

Network requirements
As shown in
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 38 Network diagram for SNMPv1/v2c
Configuration procedure
Configuring the SNMP agent
1.
# Configure the IP address of the agent as 1.1.1.1/24 and make sure that the agent and the NMS are
reachable to each other. (The configuration procedure is omitted here)
# Configure the SNMP basic information, including the version and community name.
<Sysname> 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.
[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 params securityname
public v1
Make sure that the SNMP version specified in the snmp-agent target-host command is the same as that
on the NMS; otherwise, the NMS cannot receive any trap.
Configuring the SNMP NMS
2.
With SNMPv1/v2c, 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.
NOTE:
The configurations on the agent and the NMS must match.
Verify the configuration
3.
After the configuration, an SNMP connection is established between the NMS and the agent. The
NMS can get and configure the values of some parameters on the agent through MIB nodes.
Figure
38, the NMS connects to the agent through an Ethernet.
105

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5800 switch

Table of Contents