beautypg.com

Verifying the snmp configuration, Verifying snmp agent configuration – Juniper Networks J-Series User Manual

Page 80

background image

Table 35: Configuring SNMP Views

CLI Configuration Editor

J-Web Configuration Editor

Task

From the

[edit]

hierarchy level,

enter

edit snmp

1.

In the J-Web interface, select Configuration>View
and Edit>Edit Configuration
.

2.

Next to Snmp, click Configure or Edit.

Navigate to the SNMP level
in the configuration
hierarchy.

Create a view:

set view view-name

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 the

pingMIB

OID value and

mark it for inclusion:

set view view-name oid

1.3.6.1.2.1.80 include

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.

Configure the view to include
a MIB—for example,

pingMIB

.

Set the

jnxPingMIB

OID value and

mark it for exclusion:

set view view-name oid jnxPingMIB

exclude

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.

Configure the view to
exclude a MIB—for example,

jnxPingMIB

.

Set the community view:

set community community-name view

view-name

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.

Associate the view with a
community.

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,

58

Verifying the SNMP Configuration

J-series™ Services Router Administration Guide