Skip to main content
HS08
Valued Contributor
Sep 17, 2025 12:03 AM UTC
Solved

VDOM Global

If the Fortigate have multiple vdom, can we directly enter to the vdom global without issuing 'config global'?

Currently when i ssh to the fortigate i must enter that command first before i can execute 'get system global'

Toshi_Esumi
SuperUser
Sep 17, 2025 12:30 AM UTC

I think your question is not to FGT side but to Ansible side, which I don't know well.
But there should be some discussion how to interactively exchange commands and get responses over SSH using Ansible. My quick search found this.
https://forum.ansible.com/t/make-an-ssh-connection-and-run-a-command-from-within-the-playbook/36256/3

Toshi

3 replies

Toshi_Esumi
SuperUser
SuperUser
Sep 17, 2025 12:17 AM UTC

No you can not.
The landing place of SSH or console you get in as a super_admin is not in either "global" or any "vdom" in multi-vdom environment, where is the only place you can "show" the entire config for both global and all vdoms.

To see/edit any config in global like "config system global", you have to get in "config global".

 

Toshi

Translate
HS08
HS08Author
Valued Contributor
Sep 17, 2025 12:21 AM UTC

So we cannot access to the global directly after successfull login via cli?

My point is we have ansible to query to the fortigate and the playbook will run get system global without typing config global.

Translate
NSE 6 - FortiNAC , NSE 4 - FortiOS Administrator Certified
Toshi_Esumi
SuperUser
SuperUser
Sep 17, 2025 12:30 AM UTC

I think your question is not to FGT side but to Ansible side, which I don't know well.
But there should be some discussion how to interactively exchange commands and get responses over SSH using Ansible. My quick search found this.
https://forum.ansible.com/t/make-an-ssh-connection-and-run-a-command-from-within-the-playbook/36256/3

Toshi

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024