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:


Table of Contents

CLI Reference

fmupdate

Use these commands to diagnose update services.

Syntax

diagnose fmupdate dbcontract [fds | fgd] [serial_num]

diagnose fmupdate del-device {fct | fds | fgd | fgc} <serial_num> <UID>

diagnose fmupdate del-log

diagnose fmupdate del-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

diagnose fmupdate del-serverlist {fct | fds | fgd | fgc}

diagnose fmupdate fct-getobject

diagnose fmupdate fds-dump-fmgi

diagnose fmupdate fds-dump-breg

diagnose fmupdate fds-dump-srul

diagnose fmupdate fds-get-downstream-device [serial_num]

diagnose fmupdate fds-getobject

diagnose fmupdate fds-update-info

diagnose fmupdate fgd-asdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} {all | <serial>} <integer>

diagnose fmupdate fgd-asserver-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d}

diagnose fmupdate fgd-bandwidth {1h | 6h | 12h | 24h | 7d | 30d}

diagnose fmupdate fgd-dbver {wf | as | av-query}

diagnose fmupdate fgd-del-db {wf | as | av-query | file-query}

diagnose fmupdate fgd-get-downstream-device

diagnose fmupdate fgd-test-client <ip> <serial> <string> <integer>

diagnose fmupdate fgd-url-rating <ip> <serial> <version> <url>

diagnose fmupdate fgd-wfas-clear-log

diagnose fmupdate fgd-wfas-log {name | ip} <string>

diagnose fmupdate fgd-wfas-rate {wf | av | as_ip | as_url | as_hash}

diagnose fmupdate fgd-wfdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} {all | <serial>} {periods}

diagnose fmupdate fgd-wfserver-stat {top10sites | top10devices} {10m | 30m | 1h | 6h | 12h | 24h | 7d}

diagnose fmupdate fgt-del-statistics

diagnose fmupdate fgt-del-um-db

diagnose fmupdate fmg-statistic-info

diagnose fmupdate fortitoken {seriallist | add | del} {add | del | required}

diagnose fmupdate getdevice {fct | fds | fgd | fgc} <serial_num>

diagnose fmupdate list-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

diagnose fmupdate service-restart {fct | fds | fgd | fgc}

diagnose fmupdate show-bandwidth <string> <string>

diagnose fmupdate show-dev-obj <string>

diagnose fmupdate updatenow {fds | fgd | fct}

diagnose fmupdate update-status {fds | fct | fgd | fgc}

diagnose fmupdate view-configure {fds | fct | fgd | fgc}

diagnose fmupdate view-linkd-log {fds | fct | fgd | fgc}

diagnose fmupdate view-serverlist {fds | fct | fgd | fgc}

diagnose fmupdate view-service-info {fds | fgd}

diagnose fmupdate vm-license

Variables

Description

dbcontract [fds | fgd] [serial_num]

View subscriber contracts.

del-device {fct | fds | fgd | fgc} <serial_num> <UID>

Delete a device. UID is required for FortiClient (fct) only.

del-log

Delete all the logs of FDS/FortiGuard update events.

del-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

Delete a downloaded object of linkd service. object_version is optional and can be the object version or time.

del-serverlist {fct | fds | fgd | fgc}

Delete the server list file fdni.dat.

fct-getobject

Get versions of all FortiClient objects.

fds-dump-breg

Dump the FDS beta serial numbers.

fds-dump-fmgi

Dump FMGI (Object description details) file

fds-dump-srul

Dump the FDS select filtering rules.

fds-get-downstream-device [serial_num]

Get information of all downstream FortiGate antivirus-IPS devices. Optionally, enter the device serial number.

fds-getobject

Get versions of all FortiGate objects.

fds-update-info

Display scheduled update information.

fgd-asdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} {all | <serial>} <integer>

Display antispam device statistics for single or all devices.

<integer>: Number of time periods to display (optional, default is 1).

fgd-asserver-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d}

Display antispam server statistics.

fgd-bandwidth {1h | 6h | 12h | 24h | 7d | 30d}

Display the download bandwidth.

fgd-dbver {wf | as | av-query}

Get the version of the database. Optionally, enter the database type.

fgd-del-db {wf | as | av-query | file-query}

Delete FortiGuard database. Optionally, enter the database type.

fgd-get-downstream-device

Get information on all downstream FortiGate web filter and spam devices.

fgd-test-client <ip> <serial> <string> <integer>

Execute FortiGuard test client. Optionally, enter the hostname or IPv4 address of the FGD server, the serial number of the device, and the query number per second or URL.

fgd-url-rating <ip> <serial> <version> <url>

Rate URLs within the FortiManager database using the FortiGate serial number. Optionally, enter the category version and URL.

fgd-wfas-clear-log

Clear the FortiGuard service log file.

fgd-wfas-log {name | ip} <string>

