H3C S5830V2 Series Command Reference Manual page 124

Network management and monitoring
Hide thumbs Also See for S5830V2 Series:
Table of Contents

Advertisement

For secrecy, the system always displays the authentication and privacy keys in cipher text.
If you specify the cipher keyword, the system considers the keys as having been encrypted, and
displays them as they are.
If you specify the simple keyword, the system considers the keys as in plain text and encrypts them.
Specify the cipher keyword when you roll back, copy, or paste the running configuration. If you specify
the simple keyword, these operations can cause the change of the keys.
Make sure you remember the username and the plaintext of the keys. When you access the device from
an NMS, you must provide this information.
Examples
# Add the user testUser to the SNMPv3 group testGroup, enable the authentication without privacy
security model for the group, and specify the authentication algorithm MD5 and the authentication key
authkey 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 md5 authkey
An NMS can use the same SNMPv3 username, SNMP protocol version, and authentication algorithm
and key as the SNMP agent to access the MIB objects in the default view ViewDefault.
# Add the user testUser to the SNMPv3 group testGroup, enable the authentication and privacy security
model for the group, and specify the authentication algorithm MD5, the privacy algorithm DES56, the
authentication key authkey in plain text, and the privacy key prikey in plain text for the user.
<Sysname> system-view
[Sysname] snmp-agent group v3 testGroup privacy
[Sysname] snmp-agent usm-user v3 testUser testGroup simple authentication-mode md5 authkey
privacy-mode des56 prikey
An NMS can use the same SNMPv3 username, SNMP protocol version, authentication algorithm,
privacy algorithm, and plaintext authentication and privacy keys as the SNMP agent to access the MIB
objects in the default view ViewDefault.
# Add the user testUser to the SNMPv3 group testGroup, enable the authentication and privacy security
model for the group, specify the authentication algorithm MD5, the privacy algorithm DES56, the
authentication key authkey in cipher text, and the privacy key prikey in cipher text for the user.
<Sysname> system-view
[Sysname] snmp-agent group v3 testGroup privacy
[Sysname] snmp-agent usm-user v3 testUser testGroup cipher authentication-mode md5
09659EC5A9AE91BA189E5845E1DDE0CC privacy-mode des56 800D7F26E786C4BECE61BF01E0A22705
An NMS can use the same SNMPv3 username, SNMP protocol version, authentication algorithm,
privacy algorithm, and plaintext authentication and privacy keys as the SNMP agent to access the MIB
objects in the default view ViewDefault.
# Add the user remoteUser for the SNMP remote engine at 10.1.1.1 to the SNMPv3 group testGroup,
enable the authentication and privacy security model for the group, specify the authentication algorithm
MD5, the privacy algorithm DES56, the authentication key authkey in plain text, and the privacy key
prikey in plain text 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 md5 authkey privacy-mode des56 prikey
116

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2 series

Table of Contents