Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

2 chained EX 4500 I'd like to monitor using SNMP.

http://kb.juniper.net/InfoCenter/index?page=content&id=KB17526

Can anyone please explain how did he translate "jnxOperatingDescr" to "1.3.6.1.4.1.2636.3.1.13.1.5" ?

Thanks!

share|improve this question
1  
The MIB file 'mib-jnx-chassis.txt', referenced in your linked article, is used to perform the translation. Are you asking how MIBs work? –  jscott Mar 4 at 18:00
    
How is that file used to perform the translation? I mean using what command. –  user1571299 Mar 4 at 18:29

1 Answer 1

up vote 2 down vote accepted

First, IANA assigns OIDs under 1.3.6.1.4.1 which are "Private Enterprises." Juniper has 1.3.6.1.4.1.2636 (see http://www.alvestrand.no/objectid/1.3.6.1.4.1.html).

To get the rest it is better to trace backwards from the last element "jnxOperatingDescr." Here is the definition:

jnxOperatingDescr OBJECT-TYPE
  SYNTAX        DisplayString (SIZE (0..255))
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION
    "The name or detailed description of this subject."
  ::= { jnxOperatingEntry 5 }

The last line indicates the last number in the OID is 5 and the parent is jnxOperatingEntry. Looking at the definition for jnxOperatingEntry and you'll find "::= { jnxOperatingTable 1 }" so the next entry is 1 and the parent is jnxOperatingTable. Tracing these all the way back you get 3.1.13.1.5. Concatentate Juniper's private enterprise 1.3.6.1.4.1.2636.3.1.13.1.5.

share|improve this answer
    
isnt there a way to do this using snmptranslate or something? –  user1571299 Mar 4 at 18:57
    
Yes: "snmptranslate -On JUNIPER-MIB::jnxOperatingDescr". You need to have the Juniper MIBs from juniper.net/techpubs/en_US/release-independent/junos/mibs/… –  Mark Wagner Mar 4 at 19:12
    
I get many "unlinked OID"... what am I missing? –  user1571299 Mar 4 at 19:21
    
What I did: cd ~/.snmp/mibs; wget juniper.net/techpubs/software/junos/junos133/…; tar zxf juniper-mibs-13.3R1.6.tgz; mv JuniperMibs/* .; snmptranslate -On JUNIPER-MIB::jnxOperatingDescr (NET-SNMP version: 5.7.2.1) –  Mark Wagner Mar 4 at 22:03
    
I dont know why but it simply didnt work with the files inside the ZIP file I downloaded. The tar file worked flawlessly. Thanks alot! –  user1571299 Mar 4 at 22:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.