Skip to main content
dzhao
New Member
May 27, 2019
Solved

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

  • May 27, 2019
  • 3 replies
  • 11432 views

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

Best answer by Alexis_G

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.

 

3 replies

Alexis_G
Alexis_GAnswer
New Member
May 28, 2019

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.

 

nasa
New Member
October 19, 2022

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
SuperUser
SuperUser
October 19, 2022

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

 

config glo

config sys int

show | grep -f "vdom_name"

 

Toshi

Fern-X
New Member
February 22, 2023

diagnose sys device list <vdom_name>