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.

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 oidview.com, 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
add comment

1 Answer 1

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: http://www.oidview.com/mibs/0/IF-MIB.html.

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

share|improve this answer
add comment

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.