cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1449
Views
0
Helpful
2
Replies

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

ww9rivers
Level 1
Level 1

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

j-marenda
Level 1
Level 1

> >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.

View solution in original post

2 Replies 2

j-marenda
Level 1
Level 1

> >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.

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card