Fortinet black logo

CLI Reference

show & show full-configuration

show & show full-configuration

The show commands display a part of your FortiMail unit’s configuration in the form of commands that are required to achieve that configuration from the firmware’s default state.

Although not explicitly shown in this section, for all config commands, there are related get and show commands which display that part of the configuration. get and show commands use the same syntax as their related config command, unless otherwise mentioned. For syntax examples and descriptions of each configuration object, field, and option, see the config chapters.

Unlike get, show does not display settings that are assumed to remain in their default state.

For example, you might show the current DNS settings:

FortiMail# show system dns

config system dns

set primary 172.16.1.10

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.

Exceptions include show full-configuration commands. This displays the full configuration, including the default settings, simliar to get commands. However, show full-configuration output uses configuration file syntax, while get commands do not.

For example, you might show the current DNS settings, including settings that remain at their default values (differences highlighted in bold):

FortiMail# show full-configuration system dns

config system dns

set primary 172.16.1.10

set secondary 172.16.1.11

set private-ip-query disable

set cache enable

end

Depending on whether or not you have specified an object, like get, show may display one of two different outputs: either the configuration that you have just entered but not yet saved, or the configuration as it currently exists on the disk, respectively.

For example, immediately after configuring the secondary DNS server setting but before saving it, show displays two different outputs (differences highlighted in bold):

FortiMail# config system dns

FortiMail (dns)# set secondary 192.168.1.10

FortiMail (dns)# show

config system dns

set primary 172.16.1.10

set secondary 192.168.1.10

set private-ip-query enable

set cache enable

end

FortiMail (dns)# show system dns

config system dns

set primary 172.16.1.10

end

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.

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 FortiMail unit’s configuration would therefore match the second output, not the first.

show & show full-configuration

The show commands display a part of your FortiMail unit’s configuration in the form of commands that are required to achieve that configuration from the firmware’s default state.

Although not explicitly shown in this section, for all config commands, there are related get and show commands which display that part of the configuration. get and show commands use the same syntax as their related config command, unless otherwise mentioned. For syntax examples and descriptions of each configuration object, field, and option, see the config chapters.

Unlike get, show does not display settings that are assumed to remain in their default state.

For example, you might show the current DNS settings:

FortiMail# show system dns

config system dns

set primary 172.16.1.10

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.

Exceptions include show full-configuration commands. This displays the full configuration, including the default settings, simliar to get commands. However, show full-configuration output uses configuration file syntax, while get commands do not.

For example, you might show the current DNS settings, including settings that remain at their default values (differences highlighted in bold):

FortiMail# show full-configuration system dns

config system dns

set primary 172.16.1.10

set secondary 172.16.1.11

set private-ip-query disable

set cache enable

end

Depending on whether or not you have specified an object, like get, show may display one of two different outputs: either the configuration that you have just entered but not yet saved, or the configuration as it currently exists on the disk, respectively.

For example, immediately after configuring the secondary DNS server setting but before saving it, show displays two different outputs (differences highlighted in bold):

FortiMail# config system dns

FortiMail (dns)# set secondary 192.168.1.10

FortiMail (dns)# show

config system dns

set primary 172.16.1.10

set secondary 192.168.1.10

set private-ip-query enable

set cache enable

end

FortiMail (dns)# show system dns

config system dns

set primary 172.16.1.10

end

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.

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 FortiMail unit’s configuration would therefore match the second output, not the first.