Fortinet white logo
Fortinet white logo

CLI Reference

fwmanager

fwmanager

Use these commands to manage firmware.

Syntax

diagnose fwmanager cancel-schedule <taskid>

diagnose fwmanager delete-all

diagnose fwmanager delete-imported-images

diagnose fwmanager delete-official-images

diagnose fwmanager delete-serverlist

diagnose fwmanager download-image <platform> <version>

diagnose fwmanager fwm-log [module]

diagnose fwmanager get-all-schedule [filter by status]

diagnose fwmanager get-dev-schedule <device> [filter by status]

diagnose fwmanager get-grp-schedule <group> [filter by status]

diagnose fwmanager imported-imagelist

diagnose fwmanager official-imagelist <platform>

diagnose fwmanager reset-schedule-database

diagnose fwmanager serverlist [raw]

diagnose fwmanager service-restart

diagnose fwmanager set-controller-schedule <device> <controller_id> <version> [flags] [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> [debug]

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

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

Variable

Description

cancel-schedule <taskid>

Cancel an upgrade schedule for a device.

delete-all

Remove everything in the firmware manager folder. This command requires a reboot.

delete-imported-images

Remove all imported images. This command requires a reboot.

delete-official-images

Remove all official images. This command requires a reboot.

delete-serverlist

Remove the server list file (fdni.dat). This command requires a reboot.

download-image <platform> <version>

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

fwm-log [module]

View the firmware manager log file. Optionally, filter based on the module: fwmupd, fwmsg_server, or fwmlinkd.

get-all-schedule [filter by status]

Display all recorded upgrade schedules. Optionally, filter for the schedule (succeeded, failed, or unfinished).

get-dev-schedule <device> [filter by status]

Get scheduled upgrades for the specified device. Optionally, filter for the schedule (succeeded, failed, or unfinished).

get-grp-schedule <group> [filter by status]

Get scheduled upgrades for the specified group name or ID. Optionally, filter for the schedule (succeeded, failed, or unfinished).

imported-imagelist

Get the imported firmware image list.

official-imagelist <platform>

Get the official firmware image list for the platform.

reset-schedule-database

Cleanup and initialize the schedule database and restart the server.

serverlist [raw]

Dump the server list, optionally in raw format.

service-restart

Restart the firmware manager server.

set-controller-schedule <device> <controller_id> <version> [flags] [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> [debug] 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 cancel-schedule <taskid>

diagnose fwmanager delete-all

diagnose fwmanager delete-imported-images

diagnose fwmanager delete-official-images

diagnose fwmanager delete-serverlist

diagnose fwmanager download-image <platform> <version>

diagnose fwmanager fwm-log [module]

diagnose fwmanager get-all-schedule [filter by status]

diagnose fwmanager get-dev-schedule <device> [filter by status]

diagnose fwmanager get-grp-schedule <group> [filter by status]

diagnose fwmanager imported-imagelist

diagnose fwmanager official-imagelist <platform>

diagnose fwmanager reset-schedule-database

diagnose fwmanager serverlist [raw]

diagnose fwmanager service-restart

diagnose fwmanager set-controller-schedule <device> <controller_id> <version> [flags] [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> [debug]

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

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

Variable

Description

cancel-schedule <taskid>

Cancel an upgrade schedule for a device.

delete-all

Remove everything in the firmware manager folder. This command requires a reboot.

delete-imported-images

Remove all imported images. This command requires a reboot.

delete-official-images

Remove all official images. This command requires a reboot.

delete-serverlist

Remove the server list file (fdni.dat). This command requires a reboot.

download-image <platform> <version>

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

fwm-log [module]

View the firmware manager log file. Optionally, filter based on the module: fwmupd, fwmsg_server, or fwmlinkd.

get-all-schedule [filter by status]

Display all recorded upgrade schedules. Optionally, filter for the schedule (succeeded, failed, or unfinished).

get-dev-schedule <device> [filter by status]

Get scheduled upgrades for the specified device. Optionally, filter for the schedule (succeeded, failed, or unfinished).

get-grp-schedule <group> [filter by status]

Get scheduled upgrades for the specified group name or ID. Optionally, filter for the schedule (succeeded, failed, or unfinished).

imported-imagelist

Get the imported firmware image list.

official-imagelist <platform>

Get the official firmware image list for the platform.

reset-schedule-database

Cleanup and initialize the schedule database and restart the server.

serverlist [raw]

Dump the server list, optionally in raw format.

service-restart

Restart the firmware manager server.

set-controller-schedule <device> <controller_id> <version> [flags] [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> [debug] 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.