09-21-2016 01:11 AM - edited 03-12-2019 01:18 AM
Hi All,
How can i find the ifindex for interfaces for Cisco ASA 5506?
My Netflow Analyzer only shows ifindex names.
09-21-2016 06:19 AM
show snmp-server oidlist
09-21-2016 06:27 AM
09-21-2016 07:48 AM
The command lists all the usable snmp iods.
For your purposes, you will need to perform an snmpwalk on the following iods:
[12] 1.3.6.1.2.1.2.2.1.1. ifIndex
[13] 1.3.6.1.2.1.2.2.1.2. ifDescr
The results from the ifIndex mib will return the index id appended to the iod string.
The results from the ifDescr will return the index id along with the interface description.
If you are not familiar with SNMP or dont have access to a linux machine, this app seems to work in windows: https://www.snmpsoft.com/cmd-tools/snmp-walk/
Once your snmp permissions are configured on the ASA, you can run the following commands to get your ifindex and interface mappings:
SnmpWalk.exe -r:[IP] -c:"[COMMUNITY]" -os:1.3.6.1.2.1.2.2.1.1
SnmpWalk.exe -r:[IP] -c:"[COMMUNITY]" -os:1.3.6.1.2.1.2.2.1.2
09-22-2016 02:42 AM
thanks im a bit further now, in the massive output i can find the Ifindex names correct?
often got a : %Failed to get value of SNMP variable. Timeout.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide