
Command Line Interface
4-120
4
snmp-server view
This command adds an SNMP view which controls user access to the MIB. Use the
no
form to remove an SNMP view.
Syntax
snmp-server view
view-name oid-tree
{
included
|
excluded
}
no snmp-server view
view-name
• view-name -
Name of an SNMP view. (Range: 1-64 characters)
•
oid-tree
- Object identifier of a branch within the MIB tree. Wild cards can
be used to mask a specific portion of the OID string. (Refer to the
examples.)
• included
- Defines an included view.
• excluded
- Defines an excluded view.
Default Setting
defaultview (includes access to the entire MIB tree)
Command Mode
Global Configuration
Command Usage
• Views are used in the
snmp-server group
command to restrict user access
to specified portions of the MIB tree.
• The predefined view “defaultview” includes access to the entire MIB tree.
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.
Table 4-39 show snmp engine-id - display description
Field
Description
Local SNMP engineID
String identifying the engine ID.
Local SNMP engineBoots The number of times that the engine has (re-)initialized since the snmp EngineID
was last configured.
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)#
Summary of Contents for ES4612
Page 2: ......
Page 4: ...ES4612 F1 0 2 5 E092004 R01 150000046400A ...
Page 38: ...Introduction 1 10 1 ...
Page 48: ...Initial Configuration 2 10 2 ...
Page 269: ...IP Routing 3 221 3 Web Click Routing Protocol RIP Statistics Figure 3 130 RIP Statistics ...
Page 314: ...Configuring the Switch 3 266 3 ...
Page 644: ...Command Line Interface 4 330 4 ...
Page 658: ...Glossary Glossary 8 ...
Page 664: ...Index 6 Index ...
Page 665: ......
Page 666: ...ES4612 E092004 R01 150000046400A ...