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

Page 104

Advertising
background image

1-103

1.4.21 snmp-server user

Command:

snmp-server user <use-string> <group-string> [{authPriv | authNoPriv} auth {md5 | sha} <word>] [access

{<num-std>|<name>}] [ipv6-access {<ipv6-num-std>|<ipv6-name>}]

no snmp-server user <user-string>

[access {<num-std>|<name>}] [ipv6-access

{<ipv6-num-std>|<ipv6-name>}]

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.

<word > user password, containing 8-32 character.

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

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

<ipv6-num-std> is the access-class number for standard numeric IPv6 ACL, ranging between 500-599;

<name> 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

Advertising