2-564
Catalyst 6500 Series Switch Command Reference—Release8.1
78-15474-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set snmp group
set snmp groupTo establish the relationship between an SNMP group and a use r with a s pecific security model, use the
set snmp group command.
set snmp group [-hex] {groupname} user [-hex] {username}
{security-model {v1 | v2c | v3}} [volatile | nonvolatile]
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If you use special characters for groupname or username (nonprintable delimiters for these parameters),
you must use a hexadecimal keyword, which is one or two hexadecimal digits sep ar ated by a co lo n (: );
for example, 00:ab:34.
Examples This example shows how to set the SNMP group:
Console> (enable) set snmp group cisco-group user joe security-model v3
SNMP group was set to cisco-group user joe and version v3,nonvolatile.
Console> (enable)
Related Commands clear snmp group
show snmp group
-hex (Optional) Displays the groupname and username in a hexadecimal
format.
groupname Name of the SNMP group that defines an access control; the maximum
length is 32 bytes.
user Specifies the SNMP group username.
username Name of the SNMP user that belongs to the SNMP g roup; the maximum
length is 32 bytes.
security-model
v1 | v2c | v3 Specifies security-model v1, v2c, or v3.
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.