08-03-2010 03:19 PM - last edited on 03-25-2019 04:11 PM by ciscomoderator
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!
Solved! Go to Solution.
08-10-2010 01:52 AM
> >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.
08-10-2010 01:52 AM
> >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.
08-20-2010 08:01 AM
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
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: