Fortinet black logo

CLI Reference

show

show

Use show commands to display configuration settings and values. You must have read permission for the configuration object you want to display.

show commands display user-configured setings but not default settings; get commands display all settings, including both user-configured settings and defaults.

For example, you might show the current DNS settings:

FortiADC-VM # show system dns

config system dns

set primary 8.8.8.8

end

Notice that the command does not display the setting for the secondary DNS server. This indicates that it has not been configured, or has reverted to its default value.

Like get, depending on whether or not you have specified an object, show displays one of two different outputs:

  • The configuration you have just entered but not yet saved
  • The configuration as it currently exists on the flash disk

For example, immediately after configuring the secondary DNS server setting but before saving it, show displays two different outputs. In the following example, the first output from show indicates the value that you have configured but not yet saved; the second output from show indicates the value that was last saved to disk.

FortiADC-VM # config system dns

FortiADC-VM (dns) # set secondary 192.168.1.10

FortiADC-VM (dns) # show

config system dns

set primary 8.8.8.8

set secondary 192.168.1.10

end

FortiADC-VM (dns) # show system dns

config system dns

set primary 8.8.8.8

end

If you have entered settings but cannot remember how they differ from the existing configuration, the two different forms of show, with and without the object name, can be a useful way to remind yourself.

If you were to now enter end, saving your setting to disk, show output for both syntactical forms would again match. However, if you were to enter abort at this point and discard your recently entered secondary DNS setting instead of saving it to disk, the FortiADC appliance’s configuration would therefore match the second output, not the first.

When VDOMs are enabled, and if you log in as admin, the top level of the shell changes: the two top level items are show globaland show vdom.

show global displays settings that only admin or other accounts with the super_admin_prof access profile can change.

show vdom displays each VDOM and its respective settings.

This menu and CLI structure change is not visible to non-global accounts; VDOM administrators’ navigation menus continue to appear similar to when VDOMs are disabled, except that global settings such as network interfaces, HA, and other global settings do not appear.

show

show

Use show commands to display configuration settings and values. You must have read permission for the configuration object you want to display.

show commands display user-configured setings but not default settings; get commands display all settings, including both user-configured settings and defaults.

For example, you might show the current DNS settings:

FortiADC-VM # show system dns

config system dns

set primary 8.8.8.8

end

Notice that the command does not display the setting for the secondary DNS server. This indicates that it has not been configured, or has reverted to its default value.

Like get, depending on whether or not you have specified an object, show displays one of two different outputs:

  • The configuration you have just entered but not yet saved
  • The configuration as it currently exists on the flash disk

For example, immediately after configuring the secondary DNS server setting but before saving it, show displays two different outputs. In the following example, the first output from show indicates the value that you have configured but not yet saved; the second output from show indicates the value that was last saved to disk.

FortiADC-VM # config system dns

FortiADC-VM (dns) # set secondary 192.168.1.10

FortiADC-VM (dns) # show

config system dns

set primary 8.8.8.8

set secondary 192.168.1.10

end

FortiADC-VM (dns) # show system dns

config system dns

set primary 8.8.8.8

end

If you have entered settings but cannot remember how they differ from the existing configuration, the two different forms of show, with and without the object name, can be a useful way to remind yourself.

If you were to now enter end, saving your setting to disk, show output for both syntactical forms would again match. However, if you were to enter abort at this point and discard your recently entered secondary DNS setting instead of saving it to disk, the FortiADC appliance’s configuration would therefore match the second output, not the first.

When VDOMs are enabled, and if you log in as admin, the top level of the shell changes: the two top level items are show globaland show vdom.

show global displays settings that only admin or other accounts with the super_admin_prof access profile can change.

show vdom displays each VDOM and its respective settings.

This menu and CLI structure change is not visible to non-global accounts; VDOM administrators’ navigation menus continue to appear similar to when VDOMs are disabled, except that global settings such as network interfaces, HA, and other global settings do not appear.