02-14-2006 03:30 AM
Hi all,
I am relatively new to OID's and MIB's and am looking for a little bit of advice please.
Basically, I want to monitor the output of the top line of a "sh int s0/0",
i.e
serial0/0 is up, line protocol is up
I am looking to monitor this command to see when a leeased line fails. I have an application which will test the OID at regular intervals but I cant find the right OID to use. The router I want to use it with is a 2620XM.
Can anyone point me in the right direction and is what I am asking possible ?
Will a line failure actual show in an OID and then trigger an alert, has anyone done this before ?
many thanks
Richard
02-14-2006 05:48 AM
Richard
i hope this helps, i pulled the info off my solarwinds mib viewer.
OID 1.3.6.1.2.1.2.2.1.7.1
Type INTEGER
Units
Access read-write
Status unknown
Value 1
up(1)
The desired state of the interface. The testing(3) state
indicates that no operational packets can be passed. When a
managed system initializes , all interfaces start with
ifAdminStatus in the down(2) state. As a result of either
explicit management action or per configuration information
retained by the managed system , ifAdminStatus is then
changed to either the up(1) or testing(3) states (or remains
in the down(2) state).
02-14-2006 01:22 PM
Rodney-roberts had a good start.
The serial0/0 is up is the administrative status. You'd poll that with
.1.3.6.1.2.1.2.2.1.7
ifAdminStatus OBJECT-TYPE
-- FROM RFC1213-MIB
SYNTAX Integer { up(1), down(2), testing(3) }
MAX-ACCESS read-write
STATUS Mandatory
DESCRIPTION "The desired state of the interface. The
testing(3) state indicates that no operational
packets can be passed."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) interfaces(2) ifTable(2) ifEntry(1) 7 }
The ,line protocol is up is Operational Status, you'd get that from
.1.3.6.1.2.1.2.2.1.8
ifOperStatus OBJECT-TYPE
-- FROM RFC1213-MIB
SYNTAX Integer { up(1), down(2), testing(3) }
MAX-ACCESS read-only
STATUS Mandatory
DESCRIPTION "The current operational state of the interface.
The testing(3) state indicates that no operational
packets can be passed."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) interfaces(2) ifTable(2) ifEntry(1) 8 }
You could monitor those values directly, but assuming you have Syslog and SNMP traps enabled you SHOULD get messages about the interface going down - unless that's the interface you're monitoring through. :)
A bit more advanced process would be to use RMON Alarm & Event to have the device 'self-monitor' and throw an SNMP trap when the values change passed a threshold you set.
http://www.cisco.com/en/US/tech/tk961/technologies_tech_note09186a0080094478.shtml
And even more brain-teasing method would be to use EVENT-MIB, but that's a real advanced option. :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide