[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Controlling Access to MIBs (Optional)

By default, an SNMP community is granted access to all MIBs. To control the MIBs to which a particular community has access, configure SNMP views that include the MIBs you want to explicitly grant or deny access to.

To configure SNMP views:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. To configure SNMP views, perform the configuration tasks described in Table 66.
  3. If you are finished configuring the network, commit the configuration.
  4. To check the configuration, see Verifying the SNMP Configuration.

Table 66: Configuring SNMP Views

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the SNMP level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Snmp, click Configure or Edit.

From the [edit] hierarchy level, enter

edit snmp

Create a view.

  1. Next to View, click Add new entry.
  2. In the Name box, type the name of the view as a free-form text string.

Create a view:

set view view-name

Configure the view to include a MIB—for example, pingMIB.

  1. Next to Oid, click Add new entry.
  2. In the Name box, type the OID of the pingMIB, in either dotted integer or subtree name format.
  3. In the View action box, select include from the list, and click OK.

Set the pingMIB OID value and mark it for inclusion:

set view view-name oid 1.3.6.1.2.1.80 include

Configure the view to exclude a MIB—for example, jnxPingMIB.

  1. Next to Oid, click Add new entry.
  2. In the Name box, type the OID of the jnxPingMIB, in either dotted integer or subtree name format.
  3. In the View action box, select exclude from the list, and click OK twice.

Set the jnxPingMIB OID value and mark it for exclusion:

set view view-name oid jnxPingMIB exclude

Associate the view with a community.

  1. On the Snmp page, under Community, click the name of the community to which you want to apply the view.
  2. In the View box, type the view name.
  3. Click OK.

Set the community view:

set community community-name view view-name


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]