Execute commands
Execute commands are used for the tasks listed below. These commands are run from the base context.
-
Backup
-
Factory Reset
-
License
-
Ping and traceroute
-
SSH
-
Reboot and shutdown
-
Restore image
-
Restore config
-
Important: Any configuration that isn’t explicitly defined in the backup configuration will be removed upon restore. The one exception is admin user settings (which are left untouched). All other config (interface, route, etc) will be reset to default and then have the configuration present in the provided config applied.
-
All methods of restore will first create a back-up configuration prior to applying the new config.
-
Available commands
Command |
Description |
|||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Enters a shell to interact with the appliance more directly. See shell commands for details. |
|||||||||||||||||||||||||||
|
Lists the available commands under execute |
|||||||||||||||||||||||||||
|
Enters the database shell |
|||||||||||||||||||||||||||
|
Resets the system to the factory default for the version installed. The user will be prompted once to continue with the operation, and again when the reset is complete to reboot the system. |
|||||||||||||||||||||||||||
|
|
Backup |
|
||||
|
Backs up the current system configuration locally to disk (/bsc/backups/). |
||||
|
Backs up the current system configuration via FTP to the remote destination using the provided username and password. The port option may be omitted if the destination uses the default FTP port (21) |
||||
|
Backs up the current system configuration remotely via SCP to the destination provided. The port option may be omitted if the destination uses the default SSH port (22) |
||||
|
Backs up the current system configuration to the specified TFTP destination |
||||
License |
|
||||
|
Add the raw license string to the system |
||||
|
Import the specified remote license file on the specified tftp host |
||||
|
Import the specified remote license file from the specified host via SCP |
||||
PING & Traceroute |
|
||||
|
PING the specified host |
||||
|
PING the specified IPv6 host |
||||
|
Trace the route between this system and the specified host |
||||
Shutdown & Reboot |
|
||||
|
Reboots the system |
||||
|
Shuts down the system |
||||
Restore |
|
||||
|
Install the .out image located on the specified remote host. Image is downloaded via SCP |
||||
|
Install the .out image located on the specified remote host. Image is downloaded via FTP |
||||
e |
Install the .out image located on the specified remote host. Image is downloaded via TFTP |
||||
|
Restore the configuration stored locally. Tab completion can be used to list the available configuration backups |
||||
|
Restore the configuration stored on the remote host at the specified location. Configuration downloaded via SCP |
||||
|
Restore the configuration stored on the remote host at the specified location. Configuration downloaded via FTP |
||||
|
Restore the configuration stored on the remote host at the specified location. Configuration downloaded via TFTP |
||||
|
Used for migrating CentOS configurations to new FortiNAC-OS platform. Important: Do not use without first reviewing the CentOS to FortiNAC-OS Migration documentation in the Documentation Library. Available options:
|
||||
SSH |
|
||||
|
SSH to the specified host as the specified user |
||||
|
Remove the specified known host fingerprint |
||||
|
Removes all the SSH host fingerprints from the known hosts |
||||
|
Adds the specified public key to the user's authorized hosts |
||||
|
Import the specified public key from a specified host, using the specified credentials, into the user's authorized hosts via scp |
||||
|
Displays the user's authorized hosts |
||||
|
Removes any authorized host keys that match the specified host. Tab completion of the <host> is supported. |