View the FortiGuard service log file. Optionally, enter the device filter type, and device name or IPv4 address.

fgd-wfas-rate {wf | av | as_ip | as_url | as_hash}

Get the web filter / antispam rating speed. Optionally, enter the server type.

fgd-wfdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} <serialnum>

Display web filter device statistics. Optionally, enter a specific device’s serial number.

fgd-wfserver-stat {top10sites | top10devices} {10m | 30m | 1h | 6h | 12h | 24h | 7d}

Display web filter server statistics for the top 10 sites or devices. Optionally, enter the time frame to cover.

fgt-del-statistics

Remove all statistics (antivirus / IPS and web filter / antispam). This command requires a reboot.

fgt-del-um-db

Remove UM and UM-GUI databases.This command requires a reboot.

fmg-statistic-info

Display statistic information for FortiManager and Java Client.

fortitoken {seriallist | add | del} {add | del | required}

FortiToken related operations.

getdevice {fct | fds | fgd | fgc} <serial_num>

Get device information.

list-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

List downloaded objects of linkd service. object_version is optional and can be the object version or time.

service-restart {fct | fds | fgd | fgc}

Restart the linkd service.

show-bandwidth {fct | fgt | fml | faz} {1h | 6h | 12h | 24h | 7d | 30d}

Display the download bandwidth.

show-dev-obj [serial_num]

Display objects version of device.

updatenow {fds | fgd | fct}

Update immediately.

update-status {fds | fct | fgd | fgc}

Display update status.

view-configure {fds | fct | fgd | fgc}

Dump the running configuration.

view-linkd-log {fds | fct | fgd | fgc}

View the linkd log file.

view-serverlist {fds | fct | fgd | fgc}

Dump the server list.

view-service-info {fds | fgd}

Display service info.

vm-license

Dump the FortiGate VM license.

Example

To view statistic information for FortiAnalyzer and Java Client, enter the following:

diagnose fmupdate fmg-statistic-info

The command returns information like this:

SN=FAZ-VM0000000001

Platform=FAZVM64

Version=5.4.1-1082

AdomCreated=12

AdomMax=10000

GlobalPolicyCount=0

PolicyPackageCount=12

WebPortal=1

WebPortalExternal=0

RTM=0

FAZ=0

TotalLoginClients=0*0*0*0*0*0*0

TotalLogins=0*0*0*0*0*0*0

AverageLoginTime=0*0*0*0*0*0*0

fmupdate

Use these commands to diagnose update services.

Syntax

diagnose fmupdate dbcontract [fds | fgd] [serial_num]

diagnose fmupdate del-device {fct | fds | fgd | fgc} <serial_num> <UID>

diagnose fmupdate del-log

diagnose fmupdate del-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

diagnose fmupdate del-serverlist {fct | fds | fgd | fgc}

diagnose fmupdate fct-getobject

diagnose fmupdate fds-dump-fmgi

diagnose fmupdate fds-dump-breg

diagnose fmupdate fds-dump-srul

diagnose fmupdate fds-get-downstream-device [serial_num]

diagnose fmupdate fds-getobject

diagnose fmupdate fds-update-info

diagnose fmupdate fgd-asdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} {all | <serial>} <integer>

diagnose fmupdate fgd-asserver-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d}

diagnose fmupdate fgd-bandwidth {1h | 6h | 12h | 24h | 7d | 30d}

diagnose fmupdate fgd-dbver {wf | as | av-query}

diagnose fmupdate fgd-del-db {wf | as | av-query | file-query}

diagnose fmupdate fgd-get-downstream-device

diagnose fmupdate fgd-test-client <ip> <serial> <string> <integer>

diagnose fmupdate fgd-url-rating <ip> <serial> <version> <url>

diagnose fmupdate fgd-wfas-clear-log

diagnose fmupdate fgd-wfas-log {name | ip} <string>

diagnose fmupdate fgd-wfas-rate {wf | av | as_ip | as_url | as_hash}

diagnose fmupdate fgd-wfdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} {all | <serial>} {periods}

diagnose fmupdate fgd-wfserver-stat {top10sites | top10devices} {10m | 30m | 1h | 6h | 12h | 24h | 7d}

diagnose fmupdate fgt-del-statistics

diagnose fmupdate fgt-del-um-db

diagnose fmupdate fmg-statistic-info

diagnose fmupdate fortitoken {seriallist | add | del} {add | del | required}

diagnose fmupdate getdevice {fct | fds | fgd | fgc} <serial_num>

diagnose fmupdate list-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

diagnose fmupdate service-restart {fct | fds | fgd | fgc}

diagnose fmupdate show-bandwidth <string> <string>

diagnose fmupdate show-dev-obj <string>

diagnose fmupdate updatenow {fds | fgd | fct}

diagnose fmupdate update-status {fds | fct | fgd | fgc}

diagnose fmupdate view-configure {fds | fct | fgd | fgc}

