Junos OS

How do I compile and load the Junos OS MIBs onto an SNMP manager or NMS?

By Elevate posted 02-01-2016 09:47

  

Question

How do I compile and load the Junos OS MIBs onto an SNMP manager or NMS?

Answer

For your network management systems (NMSs) to identify and understand the MIB objects used by Junos OS, you must first load the MIB files to your NMS using a MIB compiler. A MIB compiler is a utility that parses the MIB information, such as the MIB object names, IDs, and data types for the NMS.

 

To download the Junos OS MIB package from the Enterprise-Specific MIBs and Traps section, click Junos OS Enterprise MIBs or Junos OS TechLibrary.

 

The Junos OS MIB package has two folders:

  • StandardMibs - containing standard MIBs supported on Juniper Networks devices
  • JuniperMibs - containing Juniper Networks enterprise-specific MIBs

You must have the required standard MIBs downloaded and decompressed before downloading any enterprise-specific MIBs. There might be dependencies that require a particular standard MIB to be present on the compiler before loading a particular enterprise-specific MIB.

 

The Junos OS MIB package is available in .zip and .tar formats. Download the format appropriate for your requirements.

 

Use the following steps to load MIB files for devices running Junos OS:

 

  1. Navigate to the appropriate Juniper Networks software download page and locate the Enterprise MIBs link under the Enterprise-Specific MIBs and Traps section.

    NOTE: Although the link is titled Enterprise MIBs, both standard MIBs and enterprise-specific MIBs are available for download from this location.

  2. Click the TAR or ZIP link to download the Junos OS MIB package.
  3. Decompress the file (.tar or .zip) using an appropriate utility.

    NOTE: Some commonly used MIB compilers are preloaded with standard MIBs. You can skip Step 4 and Step 5 and proceed to Step 6 if you already have the standard MIBs loaded on your system.

  4. Load the standard MIB files from the StandardMibs folder in the following order:
    a. mib-SNMPv2-SMI.txt
    b. mib-SNMPv2-TC.txt
    c. mib-IANAifType-MIB.txt
    d. mib-IANA-RTPROTO-MIB.txt
    e. mib-rfc1907.txt
    f. mib-rfc2011a.txt
    g. mib-rfc2012a.txt
    h. mib-rfc2013a.txt
    i. mib-rfc2863a.txt

  5. Load any remaining standard MIB files.

    NOTE: You must follow the order specified in this procedure, and ensure that all standard MIBs are loaded before you load the enterprise-specific MIBs. There might be dependencies that require a particular standard MIB to be present on the compiler before loading a particular enterprise-specific MIB. Dependencies are listed in the IMPORT section of the MIB file.

  6. After loading the standard MIBs, load the Juniper Networks enterprise-specific SMI MIB, mib-jnx-smi.txt, and the following optional SMI MIBs based on your requirements:
    - mib-jnx-exp.txt—(Recommended) for Juniper Networks experimental MIB objects
    - mib-jnx-js-smi.txt—(Optional) for Juniper Security MIB tree objects
    - mib-jnx-ex-smi.txt—(Optional) for EX Series Ethernet Switches

  7. Load any remaining desired enterprise-specific MIBs from the JuniperMibs.

TIP: While loading a MIB file, if the compiler returns an error message indicating that any of the objects are undefined, open the MIB file using a text editor and ensure that all the MIB files listed in the IMPORT section are loaded on the compiler. If any of the MIB files listed in the IMPORT section are not loaded on the compiler, load the missing file or files first, then try to load the MIB file that failed.

 

The system might return an error if files are not loaded in a particular order.


#FAQ
0 comments
0 views

Permalink