Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[SRX] How to poll for statistics of a particular interface through SNMP

0

0

Article ID: KB30691 KB Last Updated: 29 Dec 2015Version: 1.0
Summary:

This article describes the procedure to poll an SRX device for the statistics of a particular interface.

Symptoms:

A network administrator often needs to poll SRX devices for various statistics, such as the bandwidth used, input errors, output errors, and so on, of a particular interface.

For example, if the Internet bandwidth usage of a perimeter firewall needs to be calculated, it is best to poll the firewall for the input and output traffic rate on the Internet-facing interface. 

The procedure described in this article will help the administrator do this.

Solution:

To poll SRX devices:

  1. Extract the SNMP index of the interface using the following CLI command:

    > show interfaces <interface-name> extensive

    For example :

    root# run show interfaces ge-0/0/0 extensive
    Physical interface: ge-0/0/0, Enabled, Physical link is Up
         Interface index: 134, SNMP ifIndex: 508, Generation: 137  
    >>>>>>>>SNMP Index = 508<<<<<<<<<<<<

  2. Locate the MIB file.

    mib-jnx-if-extensions is the MIB that will help in obtaining interface statistics.

    The following links provide more information on this MIB:

    http://www.juniper.net/techpubs/en_US/junos14.2/topics/concept/mib-interface-junos-overview.html
    http://www.juniper.net/techpubs/en_US/junos14.2/topics/reference/mibs/mib-jnx-if-extensions.txt

  3. Locate the required OID and append the SNMP index of the interface.

    For example:

    ifIn1SecRate - .1.3.6.1.4.1.2636.3.3.1.1.1
    Input rate on interface ge-0/0/0 of Step 1:  .1.3.6.1.4.1.2636.3.3.1.1.1.508

    ifOut1SecRate - .1.3.6.1.4.1.2636.3.3.1.1.4
    Output rate of interface ge-0/0/0 of Step 1: .1.3.6.1.4.1.2636.3.3.1.1.4.508

    Once the required OID is obtained, an SNMP get request can be sent to the SRX to obtain the corresponding value.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search