Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

fwmanager

Use these commands to manage firmware.

Syntax

diagnose fwmanager cancel-schedule <taskid>

diagnose fwmanager fwm-log

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 image-delete <file>

diagnose fwmanager image-download <platform> <version>

diagnose fwmanager image-list <product>

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.

fwm-log

View the firmware manager log file.

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).

image-delete <file>

Delete a local image.

image-download <platform> <version>

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

image-list <product>

Get the local firmware image list for the product:

  • FGT: FortiGate

  • FMG: FortiManager

  • FAZ: FortiAnalyzer

  • FAP: FortiAP

  • FSW: FortiSwitch

  • FXT: FortiExtender

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. The build number is only needed for special images, use 0 for regular images.

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

Use these commands to manage firmware.

Syntax

diagnose fwmanager cancel-schedule <taskid>

diagnose fwmanager fwm-log

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 image-delete <file>

diagnose fwmanager image-download <platform> <version>

diagnose fwmanager image-list <product>

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.

fwm-log

View the firmware manager log file.

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).

image-delete <file>

Delete a local image.

image-download <platform> <version>

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

image-list <product>

Get the local firmware image list for the product:

  • FGT: FortiGate

  • FMG: FortiManager

  • FAZ: FortiAnalyzer

  • FAP: FortiAP

  • FSW: FortiSwitch

  • FXT: FortiExtender

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. The build number is only needed for special images, use 0 for regular images.

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.