get
The get
command displays parts of your FortiWeb appliance’s configuration in the form of a list of settings and their values.
Unlike show
, get
displays all settings, even if they are still in their default state.
For example, you might get the current DNS settings:
get system dns
primary : 192.0.2.19
secondary : 0.0.0.0
domain : example.com
Notice that the command displays the setting for the secondary DNS server, even though it has not been configured, or has reverted to its default value.
Also unlike show
, unless used from within an object or table, get
requires that you specify the object or table whose settings you want to display.
For example, at the root prompt, this command would be valid:
get system dns
and this command would not be valid:
get
Like show
, depending on whether or not you have specified an object, get
may display one of two different outputs, either the configuration that you have just entered but not yet saved, or as it currently exists on the flash disk.
For example, immediately after configuring the secondary DNS server setting but before saving it, get
displays two different outputs (differences highlighted in bold):
FortiWeb# config system dns
FortiWeb (dns)# set secondary 192.0.2.10
FortiWeb (dns)# get
primary : 192.0.2.19
secondary : 192.0.2.10
domain : example.com
FortiWeb (dns)# get system dns
primary : 192.0.2.19
secondary : 0.0.0.0
domain : example.com
The first output from get
indicates the value that you have configured but not yet saved; the second output from get
indicates the value that was last saved to disk.
If you were to now enter end
, saving your setting to disk, get
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 FortiWeb appliance’s configuration would therefore match the second output, not the first.
If you have entered settings but cannot remember how they differ from the existing configuration, the two different forms of get , with and without the object name, can be a useful way to remind yourself. |
Most get
commands, such as get
system dns
, are used to display configured settings. You can find relevant information about such commands in the corresponding config commands in the config
chapter.
Other get
commands, such as system performance, are used to display system information that is not configurable. This chapter describes this type of get
command.
The get commands require at least read (r) permission to applicable administrator profile groups.
Although not explicitly shown in this section, for all config commands, there are related |
When ADOMs are enabled, if you log in as admin
, the top level of the shell changes: the two top level items are get global
and get vdom
:
-
get global
displays settings that onlyadmin
or other accounts with the prof_admin access profile can change. -
get vdom
displays each ADOM and its respective settings.
This menu and CLI structure change is not visible to non-global accounts; ADOM administrators’ navigation menus continue to appear similar to when ADOMs are disabled, except that global settings such as network interfaces, HA, and other global settings do not appear.