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

Vdom show configuration

Are there any command to show full configuration (including VDOM' s) from CLI? Y
6 REPLIES 6
emnoc
Esteemed Contributor III

Yes, it' s quite simple. After ssh into the device or the CLI console window. get into config global mode and then execute " show full"

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
p768
New Contributor

remember, you need to be a Super Admin for this
Yngve0
New Contributor II

This command returns extended information, but nothing about firewall policies on VDOM-level. Y
abelio

From CLI admin guide:
 config global           Enter config global to access global commands.
                              In the global shell, you can execute commands that 
                              affect all virtual domains, such as
                              config system autoupdate.
                              For a list of the global commands, see “global” on page 55.
 config vdom           Enter config vdom  to access VDOM-specific commands.
                              In the vdom shell, use the edit <vdom_name> command 
                              to  create a new VDOM or to edit the configuration of an
                              existing VDOM.
                              In the <vdom_name> shell, you can execute commands to
                               configure options that apply only within the VDOM, such as 
                              config firewall policy.
                              For a list of VDOM-specific commands, see “vdom” on page 58.
                               When you have finished, enter next to edit another vdom,
                               or    end.
 get system status     System status. See “vdom-link” on page 460.
 exit                         Log off.
 
once you' re in the choosen Vdom, you can use ' show full firewall policy' command

regards




/ Abel

regards / Abel
Yngve0
New Contributor II

So there are no single command to retrieve a complete configuration including all vdoms (like " Backup configuration function in WEBui)? My background for the question is that I use Cattools for scheduled backup. Y
emnoc
Esteemed Contributor III

You can always secure copy the config off. scp user@ip_addres.com:sys_config I have keys upload on the 20 or so fortigates I manage or own , and a screw runs everyday that copys down the configs. Just make your enable scp support. " set admin-scp enable" in global configuration.

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
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