Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
FatalHalt
Contributor II

List of Device Indexes

Is there any quick and easy way to get a list of device index's from a device? 

 

I'm wanting this for analyzing sessions in the session list.

 

orgin->sink: org pre->in, reply out->post dev=165->157/157->165 gwy=x.x.x.x/0.0.0.0

 

I know if I go and look through all of my interfaces one by one I can find these, but is there a simple list of them anywhere?

 

 

3 REPLIES 3
emnoc
Esteemed Contributor III

What do you mean by index as in snmp? Just snmpwalk the   unit

 

snmpwalk -c <communit> -v2v 1.1.1.1 if.Index

 

or maybe

 

diag netlink interface  list | grep index

 

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Agent_1994
Contributor

Try:

 

diagnose sys device list VDOM

 

IE:

 

diagnose sys device list root
list virtual firewall root info:
ip4 route_cache: table_size=262144 max_depth=3 used=381 total=426
arp: table_size=4096 max_depth=1 used=52 total=52
proxy_arp: table_size=256 max_depth=0 used=0 total=0
arp6: table_size=4096 max_depth=2 used=10 total=13
proxy_arp6: table_size=256 max_depth=0 used=0 total=0
local table version=0000004c main table version=00014bc0
vf=root dev=tunnelbroker index=3
vf=root dev=wan1 index=5
vf=root dev=wan2 index=6
vf=root dev=internal9 index=15
vf=root dev=internal10 index=16
vf=root dev=internal11 index=17
vf=root dev=internal12 index=18
vf=root dev=internal13 index=19
vf=root dev=internal14 index=20
vf=root dev=modem index=23
vf=root dev=root index=24
vf=root dev=ssl.root index=25
vf=root dev=DSI WIFI index=26
vf=root dev=DSI-INVITADOS index=27
vf=root dev=DSI-SERVERS index=28
vf=root dev=DSI-LAN index=29
vf=root dev=DSI-LAN7 index=30
vf=root dev=DSIRos-DSIBue index=31
ses=0/0 ses6=0/0 rt=0/0 rt6=0/0
Golle
New Contributor II

This did not work for me on Fortios 7.2.5, no indexes were displayed.

I found this alternative command that provided the index as part of the output

diag netlink interface list | grep index
if=wan1 family=00 type=1 index=5 mtu=1500 link=0 master=0
if=wan2 family=00 type=1 index=6 mtu=1500 link=0 master=0
if=internal1 family=00 type=1 index=8 mtu=1500 link=0 master=0
if=internal2 family=00 type=1 index=9 mtu=1500 link=0 master=0
if=internal3 family=00 type=1 index=10 mtu=1500 link=0 master=0
if=internal4 family=00 type=1 index=11 mtu=1500 link=0 master=0
if=internal5 family=00 type=1 index=12 mtu=1500 link=0 master=0

NSE7
NSE7
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors