GSWB

CHAPTER 8 CLI Operations

(2) Options

z<user>: Specifies a user name. The entered user name consists of 4 to 16 en-size alphanumeric characters and symbols, which may include - and _.

z{ rw ro }: Specifies the user privilege.

-rw: Read/write privilege

-ro: Read-only privilege

z{noauth auth ... priv ... }: Specifies the authentication level.

-noauth: Authentication and encryption do not use passwords. (However, authentication by user name is performed.)

-auth: Authentication uses passwords. No encryption is performed.

-priv: Authentication and encryption use passwords.

z{md5 sha}: The selected hash function is used for encrypting passwords.

-md5

-sha

z<password>: Specifies a password used for authentication. The entered password consists of 8 to 16 en-size alphanumeric characters.

z<passphrase>: Specifies the keyword for packet encryption. The entered passphrase consists of 8 to 16 en-size alphanumeric characters.

(3)Command mode

Global

(4) See also

show snmp-server

(5)Examples

Specifies that a user be set with the user name "a-sss", authentication level "noauth," and read-write privilege

Switch(config)# snmp-server user a-sss rw noauth

Switch(config)#

Specifies that a user be set with the user name "1-sss", authentication level "auth," password encryption "md5," and read-only privilege

Switch(config)# snmp-server user 1-sss ro auth md5 zxcvbnmk Switch(config)#

8-118

C122-E003-02EN