Owner's Manual

SNMP Commands 353
Until the first wildcard, no attempt is made to verify that the MIB node corresponds to the
starting portion of the OID.
Examples
The following example creates a view that includes all objects in the MIB-II system group except
for sysServices (System 7) and all objects for interface 1 in the MIB-II interface group.
snmp-server group
The
snmp-server group
global configuration command configures a new Simple Management
Protocol (SNMP) group or a table that maps SNMP users to SNMP views. To remove a specified
SNMP group, use the
no
form of this command.
Syntax
snmp-server group
groupname
{v1 | v2 | v3 {noauth | auth | priv} [notify
notifyview
] }
[contex
t
name
] [read
readview
] [write
writeview
]
no snmp-server group
groupname
{v1 | v2 | v3 {noauth | auth | priv} [notify
notifyview
] }
[contex
t
name
]
groupname
—Specifies the name of the group.
v1
—Indicates the SNMP Version 1 security model.
v2
—Indicates the SNMP Version 2 security model.
v3
—Indicates the SNMP Version 3 security model.
noauth
—Indicates no authentication of a packet. Applicable only to the SNMP Version 3
security model.
auth
—Indicates authentication of a packet without encrypting it. Applicable only to the
SNMP Version 3 security model.
priv
—Indicates authentication of a packet with encryption. Applicable only to the SNMP
Version 3 security model.
name
—Specifies the context of a packet. The following contexts are supported:
router
and
oob
. If the context name is unspecified, all contexts are defined.
readview
—Specifies a string that is the name of the view that enables only viewing the
contents of the agent. If unspecified, all objects except for the community-table and
SNMPv3 user and access tables are available. (Range: 1-30 characters)
Console (config)# snmp-server view user-view system included
Console (config)# snmp-server view user-view system.7 excluded
Console (config)# snmp-server view user-view ifEntry.*.1 included