7.2.5. snmp user

Syntax

snmp user username group-name [auth (md5|sha) AUTHPASSWD]

snmp user username group-name auth (md5|sha) AUTHPASSWD priv PRIVPASSWD

no snmp user username

Parameter

username

Specify the SNMP user name on the host that connects to the SNMP agent. The max character is 30 characters. For the SNMP v1 or v2c, the user name must match the community name by the commandsnmp host.

group-name

Specify the SNMP group to which the SNMP userbelongs. The SNMP group should be SNMPv3 and configured by the commandsnmp group.

auth(md5|)

Specify the HMAC-MD5-96 authentication protocol as the user authentication.

auth(sha|)

Specify the HMAC-SHA-96 authentication protocol as the user authentication.

AUTHPASSWD

The password for authentication and the range of length is from 8 to 32 characters.

PrivPRIVPASSWD

The private password for the privacy key, and the range of length is from 8 to 64 characters.

Default

Mode

Global Configuration

Usage

To define a SNMP user, use the command snmp user in the Global Configuration mode; and use the no form to delete the SNMP user.

Example

The following example adds SNMP user v3 into the group v3 by the MD5 authentication.

Switch(config)# snmp user v3 v3 auth md5 12345678