Support Support Downloads Knowledge Base Juniper Support Portal 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

How to determine the correct OID Variable to track SNMP Data on ScreenOS

0

0

Article ID: KB9415 KB Last Updated: 11 Aug 2010Version: 3.0
Summary:

Trying to query specific SNMP Data to plot on an MRTG graph by specifying OID variable

 

Symptoms:
When attempting an snmpget on an OID, receive the following error from the SNMP manager: 

No Such Object available on this agent when attempting a snmpget

Solution:

The way to determine which OID variable to use for custom enterprise MIB variables is to inspect the individual enterprise MIB files.  Based on this, you can determine which OID variable to assign for your snmpget.

Example:  Trying to track the OID variable for number of allocated sessions.

  1. Download the MIB files for the specific ScreenOS you are running.  See KB4233 - Where Do I Download MIB Files?

  2. Open the file "NS-SMI.mib".  From this file, notice the NetScreen object identifier is enterprise 3224.  This is the enterprise tree you will use for the NetScreen private mib.
    netscreen OBJECT IDENTIFIER ::= { enterprises 3224 }  -- used for Netscreen SysObject ID
  3. For tracking number of sessions allocated, look for the resource identifier in the NS-SMI.mib file.
    netscreenResource OBJECT IDENTIFIER ::= { netscreen 16 }
  4. From this, start the snmp get on .iso.3.6.1.4.1.3224.16
  5. Open the file "NS-RES.mib".  Do a find for "allocate session".  You will see the following excerpt from the NS-RES.mib file:

    nsResSession OBJECT IDENTIFIER ::= { netscreenResource 3 }

    nsResSessAllocate OBJECT-TYPE
        SYNTAX        Integer32
        MAX-ACCESS    read-only
        STATUS        current
        DESCRIPTION
            "Allocate session number."
        ::= { nsResSession 2 }
  6. Now, specify .3.2, for the nsResSession object identifier, and the nsResSessAllocate object type.

The OID variable for the snmpget is .iso.3.6.1.4.1.3224.16.3.2.  Issuing an snmpget on .sio.3.6.1.4.1.3224.16.3.1, you will give the error message "object not found".  Not all OID variables in the tree are used by ScreenOS.

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