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

[WLC] How to configure and use Net-SNMP (Ubuntu)

0

0

Article ID: KB25945 KB Last Updated: 03 Oct 2012Version: 1.0
Summary:
This article provides information on how to configure and use Net-SNMP with Juniper (Trapeze) MIBs.

Symptoms:
Net-SNMP is a suite of freeware software for using and deploying the SNMP protocol (v1, v2c, and v3).
Cause:

Solution:
  1. Install Net-SNMP:
    > sudo apt-get install snmpd
  2. Configure and use the MIBs:

    1. Download the MIBS from Juniper Web Portal and copy all MIB files (*.my) to a directory that can be found by the SNMP tool. You can check the default MIBs directory by using the following command:
      > net-snmp-config --default-mibdirs
      /home/rep/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
      
    2. Place the following lines in a SNMP.conf file:
      mibs +TRAPEZE-NETWORKS-AP-CONFIG-MIB
      mibs +TRAPEZE-NETWORKS-AP-IF-MIB
      mibs +TRAPEZE-NETWORKS-AP-STATUS-MIB
      mibs +TRAPEZE-NETWORKS-AP-TC
      mibs +TRAPEZE-NETWORKS-AP-UNCONFIGURED-MIB
      mibs +TRAPEZE-NETWORKS-BASIC-MIB
      mibs +TRAPEZE-NETWORKS-BASIC-TC
      mibs +TRAPEZE-NETWORKS-CLIENT-SESSION-MIB
      mibs +TRAPEZE-NETWORKS-CLIENT-SESSION-TC
      mibs +TRAPEZE-NETWORKS-CLUSTER-MIB
      mibs +TRAPEZE-NETWORKS-EXTERNAL-SERVER-MIB
      mibs +TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB
      mibs +TRAPEZE-NETWORKS-LICENSE-FEATURE-TC-MIB
      mibs +TRAPEZE-NETWORKS-PORT-MIB
      mibs +TRAPEZE-NETWORKS-QOS-CONFIG-MIB
      mibs +TRAPEZE-NETWORKS-REGISTRATION-CHASSIS-MIB
      mibs +TRAPEZE-NETWORKS-REGISTRATION-DEVICES-MIB
      mibs +TRAPEZE-NETWORKS-RF-BLACKLIST-MIB
      mibs +TRAPEZE-NETWORKS-RF-DETECT-TC
      mibs +TRAPEZE-NETWORKS-RF-NOISE-TC-MIB
      mibs +TRAPEZE-NETWORKS-ROOT-MIB
      mibs +TRAPEZE-NETWORKS-SYSTEM-MIB
      mibs +TRAPEZE-NETWORKS-TRAP-MIB
      
      This file can be placed in one of the following locations:
      > net-snmp-config --snmpconfpath
      /etc/snmp:/usr/share/snmp:/usr/lib/snmp:/home/rep/.snmp:/var/lib/snmp
    3. Using local MIBs:

      Net-SNMP can translate numeric object identifies (OIDs) into textual object identifiers and vice versa (using the MIB description files):
      > snmptranslate -On TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTable
      .1.3.6.1.4.1.14525.4.6.1.1.1
      
      SNMPWALK on a single OID will display a list of all results from the sub-tree of this OID:
      > snmpwalk -v 2c -c test 10.144.124.8 .1.3.6.1.4.1.14525.4.6.1.1.1
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.1 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.2 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.3 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.4 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.5 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.6 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.7 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.8 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.9 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPortMode.10 = INTEGER: networkPort(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.1 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.2 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.3 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.4 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.5 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.6 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.7 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.8 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.9 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigPoeMode.10 = INTEGER: poeDisable(2)
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.1 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.2 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.3 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.4 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.5 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.6 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.7 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.8 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.9 = Gauge32: 0
      TRAPEZE-NETWORKS-PORT-MIB::trpzPortConfigTrunkMaster.10 = Gauge32: 0
      
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