Snmpv3 Configuration Example - HP A3100-8 v2 EI Configuration Manual

A3100 v2 switch series
Hide thumbs Also See for A3100-8 v2 EI:
Table of Contents

Advertisement

<Sysname> system-view
[Sysname] snmp-agent sys-info version v1 v2c
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Configure contact and physical location information for the switch.
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable SNMP traps, set the NMS at 1.1.1.2 as an SNMP trap destination, and use public as the
community name. (To ensure that the NMS can receive traps, specify the same SNMP version in the
snmp-agent target-host command as on the NMS.)
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname
public v1
Configuring the SNMP NMS
2.
# Configure the SNMP version for the NMS as v1 or v2c, create a read-only community and name it
public, and create a read and write community and name it private. For how to configure the NMS, see
the manual for the NMS.
NOTE:
The SNMP settings 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.
Execute the shutdown or undo shutdown command to an idle interface on the agent, and the NMS
receives the corresponding trap.

SNMPv3 configuration example

Network requirements
As shown in
of the agent (.1.1.1/24), and the agent automatically sends traps to report events to the NMS.
The NMS and the agent perform authentication when they set up an SNMP session. The authentication
algorithm is MD5 and the authentication key is authkey. The NMS and the agent also encrypt the SNMP
packets between them by using the DES algorithm and the privacy key prikey.
Figure 35 Network diagram for SNMPv3
Configuration procedure
Configuring the agent
1.
# Configure the IP address of the agent and make sure that the agent and the NMS can reach each other.
(Details not shown)
Figure
35, the NMS (1.1.1.2/24) uses SNMPv3 to monitor and manage the interface status
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents