System information
Configuring SNMP
4-21
The following example creates a view that includes all objects in the MIB-II group
except for the Interfaces group:
snmp-server view <new-view-name> mib-2 included
snmp-server view <new-view-name> interfaces excluded
Associating Groups to MIB Views
You can associate an SNMP Group to specific SNMP MIB views. This restricts
access to the MIB objects defined in the view to the SNMP Group, limiting which
MIB objects an SNMP manager can access.
Use the snmp-server access command in Global Configuration mode to map SNMP
Groups to SNMP MIB views, as shown below.
MOT(config)#snmp-server access <group-name> {v1 | v2c | v3 noauth | v3 auth
| v3 priv} [prefix <>] [match exact | match prefix] [read <new-MIB-view-name>]
[write <new-MIB-view-name>] [notify <new-MIB-view-name>]
Example
MOT(config)#snmp-server access <group-name> v3 auth write
<new-MIB-view-name>
Configuring an SNMP Context
An SNMP Context is a collection of managed object resources that an SNMPv2 entity
can access. Configuring a context record as part of an access policy further restricts
access to MIB views. The object resources identified by a context are either local or
remote. An SNMP Context that refers to local object resources is identified as a MIB
view. The SNMP entity uses local mechanisms to access the management information
identified by the context.
1. To create or update a context record, use the snmp-server context command in
Global Configuration mode, as shown below.
MOT(config)#snmp-server context <context-name>