To define an SNMP group, use the snmp-server group Global Configuration mode command. Groups are used to map SNMP users to
SNMP views (using the snmp-server user command).
To delete an SNMP group, use the no form of this command.
Syntax
snmp-server group groupname {v1 | v2c | v3} {noauth | auth | priv} read-view readview write-view writeview [notify-view notifyview]
no snmp-server group groupname {v1 | v2c | v3} {noauth | auth | priv}
Parameters
groupname—The SNMP group name. (Length: 1 to 30 characters)
{v1 | v2c | v3}—Specifies the SNMP version.
noauth—Specifies that no packet authentication will be performed. Applicable only to the SNMP version 3 security model.
auth—Specifies that packet authentication without encryption will be performed. Applicable only to the SNMP version 3 security
model.
priv—Specifies that packet authentication with encryption will be performed. Applicable only to the SNMP version 3 security model.
Note that creation of SNMPv3 users with both authentication and privacy must be done in the GUI. All other users may be created
in the CLI.
read-view readview—Sets the view name that enables viewing only. (Length: 1 to 30 characters)
write-view writeview—Sets the view name that enables configuring the agent. (Length: 1 to 30 characters; setting "" means no write view)
notify-view notifyview—(Optional) Sets the view name that sends only traps with contents that is included in SNMP view selected for notification.
Otherwise, there is no restriction on the contents of the traps. This can only be available for SNMPv3. (Length: 1 to 30 characters)
Default Configuration
No group entry exists.
If the notifyview value is not specified, the notify view is not defined.
If the readview value is not specified, all objects except for the community table, SNMPv3 user, and access tables are available
for retrieval.
If the writeview value is not specified, the write view is not defined.
Command Mode
Global Configuration mode
User Guidelines
The group defined in this command is used in the snmp-server user command to map SNMP users to the SNMP group. These users
are then automatically mapped to SNMP views defined in this command.
The security level for SNMP v1 or v2 is always noauth.
Example
switchxxxxxx(config)# snmp-server group user-group v3 priv read-view view1 write-view view2