beautypg.com

21 snmp-server user, 21 snmp-server user -103 – PLANET WGSW-52040 User Manual

Page 104

background image

1-103

1.4.21 snmp-server user

Command:

snmp-server user [{authPriv | authNoPriv} auth {md5 | sha} ] [access

{|}] [ipv6-access {|}]

no snmp-server user

[access {|}] [ipv6-access

{|}]

Function:

Add a new user to an SNMP group; the "no” form of this command deletes this user.

Command Mode:

Global Mode.

Parameter:

<user-string> is the user name containing 1-32 characters.

<group-string> is the name of the group the user belongs to, containing 1-32 characters.

authPriv use DES for the packet encryption.

authNoPriv not use DES for the packet encryption.

auth perform packet authentication.

md5 packet authentication using HMAC MD5 algorithm.

sha packet authentication using HMAC SHA algorithm.

user password, containing 8-32 character.

is the access-class number for standard numeric ACL, ranging between 1-99;

is the access-class name for standard ACL, the character string length is ranging between 1-32;

is the access-class number for standard numeric IPv6 ACL, ranging between 500-599;

is the access-class name for standard IPv6 ACL, the character string length is ranging between 1-32.

Usage Guide:

If the encryption and authentication is not selected, the default settings will be no encryption and no authentication. If

the encryption is selected, the authentication must be done. When deleting a user, if correct username and incorrect

group name is inputted, the user can still be deleted.

Example:

Add a new user tester in the UserGroup with an encryption safety level and HMAC md5 for authentication, the

password is hellohello

Switch (config)#snmp-server user tester UserGroup authPriv auth md5 hellohello

Delete an User

Switch (config)#no snmp-server user tester