4 Command Line Interface

show snmp view

This command shows information on the SNMP views.

Command Mode

Privileged Exec

Example

Console#show snmp view

View Name: mib-2

Subtree OID: 1.2.2.3.6.2.1

View Type: included

Storage Type: permanent

Row Status: active

View Name: defaultview

Subtree OID: 1

View Type: included

Storage Type: volatile

Row Status: active

Console#

 

Table 4-41 show snmp view - display description

Field

 

Description

 

 

 

View Name

 

Name of an SNMP view.

 

 

 

Subtree OID

 

A branch in the MIB tree.

 

 

 

View Type

 

Indicates if the view is included or excluded.

 

 

 

Storage Type

 

The storage type for this entry.

 

 

 

Row Status

 

The row status of this entry.

 

 

 

snmp-server group

This command adds an SNMP group, mapping SNMP users to SNMP views. Use the no form to remove an SNMP group.

Syntax

snmp-server group groupname {v1 v2c v3 {auth noauth priv}} [read readview] [write writeview] [notify notifyview]

no snmp-server group groupname

groupname - Name of an SNMP group. (Range: 1-32 characters)

v1 v2c v3 - Use SNMP version 1, 2c or 3.

auth noauth priv - This group uses SNMPv3 with authentication, no authentication, or with authentication and privacy. See “Simple Network Management Protocol” on page 3-34for further information about these authentication and encryption options.

readview - Defines the view for read access. (1-64 characters)

writeview - Defines the view for write access. (1-64 characters)

notifyview - Defines the view for notifications. (1-64 characters)

4-120