Fortinet black logo

CLI Reference

system

system

Use the following commands for system related settings.

system admin-session

Use this command to view login session information.

Syntax

diagnose system admin-session kill <sid>

diagnose system admin-session list

diagnose system admin-session status

Variable

Description

kill <sid>

Kill a current session.

list

List login sessions.

status

Show the current session.

system disk

Use this command to view disk diagnostic information.

This command is only available on hardware-based FortiManager models.

Syntax

diagnose system disk attributes

diagnose system disk disable

diagnose system disk enable

diagnose system disk health

diagnose system disk info

diagnose system disk errors

Variable

Description

attributes

Show vendor specific SMART attributes.

disable

Disable SMART support.

enable

Enable SMART support.

health

Show the SMART health status.

info

Show the SMART information.

errors

Show the SMART error logs.

system export

Use this command to export logs.

Syntax

diagnose system export crashlog <ftp server> <user> <password> [remote path] [filename]

diagnose system export dminstallog <devid> <server> <user> <password> [remote path] [filename]

diagnose system export fmwslog <sftp | ftp> <type> <ftp server> <username> <password> <directory> <filename>

diagnose system export raidlog <ftp server> <username> <password> <directory> <filename>

diagnose system export umlog {ftp | sftp} <type> <server> <user> <password> [remote path] [filename]

diagnose system export upgradelog <ftp server>

Variable

Description

crashlog <ftp server> <user> <password> [remote path] [filename]

Export the crash log.

dminstallog <devid> <server> <user> <password> [remote path] [filename]

Export deployment manager install log.

fmwslog <sftp | ftp> <type> <ftp server> <username> <password> <directory> <filename>

Export web service log files.

raidlog <ftp server> <username> <password> <directory> <filename>

Export the RAID log.

This command is only available on devices that support RAID.

umlog {ftp | sftp} <type> <server> <user> <password> [remote path] [filename]

Export the update manager and firmware manager log files.

The type options are: fdslinkd, fctlinkd, fgdlinkd, usvr, update, service, misc, umad, and fwmlinkd

upgradelog <ftp server>

Export the upgrade error log.

system flash

Use this command to diagnose the flash memory.

Syntax

diagnose system flash list

Variable

Description

list

List flash images.

system fsck

Use this command to check and repair the filesystem.

Syntax

diagnose system fsck harddisk

Variable

Description

harddisk

Check and repair the file system, then reboot the system.

system geoip

Use these commands to obtain geoip information. FortiManager uses a MaxMind GeoLite database of mappings between geographic regions and all public IPv4 addresses that are known to originate from them.

Syntax

diagnose system geoip {dump | info | ip}

Variable

Description

{dump | info | ip}

The following options are available:

  • dump: All geography IP information.
  • info: Brief geography IP information.
  • ip: Find IP's country.

system ntp

Use this command to list NTP server information.

Syntax

diagnose system ntp status

Variable

Description

status

List NTP servers’ information.

system print

Use this command to print server information.

Syntax

diagnose system print certificate

diagnose system print cpuinfo

diagnose system print df

diagnose system print hosts

diagnose system print interface <interface>

diagnose system print loadavg

diagnose system print netstat

diagnose system print partitions

diagnose system print route

diagnose system print rtcache

diagnose system print slabinfo

diagnose system print sockets

diagnose system print uptime

Variable

Description

certificate

Print the IPsec certificate.

cpuinfo

Print the CPU information.

df

Print the file system disk space usage.

hosts

Print the static table lookup for host names.

interface <interface>

Print the information of the interface

loadavg

Print the average load of the system.

netstat

Print the network statistics.

partitions

Print the partition information of the system.

route

Print the main route list.

rtcache

Print the contents of the routing cache.

slabinfo

Print the slab allocator statistics.

sockets

Print the currently used socket ports.

uptime

Print how long the system has been running.

system process

Use this command to view and kill processes.

Syntax

diagnose system process kill <-signal> <pid>

diagnose system process killall <module>

diagnose system process list

Variable

Description

kill <-signal> <pid>

Kill a process.

killall <module>

Kill all the related processes.

list

List all processes.

system raid

Use this command to view RAID information.

This command is only available on FortiManager models that support RAID.

Syntax

diagnose system raid hwinfo

diagnose system raid status

Variable

Description

hwinfo

Show RAID controller hardware information.

status

Show RAID status. This command displays the following information: RAID level, RAID status, RAID size, and hard disk information.

system route

Use this command to diagnose routes.

Syntax

diagnose system route list

Variable

Description

list

List routes.

system route6

Use this command to diagnose IPv6 routes.

Syntax

diagnose system route6 list

Variable

Description

list

List routes.

system server

Use this command to start the FortiManager server.

Syntax

diagnose system server start

Variable

