snmp-server group

Last Updated : Nov 06, 2012 |

Defines a new SNMPv3 group, or to configure settings for the group. An SNMP group associates users with views. Use no snmp-server group to remove the specified group.

Note:

If you use no snmp-server group with no additional parameters, all instances of the specified group are removed. If you specify a particular security group, only that group instance is removed.

Syntax

snmp-server group groupname {v1|v2c|{v3 level}} [read read-view] [write write-view] [notify notify-view]

no snmp-server group groupname [v1|v2c|{v3 level}]

Parameters

Parameter

Description

Possible Values

Default Value

groupname

A character string specifying the group name

A string of up to 32 characters

v1

Keyword indicating that the group is limited to SNMP v1 functionality

v2c

Keyword indicating that the group is limited to SNMP v2c functionality

v3

Keyword indicating that the group has full SNMP v3 functionality. This is the default.

level

The group’s level of authentication

auth – the group authenticates packets

noauth – the group does not authenticate packets

priv – the group authenticates and encrypts packets

noauth

read-view

A character string specifying the view name for the read view. Users of this group have read access to the set of MIB objects specified in the read view. If no view is specified, the default is an empty view.

A string of up to 64 characters

write-view

A character string specifying the view name for the write view. Users of this group have write access to the set of MIB objects specified in the write view. If no view is specified, the default is an empty view.

A string of up to 64 characters

notify-view

A character string specifying the view name for the notify view. Users of this group have notify access to the set of MIB objects specified in the notify view. If no view is specified, the default is an empty view.

A string of up to 64 characters

User level

admin

Context

general

Example

To define or edit SNMPv3 group 12groupRO to authenticate packets with read view view1, write view notify, and notify view view2:

Gxxx-001(super)# snmp-server group 12groupRO v3 auth read view1 notify view2