Fortinet white logo
Fortinet white logo

execute

execute

Execute static commands.

Usage

execute {
    backup ‑u <username> <protocol> <host> <port> <directory> | 
    detail‑container | 
    detail‑node | 
    detail‑service | 
    list‑container | 
    list‑service | 
    log‑debug |
    log‑sys1 | 
    log‑sys2 |
    ping <host> | 
    reboot | 
    repair‑disk |
    reset |
    restore ‑u <username> <protocol> <host> <port> <filepath> <overwrite_license> |
    shutdown | 
    sniffer-packet <port> <filter> <count> <timestamp_format> <verbose> |
    traceroute <host> | 
    upgrade ‑u <username> <protocol> <host> <port> <filepath> |
    usage‑container | 
    usage‑node | 
    vm‑license <token>
}

Commands

Command

Description

backup

Back up system configuration and transfer using the provided username across the given protocol to the destination host, port, and directory. You are prompted for the password.

detail-container

Get internal Kubernetes pod containers with detailed info for all namespaces.

detail-node

Get internal Kubernetes pod node details for all namespaces.

detail-service

Get internal Kubernetes pod network service details for all namespaces.

list-container

List internal Kubernetes pod containers with basic info for all namespaces.

list-service

List internal Kubernetes pod network services for all namespaces.

log-debug

Display the debug log.

log-sys1

Display the infrastructure log.

log-sys2

Display the watch log.

ping

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

reboot

Reboot system.

repair-disk

Fix disk errors caused by unexpected power outage.

reset

Reset all application and system data except for interface and route settings. You are prompted to confirm the system reset.

restore

Restore system configuration using the provided username across the given protocol from the remote host, port, and directory. You are prompted for the password.

shutdown

Shutdown system.

sniffer-packet

Capture network packets.

traceroute

Trace the route to a host. host may be an IP address or fully qualified domain name.

upgrade

Upgrade the system using the provided username across the given protocol from the remote host, port, and directory. You are prompted for the password.

usage-container

Get internal Kubernetes pod containers CPU and memory usage for all namespaces.

usage-node

Get internal Kubernetes pod node current CPU and memory usage.

vm-license

Install a Flex-VM license. token is the generated Flex-VM license token.

execute

execute

Execute static commands.

Usage

execute {
    backup ‑u <username> <protocol> <host> <port> <directory> | 
    detail‑container | 
    detail‑node | 
    detail‑service | 
    list‑container | 
    list‑service | 
    log‑debug |
    log‑sys1 | 
    log‑sys2 |
    ping <host> | 
    reboot | 
    repair‑disk |
    reset |
    restore ‑u <username> <protocol> <host> <port> <filepath> <overwrite_license> |
    shutdown | 
    sniffer-packet <port> <filter> <count> <timestamp_format> <verbose> |
    traceroute <host> | 
    upgrade ‑u <username> <protocol> <host> <port> <filepath> |
    usage‑container | 
    usage‑node | 
    vm‑license <token>
}

Commands

Command

Description

backup

Back up system configuration and transfer using the provided username across the given protocol to the destination host, port, and directory. You are prompted for the password.

detail-container

Get internal Kubernetes pod containers with detailed info for all namespaces.

detail-node

Get internal Kubernetes pod node details for all namespaces.

detail-service

Get internal Kubernetes pod network service details for all namespaces.

list-container

List internal Kubernetes pod containers with basic info for all namespaces.

list-service

List internal Kubernetes pod network services for all namespaces.

log-debug

Display the debug log.

log-sys1

Display the infrastructure log.

log-sys2

Display the watch log.

ping

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

reboot

Reboot system.

repair-disk

Fix disk errors caused by unexpected power outage.

reset

Reset all application and system data except for interface and route settings. You are prompted to confirm the system reset.

restore

Restore system configuration using the provided username across the given protocol from the remote host, port, and directory. You are prompted for the password.

shutdown

Shutdown system.

sniffer-packet

Capture network packets.

traceroute

Trace the route to a host. host may be an IP address or fully qualified domain name.

upgrade

Upgrade the system using the provided username across the given protocol from the remote host, port, and directory. You are prompted for the password.

usage-container

Get internal Kubernetes pod containers CPU and memory usage for all namespaces.

usage-node

Get internal Kubernetes pod node current CPU and memory usage.

vm-license

Install a Flex-VM license. token is the generated Flex-VM license token.