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

Is there a CLI command to show interfaces for a specific VDOM

Even when I am in the Vdom context, when I do "get system interfaces", it will show interfaces belonging to all VDOMs. It does not even have a column to say which vdom it belongs to. I also tried "diag ip address list" and it does not tell me that information either.

Is there a better command to display and even filter the information?

Thanks

1 Solution
Alexis_G
Contributor II

I suppose that if you create a limited admin user with admin rights on a particular VDOM then you should see only the interfaces belonging on this VDOM.

 

--------------------------------------------

If all else fails, use the force !

View solution in original post

3 REPLIES 3
Alexis_G
Contributor II

I suppose that if you create a limited admin user with admin rights on a particular VDOM then you should see only the interfaces belonging on this VDOM.

 

--------------------------------------------

If all else fails, use the force !

nasa
New Contributor

try to do it with grep here is a sample with vdom test

 

show full-configuration system interface | grep 'set vdom "test"' -B1
edit "ssl.test"
set vdom "test"
--
edit "port36.898"
set vdom "test"
--
edit "port38.899"
set vdom "test"
--
edit "lo_test_01"
set vdom "test"
--
edit "tun_1000_28"
set vdom "test"
--
edit "tun_1000_29"
set vdom "test"
--
edit "lo_test_254"
set vdom "test"
--
edit "port36.896"
set vdom "test"
--
edit "port38.897"
set vdom "test"
--
edit "tun_896_2d"
set vdom "test"

Toshi_Esumi
Esteemed Contributor II

What I regularly do for units that has 70-90 vdoms is

 

config glo

config sys int

show | grep -f "vdom_name"

 

Toshi