Description

start

Start system.

system

Use the following commands for system related settings.

system admin-session

Use this command to view login session information.

Syntax

diagnose system admin-session kill <sid>

diagnose system admin-session list

diagnose system admin-session status

Variable

Description

kill <sid>

Kill a current session.

list

List login sessions.

status

Show the current session.

system disk

Use this command to view disk diagnostic information.

This command is only available on hardware-based FortiManager models.

Syntax

diagnose system disk attributes

diagnose system disk disable

diagnose system disk enable

diagnose system disk health

diagnose system disk info

diagnose system disk errors

Variable

Description

attributes

Show vendor specific SMART attributes.

disable

Disable SMART support.

enable

Enable SMART support.

health

Show the SMART health status.

info

Show the SMART information.

errors

Show the SMART error logs.

system export

Use this command to export logs.

Syntax

diagnose system export crashlog <ftp server> <user> <password> [remote path] [filename]

diagnose system export dminstallog <devid> <server> <user> <password> [remote path] [filename]

diagnose system export fmwslog <sftp | ftp> <type> <ftp server> <username> <password> <directory> <filename>

diagnose system export raidlog <ftp server> <username> <password> <directory> <filename>

diagnose system export umlog {ftp | sftp} <type> <server> <user> <password> [remote path] [filename]

diagnose system export upgradelog <ftp server>

Variable

Description

crashlog <ftp server> <user> <password> [remote path] [filename]

Export the crash log.

dminstallog <devid> <server> <user> <password> [remote path] [filename]

Export deployment manager install log.

fmwslog <sftp | ftp> <type> <ftp server> <username> <password> <directory> <filename>

Export web service log files.

raidlog <ftp server> <username> <password> <directory> <filename>

Export the RAID log.

This command is only available on devices that support RAID.

umlog {ftp | sftp} <type> <server> <user> <password> [remote path] [filename]

Export the update manager and firmware manager log files.

The type options are: fdslinkd, fctlinkd, fgdlinkd, usvr, update, service, misc, umad, and fwmlinkd

upgradelog <ftp server>

Export the upgrade error log.

system flash

Use this command to diagnose the flash memory.

Syntax

diagnose system flash list

Variable

Description

list

List flash images.

system fsck

Use this command to check and repair the filesystem.

Syntax

diagnose system fsck harddisk

Variable

Description

harddisk

Check and repair the file system, then reboot the system.

system geoip

Use these commands to obtain geoip information. FortiManager uses a MaxMind GeoLite database of mappings between geographic regions and all public IPv4 addresses that are known to originate from them.

Syntax

diagnose system geoip {dump | info | ip}

Variable

Description

{dump | info | ip}

The following options are available:

  • dump: All geography IP information.
  • info: Brief geography IP information.
  • ip: Find IP's country.

system ntp

Use this command to list NTP server information.

Syntax

diagnose system ntp status

Variable

Description

status

List NTP servers’ information.

system print

Use this command to print server information.

Syntax

diagnose system print certificate

diagnose system print cpuinfo

diagnose system print df

diagnose system print hosts

diagnose system print interface <interface>

diagnose system print loadavg

diagnose system print netstat

diagnose system print partitions

diagnose system print route

diagnose system print rtcache

diagnose system print slabinfo

diagnose system print sockets

diagnose system print uptime

Variable

Description

certificate

Print the IPsec certificate.

cpuinfo

Print the CPU information.

df

Print the file system disk space usage.

hosts

Print the static table lookup for host names.

interface <interface>

Print the information of the interface

loadavg

Print the average load of the system.

netstat

Print the network statistics.

partitions

Print the partition information of the system.

route

Print the main route list.

rtcache

Print the contents of the routing cache.

slabinfo

Print the slab allocator statistics.

sockets

Print the currently used socket ports.

uptime

Print how long the system has been running.

system process

Use this command to view and kill processes.

Syntax

diagnose system process kill <-signal> <pid>

diagnose system process killall <module>

diagnose system process list

Variable

Description

kill <-signal> <pid>

Kill a process.

killall <module>

Kill all the related processes.

list

List all processes.

system raid

Use this command to view RAID information.

This command is only available on FortiManager models that support RAID.

Syntax

diagnose system raid hwinfo

diagnose system raid status

Variable

Description

hwinfo

Show RAID controller hardware information.

status

Show RAID status. This command displays the following information: RAID level, RAID status, RAID size, and hard disk information.

system route

Use this command to diagnose routes.

Syntax

diagnose system route list

Variable

Description

list

List routes.

system route6

Use this command to diagnose IPv6 routes.

Syntax

diagnose system route6 list

Variable

Description

list

List routes.

system server

Use this command to start the FortiManager server.

Syntax

diagnose system server start

Variable

Description

start

Start system.