Alcatel Carrier Internetworking Solutions 6300-24 Manuale Utente

Pagina di 462
Command Line Interface
4-116
4
Examples
This view includes MIB-2.
This view includes the MIB-2 interfaces table, ifDescr. The wildcard is used to select 
all the index values in this table.
This view includes the MIB-2 interfaces table, and the mask selects all index entries.
show snmp view
Use this command to show information on the SNMP groups.
Command Mode 
Privileged Exec
Example 
Console(config)#snmp-server view mib-2 1.3.6.1.2.1 included
Console(config)#
Console(config)#snmp-server view ifEntry.2 1.3.6.1.2.1.2.2.1.*.2 included
Console(config)#
Console(config)#snmp-server view ifEntry.a 1.3.6.1.2.1.2.2.1.1.* included
Console(config)#
Console#show snmp view
View Name: mib-2
Subtree OID: 1.2.2.3.6.2.1
View Type: included
Storage Type: nonvolatile
Row Status: active
View Name: defaultview
Subtree OID: 1
View Type: included
Storage Type: nonvolatile
Row Status: active
Console#
Table 4-2. SNMP View
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.