Fortinet white logo
Fortinet white logo

CLI Reference

fwmanager

fwmanager

Use these commands to manage firmware.

Syntax

diagnose fwmanager fwm-log <dump> [rolling number]

diagnose fwmanager image-clear

diagnose fwmanager image-delete <file>

diagnose fwmanager image-download <platform> <version>

diagnose fwmanager image-list <product> [raw]

diagnose fwmanager profile <action> [adom] <device | group | profile> <id | name> <raw | name> <raw>

diagnose fmmanager report <action> <argument 1> <argument 2>

diagnose fwmanager service-restart

diagnose fwmanager set-controller-schedule <device> <controller_id> <version> [date_time]

diagnose fwmanager set-dev-schedule <device> <version> [flags] [date_time]

diagnose fwmanager set-grp-schedule <group> <version> [flags] [date_time]

diagnose fwmanager show-dev-disk-check-status <device>

diagnose fwmanager show-dev-upgrade-path <device> <version>

diagnose fwmanager show-grp-disk-check-status <group>

diagnose fwmanager test-upgrade-path <platform> <from-version> <to-version> [debug]

Variable

Description

fwm-log <dump> [rolling number]

View the firmware manager log file. Optionally, dump whole log. Optionally, enter a rolling number from 0 to 10.

image-clear

Clear all local images and its FCP object files.

image-delete <file>

Delete a local image.

image-download <platform> <version>

Download the official image. Enter the platform name and version.

image-list <product> [raw]

Get the local firmware image list for the product:

  • FGT: FortiGate

  • FMG: FortiManager

  • FAZ: FortiAnalyzer

  • FAP: FortiAP

  • FSW: FortiSwitch

  • FXT: FortiExtender

Optionally, enter raw get the raw JSON response.

profile <action> [adom] <device | group | profile> <id | name> <raw | name> <raw>

Clear, list, or synchronize the firmware profile setting.

Enter one of the following actions:

  • cancel

  • clear

  • list

  • list-by-device

  • sync

If using list-by-device, enter the name or id of the device or group.

If using cancel, enter the profile name, device name or id, and, optionally, enter raw to show the raw data.

service-restart

Restart the firmware manager server.

set-controller-schedule <device> <controller_id> <version> [date_time]

Create a controller upgrade schedule for a device.

set-dev-schedule <device> <version> [flags] [date_time]

Create an upgrade schedule for a device.

set-grp-schedule <group> <version> <flags> <date_time>

Create an upgrade schedule for a group.

show-dev-disk-check-status <device>

Show whether the device needs a disk check.

show-dev-upgrade-path <device> <version> Show the possible upgrade path.
show-grp-disk-check-status <group> Show whether the devices in the group need disk checks.

test-upgrade-path <platform> <from-version> <to-version> [debug]

Show possible FortiGate upgrade paths.

fwmanager

fwmanager

Use these commands to manage firmware.

Syntax

diagnose fwmanager fwm-log <dump> [rolling number]

diagnose fwmanager image-clear

diagnose fwmanager image-delete <file>

diagnose fwmanager image-download <platform> <version>

diagnose fwmanager image-list <product> [raw]

diagnose fwmanager profile <action> [adom] <device | group | profile> <id | name> <raw | name> <raw>

diagnose fmmanager report <action> <argument 1> <argument 2>

diagnose fwmanager service-restart

diagnose fwmanager set-controller-schedule <device> <controller_id> <version> [date_time]

diagnose fwmanager set-dev-schedule <device> <version> [flags] [date_time]

diagnose fwmanager set-grp-schedule <group> <version> [flags] [date_time]

diagnose fwmanager show-dev-disk-check-status <device>

diagnose fwmanager show-dev-upgrade-path <device> <version>

diagnose fwmanager show-grp-disk-check-status <group>

diagnose fwmanager test-upgrade-path <platform> <from-version> <to-version> [debug]

Variable

Description

fwm-log <dump> [rolling number]

View the firmware manager log file. Optionally, dump whole log. Optionally, enter a rolling number from 0 to 10.

image-clear

Clear all local images and its FCP object files.

image-delete <file>

Delete a local image.

image-download <platform> <version>

Download the official image. Enter the platform name and version.

image-list <product> [raw]

Get the local firmware image list for the product:

  • FGT: FortiGate

  • FMG: FortiManager

  • FAZ: FortiAnalyzer

  • FAP: FortiAP

  • FSW: FortiSwitch

  • FXT: FortiExtender

Optionally, enter raw get the raw JSON response.

profile <action> [adom] <device | group | profile> <id | name> <raw | name> <raw>

Clear, list, or synchronize the firmware profile setting.

Enter one of the following actions:

  • cancel

  • clear

  • list

  • list-by-device

  • sync

If using list-by-device, enter the name or id of the device or group.

If using cancel, enter the profile name, device name or id, and, optionally, enter raw to show the raw data.

service-restart

Restart the firmware manager server.

set-controller-schedule <device> <controller_id> <version> [date_time]

Create a controller upgrade schedule for a device.

set-dev-schedule <device> <version> [flags] [date_time]

Create an upgrade schedule for a device.

set-grp-schedule <group> <version> <flags> <date_time>

Create an upgrade schedule for a group.

show-dev-disk-check-status <device>

Show whether the device needs a disk check.

show-dev-upgrade-path <device> <version> Show the possible upgrade path.
show-grp-disk-check-status <group> Show whether the devices in the group need disk checks.

test-upgrade-path <platform> <from-version> <to-version> [debug]

Show possible FortiGate upgrade paths.