User Tools

Site Tools


hpe:switch:snmp_v3_hpe_comware_cli

This is an old revision of the document!


SNMPv3 configuration example

Network requirements

As shown in Figure 28, the NMS (1.1.1.2/24) uses SNMPv3 to monitor and manage the interface status of the agent (1.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 SHA-1 and the authentication key is 123456TESTauth&!. The NMS and the agent also encrypt the SNMP packets between them by using the AES algorithm and the privacy key 123456TESTencr&!.

Configuration procedure

Configure the agent:

# Configure the IP address of the agent and make sure the agent and the NMS can reach each other. (Details not shown.)

# Assign the NMS read and write access to the objects under the ifTable node (OID 1.3.6.1.2.1.2.2), and deny its access to any other MIB object.

<Agent> system-view
[Agent] undo snmp-agent mib-view ViewDefault
[Agent] snmp-agent mib-view included test ifTable
[Agent] snmp-agent group v3 managev3group read-view test write-view test

# Set the username to managev3user, authentication algorithm to sha, authentication key to 123456TESTauth&!, encryption algorithm to aes128, and privacy key to 123456TESTencr&!.

[Agent] snmp-agent usm-user v3 managev3user managev3group simple authentication-mode sha 123456TESTauth&! 
privacy-mode aes128 123456TESTencr&!

# Configure contact person and physical location information for the agent.

[Agent] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Agent] snmp-agent sys-info location telephone-closet,3rd-floor

# Enable traps, specify the NMS at 1.1.1.2 as a trap destination, and set the username to managev3user for the traps.

[Agent] snmp-agent trap enable
[Agent] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname managev3user v3 privacy

Configure the SNMP NMS:

  1. Specify SNMPv3.
  2. Create the SNMPv3 user managev3user.
  3. Enable both authentication and privacy functions.
  4. Use SHA-1 for authentication and AES for encryption.
  5. Set the authentication key to 123456TESTauth&! and the privacy key to 123456TESTencr&!.
  6. Set the timeout time and maximum number of retries.

For information about configuring the NMS, see the NMS manual.

NOTE: The SNMP settings on the agent and the NMS must match.

hpe/switch/snmp_v3_hpe_comware_cli.1690655087.txt.gz · Last modified: 2023/07/29 13:24 by aperez

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki