H3C S5120-SI Series Command Reference Manual page 669

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

# Add a user testUser to the SNMPv3 group testGroup. Configure the security model as
authentication and privacy, the authentication protocol as MD5, the privacy protocol as DES56, the
plain-text authentication password as authkey, and the plain-text privacy password as prikey.
<Sysname> system-view
[Sysname] snmp-agent group v3 testGroup privacy
[Sysname] snmp-agent usm-user v3 testUser testGroup authentication-mode md5 authkey
privacy-mode des56 prikey
Set the SNMP version on the NMS to SNMPv3
Fill in the user name testUser,
Set the authentication protocol to MD5
Set the authentication password to authkey
Set the privacy protocol to DES
Set the privacy password to prikey
Establish a connection, and the NMS can access the MIB objects in the ViewDefault view on the
device
# Add a user testUser to the SNMPv3 group testGroup with the cipher keyword specified. Configure
the security model as authentication and privacy, the authentication protocol as MD5, the privacy
protocol as DES56, the plain-text authentication password as authkey, and the plain-text privacy
password as prikey
<Sysname> system-view
[Sysname] snmp-agent group v3 testGroup privacy
[Sysname] snmp-agent calculate-password authkey mode md5 local-engineid
The secret key is: 09659EC5A9AE91BA189E5845E1DDE0CC
[Sysname] snmp-agent calculate-password prikey mode md5 local-engineid
The secret key is: 800D7F26E786C4BECE61BF01E0A22705
[Sysname]
snmp-agent
09659EC5A9AE91BA189E5845E1DDE0CC privacy-mode des56 800D7F26E786C4BECE61BF01E0A22705
Set the SNMP version on the NMS to SNMPv3
Fill in the user name testUser,
Set the authentication protocol to MD5
Set the authentication password to authkey
Set the privacy protocol to DES
Set the privacy password to prikey
Establish a connection, and the NMS can access the MIB objects in the ViewDefault view on the
device
usm-user
v3
testUser
1-30
testGroup
cipher
authentication-mode
md5

Advertisement

Table of Contents
loading

Table of Contents