2-576
Catalyst 6500 Series Switch Command Reference—Release8.1
78-15474-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set snmp user
set snmp userTo configure a new SNMP user, use the set snmp user command.
set snmp user [-hex] {username} {remote {engineid}} [authentication {md5 | sha |
authpassword}] [privacy {privpassword}] [volatile | nonvolatile]
Syntax Description
Defaults The default storage type is volatile. If you do not specify authentication, the security level default will
be noauthentication. If you do not specify privacy, the default will be no privacy.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If you use special characters for username (nonprintable delimiters for this parameter), you must use a
hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example,
00:ab:34.
The authpassword and privpassword values must be hexadecimal characters without delimiters in
between.
Examples This example shows how to set a specific username:
Console> (enable) set snmp user joe
Snmp user was set to joe authProt no-auth privProt no-priv with engineid 00:00.
Console> (enable)
-hex (Optional) Displays username in a hexadecimal format.
username Name of the SNMP user.
remote engineid Specifies the remote SNMP engine ID.
authentication (Optional) Specifies the authentication protocol.
md5 Specifies HMAC-MD5-96 authentication protocol.
sha Specifies HMAC-SHA-96 authentication protocol.
authpassword Password for authentication.
privacy
privpassword (Optional) Enables the host to encrypt the contents of the message
sent to or from the agent; the maximum length is 32 bytes.
volatile (Optional) Specifies that the storage type is defined as temporary
memory and the content is deleted if the device is turned off.
nonvolatile (Optional) Specifies that the storage type is defined as persistent
memory and the content remains after the device is turned off and on
again.