execute
execute clean logs
Clean system logs.
execute conntrack
execute conntrack <OPTIONS>+
For full command help: help execute conntrack
execute disk extend
When hypervisor hotplugs a disk to FortiPoC, increase resource volume with this new disk.
Warning
you CAN’T remove a disk once it has been added to the resource disk.
execute disk fsck
Do a resource disk’s file system check. Do NOT run when disk is mounted.
execute dns lookup
execute dns lookup <ARGS>+
DNS lookup (dig command).
For full command help: help execute dns lookup
execute factoryreset2
Reset FortiPoC to factory settings except for network parameters. All PoCs and resources are erased, the instance is unregistered and rebooted.
execute fsck on reboot
Do a resource disk’s file system check on next reboot.
execute gcp push ssh host keys
execute grub conf factoryreset
Restore grub default configuration file to factory state.
Warning
you MUST reboot
execute htop
execute htop <ARGS>+
Run htop command (if available) to see processes usage.
For full command help: help execute htop
execute import cleanup local
Erase the mirror of remote FortiPoC.
execute import from local
execute import from local <OPTIONS>+
Re-import content mirrored from a remote FortiPoC.
- –dry-run
test import
- –no-repo
don’t import the repo
- –no-pocs
don’t import the pocs
execute import from remote
execute import from remote <ADDRESS> <OPTIONS>+
Import all PoCs from remote FortiPoC, including local repository and snapshots.
- –dry-run
mirror content but only test import
- –no-repo
don’t import the local repository
- –no-pocs
don’t import the pocs
execute kernel backports upgrade
execute licenses generate uuid
execute licenses generate uuid <OVERWRITE>
Generate unique UUID for each license.
By default do not update licenses with a UUID, use
--overwrite
to force.
execute licenses move group
execute licenses move group <SRC> <DST> <FORCE>
execute licenses owner release
execute licenses owner release <OWNER> <FORCE>
Release all licenses used by owner (FortiPoC SN), add --force
to skip confirmation.
execute licenses release
execute licenses release <FORCE>
Release all licenses, add --force
to skip confirmation
execute licenses release group
execute licenses release group <GROUP> <FORCE>
execute licenses release older than
execute licenses release older than <LIMIT> <FORCE>
Release all licenses used by older than specified limit date (iso
format as displayed by “diagnose licenses list”) or days (ex:
“2d” for 2 days). Add --force
to skip confirmation.
execute network down
Disable FortiPoC network interfaces.
execute network restart
Restart FortiPoC network interfaces.
execute network up
Enable FortiPoC network interfaces.
execute ping
execute ping <ARGS>+
Ping a host (ping command).
For full command help: help execute ping
execute purge snapshots broken
execute purge snapshots broken <OPTIONS>+
Delete all broken snapshots (see “diagnose snapshots”).
Options:
--force
to skip confirmation--dry-run
to test without deleting
execute purge snapshots obsolete
execute purge snapshots obsolete <OPTIONS>+
Delete all obsolete snapshots (see “diagnose snapshots”).
Options:
--force
to skip confirmation--dry-run
to test without deleting
execute service restart
execute service restart <SERVICE>
Restart a FortiPoC service
For full command help: help execute service restart
execute shell
Open a root shell.
execute shutdown
execute shutdown <FORCE>
Shutdown FortiPoC. FortiPoC tries to gracefully shutdown devices. If it’s not possible, they will be killed.
execute support session close
Close a support session.
execute support session open
execute support session open <OPTIONS>+
Open a support session, allowing FortiPoC Support Team to login on the instance.
VPN tunnel is: support.fortipoc.com:12002
Options:
--yes : automatic agree and continue
--force : force a new session even if one already exists
**** DISCLAIMER ****
By opening a support session you agree to:
Open a VPN tunnel with the FortiPoC Support Server (support.fortipoc.com on UDP port 12002).
Allow FortiPoC Support Team to access your FortiPoC instance.
By allowing FortiPoC Support Team to access your FortiPoC instance you acknowledge the following:
FortiPoC Support Team could have access to any network or device that your FortiPoC instance has currently access to, including but not limited to your home or lab network, corporate networks, IoT devices, any devices connected to the same network.
To limit this exposure you have reviewed your firewall policies and implemented network segmentation.
execute support session status
Show support session information.
execute telnet
execute telnet <ARGS>+
Run telnet command.
For full command help: help execute telnet
execute top
execute top <ARGS>+
Run top command to see processes usage.
For full command help: help execute top
execute upgrade
execute upgrade <ARGS>+
Upgrade to next available version.
You must eject any running PoC first: poc eject
You can’t run this command from the WebUI CLI.
Warning
Prior to running any upgrade, it is strongly advised to export all your defined PoCs.
Upgrade is generally only available between build of the same minor version (so you can upgrade from a 1.4.1 to 1.4.10).
To upgrade simply run execute upgrade
.
If an upgrade is available and installed, you should be proposed to reboot. It’s strongly advised to do so.
If you refuse to reboot, at least you MUST exit from the CLI as it’s still the previous version that you are running.
To upgrade to a new minor or major release, you must download the new archive including the new disk image.
--force
to force install when versions are the same--yes
to skip confirmation--dangerous
to install even if a poc is running (automatic reboot disabled)
execute webui restart
Web User Interface service restart.
execute webui start
Web User Interface service start.
execute webui stop
Web User Interface service stop.