Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been asked to write a script that checks the status of all interfaces on a Juniper router using SNMP. I know how to use SNMP walk and have written a test perl script to retrieve the hostname.

Now I'm looking for a good reference of SNMP variables you can query. I've found a list at, but that does not include interface name or status. The name of that MIP says "extension", so I assume it's extending some kind of generic SNMP specification.

What SNMP OIDs can be used to retrieve a list of interfaces and their status (admin down, operational down, up) from a Juniper router?

share|improve this question
up vote 2 down vote accepted

While asking the question the answer became clear (maybe I should ask my question to a stuffed parrot before asking it on Serverfault :))

The JUNIPER-IF-MIB extends IF-MIB obviously, and that includes the names and status. It can be found here:

I'll leave the question here in case anyone else hits the same problem.

share|improve this answer

Your Answer


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.