J-series™ Services Router Administration Guide

Table 35: Configuring SNMP Views

Task

J-Web Configuration Editor

Navigate to the SNMP level

1.

In the J-Web interface, select Configuration>View

in the configuration

 

and Edit>Edit Configuration.

hierarchy.

2.

Next to Snmp, click Configure or Edit.

 

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.

Configure the view to include

1.

Next to Oid, click Add new entry.

a MIB—for example, pingMIB.

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.

CLI Configuration Editor

From the [edit] hierarchy level, enter

edit snmp

Create a view:

set view view-name

Set the pingMIB OID value and mark it for inclusion:

set view view-nameoid 1.3.6.1.2.1.80 include

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

Associate the view with a community.

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.

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 jnxPingMIB OID value and mark it for exclusion:

set view view-nameoid jnxPingMIB exclude

Set the community view:

set community community-nameview

view-name

Verifying the SNMP Configuration

To verify the SNMP configuration, perform the following verification task.

Verifying SNMP Agent Configuration

Purpose Verify that SNMP is running and that requests and traps are being properly transmitted.

Action From the CLI, enter the show snmp statistics command.

user@host> show snmp statistics SNMP statistics:

Input:

Packets: 246213, Bad versions: 12 , Bad community names: 12,

Bad community uses: 0, ASN parse errors: 96,

Too bigs: 0, No such names: 0, Bad values: 0,

Read onlys: 0, General errors: 0,

Total request varbinds: 227084, Total set varbinds: 67,

58Verifying the SNMP Configuration

Page 80
Image 80
Juniper Networks J-Series Verifying the Snmp Configuration, Verifying Snmp Agent Configuration, Configuring Snmp Views