diagnose fmupdate view-linkd-log {fds | fct | fgd | fgc}

diagnose fmupdate view-serverlist {fds | fct | fgd | fgc}

diagnose fmupdate view-service-info {fds | fgd}

diagnose fmupdate vm-license

Variables

Description

dbcontract [fds | fgd] [serial_num]

View subscriber contracts.

del-device {fct | fds | fgd | fgc} <serial_num> <UID>

Delete a device. UID is required for FortiClient (fct) only.

del-log

Delete all the logs of FDS/FortiGuard update events.

del-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

Delete a downloaded object of linkd service. object_version is optional and can be the object version or time.

del-serverlist {fct | fds | fgd | fgc}

Delete the server list file fdni.dat.

fct-getobject

Get versions of all FortiClient objects.

fds-dump-breg

Dump the FDS beta serial numbers.

fds-dump-fmgi

Dump FMGI (Object description details) file

fds-dump-srul

Dump the FDS select filtering rules.

fds-get-downstream-device [serial_num]

Get information of all downstream FortiGate antivirus-IPS devices. Optionally, enter the device serial number.

fds-getobject

Get versions of all FortiGate objects.

fds-update-info

Display scheduled update information.

fgd-asdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} {all | <serial>} <integer>

Display antispam device statistics for single or all devices.

<integer>: Number of time periods to display (optional, default is 1).

fgd-asserver-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d}

Display antispam server statistics.

fgd-bandwidth {1h | 6h | 12h | 24h | 7d | 30d}

Display the download bandwidth.

fgd-dbver {wf | as | av-query}

Get the version of the database. Optionally, enter the database type.

fgd-del-db {wf | as | av-query | file-query}

Delete FortiGuard database. Optionally, enter the database type.

fgd-get-downstream-device

Get information on all downstream FortiGate web filter and spam devices.

fgd-test-client <ip> <serial> <string> <integer>

Execute FortiGuard test client. Optionally, enter the hostname or IPv4 address of the FGD server, the serial number of the device, and the query number per second or URL.

fgd-url-rating <ip> <serial> <version> <url>

Rate URLs within the FortiManager database using the FortiGate serial number. Optionally, enter the category version and URL.

fgd-wfas-clear-log

Clear the FortiGuard service log file.

fgd-wfas-log {name | ip} <string>

View the FortiGuard service log file. Optionally, enter the device filter type, and device name or IPv4 address.

fgd-wfas-rate {wf | av | as_ip | as_url | as_hash}

Get the web filter / antispam rating speed. Optionally, enter the server type.

fgd-wfdevice-stat {10m | 30m | 1h | 6h | 12h | 24h | 7d} <serialnum>

Display web filter device statistics. Optionally, enter a specific device’s serial number.

fgd-wfserver-stat {top10sites | top10devices} {10m | 30m | 1h | 6h | 12h | 24h | 7d}

Display web filter server statistics for the top 10 sites or devices. Optionally, enter the time frame to cover.

fgt-del-statistics

Remove all statistics (antivirus / IPS and web filter / antispam). This command requires a reboot.

fgt-del-um-db

Remove UM and UM-GUI databases.This command requires a reboot.

fmg-statistic-info

Display statistic information for FortiManager and Java Client.

fortitoken {seriallist | add | del} {add | del | required}

FortiToken related operations.

getdevice {fct | fds | fgd | fgc} <serial_num>

Get device information.

list-object {fds | fct | fgd | fgc | fgd-fgfq} [object_type] [object_version]

List downloaded objects of linkd service. object_version is optional and can be the object version or time.

service-restart {fct | fds | fgd | fgc}

Restart the linkd service.

show-bandwidth {fct | fgt | fml | faz} {1h | 6h | 12h | 24h | 7d | 30d}

Display the download bandwidth.

show-dev-obj [serial_num]

Display objects version of device.

updatenow {fds | fgd | fct}

Update immediately.

update-status {fds | fct | fgd | fgc}

Display update status.

view-configure {fds | fct | fgd | fgc}

Dump the running configuration.

view-linkd-log {fds | fct | fgd | fgc}

View the linkd log file.

view-serverlist {fds | fct | fgd | fgc}

Dump the server list.

view-service-info {fds | fgd}

Display service info.

vm-license

Dump the FortiGate VM license.

Example

To view statistic information for FortiAnalyzer and Java Client, enter the following:

diagnose fmupdate fmg-statistic-info

The command returns information like this:

SN=FAZ-VM0000000001

Platform=FAZVM64

Version=5.4.1-1082

AdomCreated=12

AdomMax=10000

GlobalPolicyCount=0

PolicyPackageCount=12

WebPortal=1

WebPortalExternal=0

RTM=0

FAZ=0

TotalLoginClients=0*0*0*0*0*0*0

TotalLogins=0*0*0*0*0*0*0

AverageLoginTime=0*0*0*0*0*0*0