Configuring Snmpv3 Example - HP 5820X Switch Configuration Manual

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

Advertisement

Execute the shutdown or undo shutdown command to an idle interface on the agent, and the NMS
receives the corresponding trap.

Configuring SNMPv3 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 interface status of the agent using SNMPv3. The agent reports
errors or faults to the NMS. The inbound port for traps on the NMS is 5000.
Authentication is required when the NMS and the agent establish an SNMP connection. The
authentication protocol is MD5 and the authentication key is authkey. The packets transmitted
between the NMS and the agent needs to be encrypted. The privacy protocol is DES and the
privacy password is prikey.
Figure 39 Network diagram for SNMPv3
Configuration procedure
Configuring the agent
1.
# Configure the IP address of the agent as 1.1.1.1/24 and make sure that the agent and the NMS can
reach each other. (The configuration procedure is omitted here)
# Configure the access right: the user can read and write the objects under the interface node with the
OID of 1.3.6.1.2.1.2, and cannot access other MIB objects. Set the user name to managev3user,
authentication protocol to MD5, authentication key to authkey, the privacy protocol to DES56, and the
privacy password to prikey.
<Sysname> system-view
[Sysname] undo snmp-agent mib-view ViewDefault
[Sysname] snmp-agent mib-view included test interfaces
[Sysname] snmp-agent group v3 managev3group read-view test write-view test
[Sysname]
snmp-agent
authkey privacy-mode des56 prikey
# Configure the contact person and physical location information of the device.
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable sending of traps to the NMS with an IP address of 1.1.1.2/24, using managev3user as the
community name.
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname
managev3user v3 privacy
Figure
39, the NMS connects to the agent through an Ethernet.
usm-user
v3
managev3user
managev3group
106
authentication-mode
md5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5800 switch

Table of Contents