Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Discrepencies between IF-MIB::ifTable and IOS "show interface"

On a WS-C4507R-E switch, I get this on IOS command line:

>show int Te3/2
TenGigabitEthernet3/2 is down, line protocol is down (inactive)

. . . . . .

  Full-duplex, 10Gb/s, link type is auto, media type is No X2
. . . . . .

However, with a SNMP walk of IF-MIB::ifTable, I get these (copy and pasted):

ifDescr = TenGigabitEthernet3/2

ifAdminStatus = up

ifOperStatus = down

ifConnectorPresent = true

It seems that the results differ. What did I get wrong?

Thanks for help!

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: Discrepencies between IF-MIB::ifTable and IOS "show interfac

> >show int Te3/2
> TenGigabitEthernet3/2 is down, line protocol is down (inactive)

> . . . . . .

>  Full-duplex, 10Gb/s, link type is auto, media type is No X2
>. . . . . .

>However, with a SNMP walk of IF-MIB::ifTable, I get these (copy and pasted):

> ifDescr = TenGigabitEthernet3/2

> ifAdminStatus = up

> ifOperStatus = down

> ifConnectorPresent = true

> It seems that the results differ. What did I get wrong?

This is all o.k.

if you have

int ten 3/2

shutdown

end

then sh int ten 3/2 gives you "ten3/2 is administratively down", and ifAdminStatus = down .

but you have

int ten 3/2

no shutdown

end

so sh int ten 3/2 gives you "ten 3/2 is down" since it is

administratively up (ifAdminStatus = up) BUT the Line-Protocol ist down (ifOPerStatus = down) ,

for example, no cable or neighbor device is off.

Hope this help's,

Jürgen.

2 REPLIES
New Member

Re: Discrepencies between IF-MIB::ifTable and IOS "show interfac

> >show int Te3/2
> TenGigabitEthernet3/2 is down, line protocol is down (inactive)

> . . . . . .

>  Full-duplex, 10Gb/s, link type is auto, media type is No X2
>. . . . . .

>However, with a SNMP walk of IF-MIB::ifTable, I get these (copy and pasted):

> ifDescr = TenGigabitEthernet3/2

> ifAdminStatus = up

> ifOperStatus = down

> ifConnectorPresent = true

> It seems that the results differ. What did I get wrong?

This is all o.k.

if you have

int ten 3/2

shutdown

end

then sh int ten 3/2 gives you "ten3/2 is administratively down", and ifAdminStatus = down .

but you have

int ten 3/2

no shutdown

end

so sh int ten 3/2 gives you "ten 3/2 is down" since it is

administratively up (ifAdminStatus = up) BUT the Line-Protocol ist down (ifOPerStatus = down) ,

for example, no cable or neighbor device is off.

Hope this help's,

Jürgen.

New Member

Re: Discrepencies between IF-MIB::ifTable and IOS "show interfac

Thanks, Jürgen,

You have answered my question. But unfortunately, I still have the problem of figuring out how to map what the IOS CLI reports to MIB objects.

As in my example:

TenGigabitEthernet3/2 is down, line protocol is down (inactive)

The "line protocol is down (inactive)" maps to ifOperStatus nicely.

But what does "TenGigabitEthernet3/2 is down" (not administratively down as you correctly pointed out) maps to? Or is there a MIB object for that at all?

Thanks and regards,

--

Wei

977
Views
0
Helpful
2
Replies
CreatePlease to create content