R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
190
Examples
# Add the user testUser to the SNMPv3 group testGroup, and enable the authentication without privacy
security model for the group. Specify the authentication algorithm SHA-1 and the authentication key
123456TESTplat&! in plain text for the user.
<Sysname> system-view
[Sysname] snmp-agent group v3 testGroup authentication
[Sysname] snmp-agent usm-user v3 testUser testGroup simple authentication-mode sha
123456TESTplat&!
# For an NMS to access the MIB objects in the default view ViewDefault, make sure the following
configurations on the NMS are the same as the SNMP agent:
• SNMPv3 username.
• SNMP protocol version.
• Authentication algorithm and key.
# Add the user testUser to the SNMPv3 group testGroup, and enable the authentication and privacy
security model for the group. Specify the authentication algorithm SHA-1, the privacy algorithm AES, the
plaintext authentication key 1234 56 TE STa ut h &! , and the plaintext privacy key 123 456 TE STe n cr &! for the
user.
<Sysname> system-view
[Sysname] snmp-agent group v3 testGroup privacy
[Sysname] snmp-agent usm-user v3 testUser testGroup simple authentication-mode sha
123456TESTauth&! privacy-mode aes128 123456TESTencr&!
# For an NMS to access the MIB objects in the default view ViewDefault, make sure the following
configurations on the NMS are the same as the SNMP agent:
• SNMPv3 username.
• SNMP protocol version.
• Authentication algorithm.
• Privacy algorithm.
• Plaintext authentication and privacy keys.
# Add the user remoteUser for the SNMP remote engine at 10 .1.1.1 t o t h e SN M P v 3 g r o u p testGroup, and
enable the authentication and privacy security model for the group. Specify the authentication algorithm
SHA-1, the privacy algorithm AES, the plaintext authentication key 123456TESTauth&!, and the plaintext
privacy key 123 456 TE STe nc r& ! for the user.
<Sysname> system-view
[Sysname] snmp-agent remote 10.1.1.1 engineid 123456789A
[Sysname] snmp-agent group v3 testGroup privacy
[Sysname] snmp-agent usm-user v3 remoteUser testGroup remote 10.1.1.1 simple
authentication-mode sha 123456TESTauth&! privacy-mode aes128 123456TESTencr&!
Related commands
• display snmp-agent usm-user
• snmp-agent calculate-password
• snmp-agent group
• snmp-agent remote