Verify network interface status using SNMP OIDs
search cancel

Verify network interface status using SNMP OIDs

book

Article ID: 113165

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

  • How to verify network interface status using SNMP OIDs ?
  • How can I check Spectrum and confirm f an interface is really down ?

Environment

DX NetOps Spectrum - All releases

Resolution

Note: If an interface shows 'down' in Spectrum but 'up' on the device CLI, verify the device's SNMP response by capturing a sapwalk or using MibTools. A discrepancy between the CLI output and the OID values indicates the device is either providing incorrect SNMP data or needs to be re-indexed. 

To determine if an interface is down you need to check in which state the interface is by following below steps:

1. Check on your CA Spectrum and select the device model in question.

2. Click on the Interface tab.

3. Check on the Admin status and Oper Status ( if is not present you can right click and add column)

4. If you still have doubts that the interface is down, then you need to check on the OID coming from the Device:

MIB ObjectOIDDescription
ifAdminStatus1.3.6.1.2.1.2.2.1.7Desired state of the interface.
ifOperStatus1.3.6.1.2.1.2.2.1.8Current operational state.

5. This can be done either calling for that specific OID along with the index of the interface:

* Click on the Component details of the Interface and select attributes column.

* Type ifindex and copy the number in this case 32 is the index.



6. Then you can use the MibTools utility from Ca Spectrum to call the OID

ifOperStatus 1.3.6.1.2.1.2.2.1.7.32
ifAdminStatus 1.3.6.1.2.1.2.2.1.8.32

The MibTools utility shows the OID field populated with 1.3.6.1.2.1.2.2.1.8.32 (where 32 is the ifIndex) and the 'Get' operation returning a value of 2 (down) or 1 (up).

 

This will provide you the state of the interface straight from the device as CA Spectrum sees the device.

Additional Information

Please reference "How to use Sapwalk2" for more information on how to use sapwalk.