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'
Solved! Go to Solution.
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/...
Toshi
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
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.
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/...
Toshi
User | Count |
---|---|
2588 | |
1380 | |
796 | |
658 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.