Fortinet white logo
Fortinet white logo

CLI Reference

7.2.2

execute

execute

Execute static commands.

Syntax

execute {
    api-user generate-key <name>
    config backup <filename> [password] |
    import-vmlicense <license_string> |
    log filter category <category> |
    log filter device <device> |
    log filter dump |
    log display |
    log delete |
    log delete-all |
    ping <host> |
    shutdown |
    telnet <host> [port] |
    update-now |
}

Commands

Command

Description

config backup

Back up full configuration to <filename> in the /data directory. If password is specified, the backup config file will be encrypted with it.

import-vmlicense

Import license. Paste the full contents of the license file, enclosed in quotes.

log filter category

Specify the log category to filter on for display or delete. Press Enter without entering a category to see a list of available categories.

log filter device

Specify the log category to filter on for display or delete. Press Enter without entering a device to see a list of available devices.

log filter dump

Display the currently set log filters.

log display

Display the logs matching the currently set log filters.

log delete

Delete the logs matching the currently set log filters.

log delete-all

Delete all logs.

ping

Ping remote hosts. host may be an IP address or fully qualified domain name.

shutdown

Shutdown system immediately.

telnet

Connect to host using a simple telnet client.

update-now

Update FortiGuard definitions.

execute

execute

Execute static commands.

Syntax

execute {
    api-user generate-key <name>
    config backup <filename> [password] |
    import-vmlicense <license_string> |
    log filter category <category> |
    log filter device <device> |
    log filter dump |
    log display |
    log delete |
    log delete-all |
    ping <host> |
    shutdown |
    telnet <host> [port] |
    update-now |
}

Commands

Command

Description

config backup

Back up full configuration to <filename> in the /data directory. If password is specified, the backup config file will be encrypted with it.

import-vmlicense

Import license. Paste the full contents of the license file, enclosed in quotes.

log filter category

Specify the log category to filter on for display or delete. Press Enter without entering a category to see a list of available categories.

log filter device

Specify the log category to filter on for display or delete. Press Enter without entering a device to see a list of available devices.

log filter dump

Display the currently set log filters.

log display

Display the logs matching the currently set log filters.

log delete

Delete the logs matching the currently set log filters.

log delete-all

Delete all logs.

ping

Ping remote hosts. host may be an IP address or fully qualified domain name.

shutdown

Shutdown system immediately.

telnet

Connect to host using a simple telnet client.

update-now

Update FortiGuard definitions.