snmp-server group
Creates user-defined groups for SNMPv1/v2c/v3 and configures read, write, and notify
permissions to access the MIB view.
Syntax
snmp-server group groupname {
v1 | v2c
}
[ notify viewname ] [
read
viewname
]
[ write viewname ]no snmp-server
group groupname { v1 | v2c
} [ notify
viewname ] [
read viewname ] [ write viewname
]snmp-server group groupname v3
{ auth |
noauth
| priv
} [
notify
viewname
]
[ read viewname ] [
write
viewname
]no snmp-server
group groupname
v3 { auth | noauth | priv
} [ notify
viewname ] [
read viewname ] [ write viewname
]Command Default
Six default groups are supported to associate the default SNMPv3 user groups and the default SNMPv1/v2c community groups with the view configuration.
Note: This command is not used for SNMP version 1 and SNMP version 2. In these versions,
groups and group views are created internally using community strings. When a community
string is created, two groups are created, based on the community string name. One
group is for SNMP version 1 packets, while the other is for SNMP version 2 packets.
Parameters
- auth
- Specifies that only authenticated packets with no privacy are allowed to access the specified view. This parameter is available only for SNMPv3 user groups.
- noauth
- Specifies that no authentication and no privacy are required to access the specified view. This parameter is available only for SNMPv3 user groups.
- priv
- Specifies that authentication and privacy are required from the users to access the view. This parameter is available only for SNMPv3 user groups.
- notify viewname
- Specifies the name of the view that enables you to provide access to the MIB for trap or inform. This allows the administrators to restrict the scope of varbind objects that will be part of the notification. All of the varbinds need to be in the included view for the notification to be created.
- write viewname
- Specifies the name of the view that enables you to provide both read and write access.
Modes
Global configuration mode
Usage Guidelines
Maximum number of SNMP groups supported is 10.
The
no form of the command removes the configured SNMP server group.
History
| Release version | Command history |
|---|---|
| 08.0.20a | The ipv6ipv6-ACL-name keyword-argument pair was introduced. |
| 09.0.10e | The command was modified to remove the ACL options. |