cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9409
Views
0
Helpful
6
Replies

Interface status "err-disabled" and SNMP

rhub
Level 1
Level 1

I would like to scan all my switches for interfaces in status "err-disabled" via SNMP.

When doing a SNMPWALK with my MIB-browser I get the correct informations (see attached file snmpwalk.jpg) including the object_id.

When doing a SNMPGET with exactly the same object_id, I get the response "request failed: there is no such variable name in this MIB.Errindex:1

According to the MIB-translator in CCO the object_ID is: 1.3.6.1.4.1.9.9.548.1.3.1.1 (cErrDisableIfStatusEntry). For my specific "err-disabled" reason (bpduguard) the object_ID is 1.3.6.1.4.1.9.9.548.1.3.1.1.2, which is absolutely correct.

I'm also facing exactly the same situation when scanning the switches for client MAC-adresses, connected to switchports.

Any hints ond tips are very much appreciated

6 Replies 6

AFROJ AHMAD
Cisco Employee
Cisco Employee

Hi,

Can you try the below OID:
you can query cpsIfPortSecurityStatus (1.3.6.1.4.1.9.9.315.1.2.1.1.2), which would indicate if the port is in err-disabled status.
Also, portAdditionalOperStatus (1.3.6.1.4.1.9.5.1.4.1.1.23) should provide information about this.

There are limitation with the STACK-MIB support on few IOS. Try the above OID's and see if they work on your devices..

Thanks-

Afroz

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Hi Afroz

many thanks for your reply. I will try to query these OIDs and let you know afterwards.

Thanks

Roman

Hi Afroz

I tried both OIDs according to your suggestion but still I'm not able  to get a response to the SNMPGET. I checked the IOD within my MIB  browser and found that the leaf pointing to that OID is crossed by a red  mark, which I think means, that i tis not available (see attached file  cpsIfPortSecuritySatus.jpg).

Still If I'm doing a SNMPWALK, I get the port-status (err-disable) as it is down on the switch.

what platform ,you are using ?

what about the about of portAdditionalOperStatus (1.3.6.1.4.1.9.5.1.4.1.1.23)

I have found this MIB as well, check if you get the desired result

1.3.6.1.4.1.9.9.548

Thanks-

Afroz

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Hello Afroz,

again many thanks for your reply.

I'm running IOS 12.2(55)SE3 (Image: c3560e-universalk9-mz.122-55.SE3) on a Catalyst 3560X-48P and I'm facing exactly the same problem, also with the 2 OIDs you mentioned but when doing an SNMPWALK down the tree within CISCO-STACK-MIB the MIB browser stops after OID portSpannTreeFastStart.

If I do a SNMPGET at OID 1.3.6.1.4.1.9.5.1.4.1.1.9 (portAdminSpeed) which is located above "portSpannTreeFastStart", I get the correct values but doing an SNMPGET below "portSpannTreeFastStart", I get an error "No data available in this subtree". I guess there is something wrong with this MIB.

If I do an SNMPGET with the value:

.iso.org.dod.internet.private.enterprises.cisco.ciscoMgmt.ciscoErrDisableMIB.ciscoErrDisableMIBObjects.cErrDisableIfObjects.cErrDisableIfStatusTable.cErrDisableIfStatusEntry.cErrDisableIfStatusCause

I get the correct infos but ig I do an SNMPGET using the value: 1.3.6.1.4.1.9.9.548.1.3.1.1.2 (the same as above), I get an error saying "There is no such variable name in this MIB"

What is the difference between the 2 ways ?

Many thans for your new reply

Best regards

Roman

Hello Afroj

I'm coming back to this disussion with some further infos:

According to Cisco's MIB CISCO-STACK-MIB, we should get via

portAdditionalOperStatus (1.3.6.1.4.1.9.5.1.4.1.1.23) infos about the port-status, but unfortunately we don't.

I found, some bugs (CSCds85870, CSCdv75076) reported regading problems with that MIB. We investigated many hours to find whats going on here and we found that the MIB browser stops at portSpantree doing an SNMPWALK at

portSpantreeFastStart (1.3.6.1.4.1.9.5.1.4.1.1.12) and does not get any further, so I assume there is an error somewhere in that MIB.

We are running the following IOS-images:

c3560e-universalk9-mz.122-55.SE3

c2960-lanbasek9-mz.150-1.SE2

c3560c405ex-universalk9-mz.122-55.EX2

ies-lanbasek9-mz.150-2.EY1

Many thanks for your new reply

Best regards

Roman

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco