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

debug

Use the following commands to debug the FortiAnalyzer.

debug application

Use these commands to view or set the debug levels for the FortiAnalyzer applications.

Syntax

diagnose debug application alertmail <integer>

diagnose debug application apiproxyd <integer>

diagnose debug application clusterd <integer>

diagnose debug application curl <integer>

diagnose debug application dmapi <integer>

diagnose debug application dns <integer>

diagnose debug application execmd <integer>

diagnose debug application fazcfgd <integer>

diagnose debug application fazmaild <integer>

diagnose debug application fazsvcd <integer>

diagnose debug application fazwatchd <integer>

diagnose debug application fdssvrd <integer>

diagnose debug application fgdsvr <integer>

diagnose debug application fgdupd <integer>

diagnose debug application fgfmsd <integer> [deviceName]

diagnose debug application filefwd <integer>

diagnose debug application fnbam <integer>

diagnose debug application fortilogd <integer>

diagnose debug application fortimanagerws <integer>

diagnose debug application fortimeter <integer>

diagnose debug application gui <integer>

diagnose debug application ha <integer>

diagnose debug application ipsec <integer>

diagnose debug application localmod <integer>

diagnose debug application log-aggregate <integer>

diagnose debug application logd <integer>

diagnose debug application log-fetchd <integer>

diagnose debug application logfiled <integer>

diagnose debug application logfwd <integer>

diagnose debug application lrm <integer>

diagnose debug application ntpd <integer>

diagnose debug application oftpd <integer> [<IP/deviceSerial/deviceName>]

diagnose debug application rptchkd <integer>

diagnose debug application scheduled <integer>

diagnose debug application snmpd <integer>

diagnose debug application sql_dashboard_rpt <integer>

diagnose debug application sql-integration <integer>

diagnose debug application sqllogd <integer>

diagnose debug application sqlplugind <integer>

diagnose debug application sqlrptcached <integer>

diagnose debug application ssh <integer>

diagnose debug application sshd <integer>

diagnose debug application storaged <integer>

diagnose debug application syncsched <integer>

diagnose debug application uploadd <integer>

diagnose debug application vmtools <integer>

Variable

Description

Default

alertmail <integer>

Set the debug level of the alert email daemon.

0

apiproxyd <integer>

Set the debug level of the API proxy daemon.

0

clusterd <integer>

Set the debug level of the clusterd daemon.

0

curl <integer>

This command is not in use.

0

dmapi <integer>

Set the debug level of the dmapi daemon.

0

dns <integer>

Set the debug level of DNS daemon.

0

execmd <integer>

Set the debug level of the execmd daemon.

0

fazcfgd <integer>

Set the debug level of the fazcfgd daemon.

0

fazmaild <integer>

Set the debug level of the fazmaild daemon.

0

fazsvcd <integer>

Set the debug level of the FAZ server daemon.

0

fazwatchd <integer>

Set the debug level of the fazwatchd daemon.

0

fdssvrd <integer>

Set the debug level of the FDS server daemon.

0

fgdsvr <integer>

Set the debug level of the FortiGuard query daemon.

0

fgdupd <integer>

Set the debug level of the FortiGuard update daemon.

0

fgfmsd <integer> [deviceName]

Set the debug level of FGFM daemon. Enter a device name to only show messages related to that device.

0

filefwd <integer>

Set the debug level of the filefwd daemon.

0

fnbam <integer>

Set the debug level of the Fortinet authentication module.

0

fortilogd <integer>

Set the debug level of the fortilogd daemon.

0

fortimanagerws <integer>

Set the debug level of the FortiAnalyzer Web Service.

0

fortimeter <integer>

Set the debug level of the FortiMeter daemon.

0

gui <integer>

Set the debug level of the GUI.

0

ha <integer>

Set the debug level of HA.

0

ipsec <integer>

Set the debug level of the IPsec daemon.

0

localmod <integer>

Set the debug level of the localmod daemon.

0

log-aggregate <integer>

Set the debug level of the log aggregate daemon.

0

logd <integer>

Set the debug level of the log daemon.

0

log-fetchd <integer>

Set the debug level of the log fetcher daemon.

0

logfiled <integer>

Set the debug level of the logfilled daemon.

0

logfwd <integer>

Set the debug level of the logfwd daemon.

0

lrm <integer>

Set the debug level of the Log and Report Manager.

0

ntpd <integer>

Set the debug level of the Network Time Protocol (NTP) daemon.

0

oftpd <integer> [<IP/deviceSerial/deviceName>]

Set the debug level of the oftpd daemon.

0

rptchkd <integer>

Set the debug level of the rptchkd daemon.

0

scheduled <integer>

Set the debug level of the schedule task daemon.

0

snmpd <integer>

Set the debug level of the SNMP daemon from 0-8.

0

sql_dashboard_rpt <integer>

Set the debug level of the SQL dashboard report daemon.

0

sql-integration <integer>

Set the debug level of SQL applications.

0

sqllogd <integer>

Set the debug level of SQL log daemon..

0

sqlplugind <integer>

Set the debug level of the SQL plugin daemon.

0

sqlrptcached <integer>

Set the debug level of the SQL report caching daemon.

0

ssh <integer>

Set the debug level of SSH protocol transactions.

0

sshd <integer>

Set the debug level of the SSH daemon.

0

storaged <integer>

Set the debug level of communication with java clients.

0

syncsched <integer>

Set the debug level of the syncsched daemon.

0

uploadd <integer>

Set the debug level of the upload daemon.

0

vmtools <integer>

Set the debug level for vmtools.

0

Example

This example shows how to set the debug level to 7 for the upload daemon:

diagnose debug application uploadd 7

debug backup-oldformat-script-logs

Use this command to backup script log files that failed to be upgraded to the FTP server.

Syntax

diagnose debug backup-oldformat-script-logs <ip> <string> <username> <password>

Variable

Description

<ip>

Enter the FTP server IP address.

<string>

Enter the path/filename to save the log to the FTP server.

<username>

Enter the user name on the FTP server.

<password>

Enter the password associated with the user name.

debug cli

Use this command to set the debug level of CLI.

Syntax

diagnose debug cli <integer>

Variable

Description

Default

<integer>

Set the debug level of the CLI. Range: 0 to 8

3

debug console

Use this command to enable or disable console debugging.

Syntax

diagnose debug console {enable | disable}

Variable

Description

{enable | disable}

Enable/disable console debugging. The following options are available: 

  • disable: Disable console debug output.
  • enable: Enable console debug output.

debug crashlog

Use this command to clear the debug crash log.

Syntax

diagnose debug crashlog clear

diagnose debug crashlog read

Variable

Description

clear

Clear the crash log.

read

Read the crash log.

debug disable

Use this command to disable debugging.

Syntax

diagnose debug disable

debug enable

Use this command to enable debugging.

Syntax

diagnose debug enable

debug info

Use this command to show active debug level settings.

Syntax

diagnose debug info

Variable

Description

info

Show active debug level settings.

debug klog

Use this command to show all kernel logs.

Syntax

diagnose debug klog

debug reset

Use this command to reset the debug level settings.

Syntax

diagnose debug reset

debug service

Use this command to view or set the debug level of various service daemons.

Syntax

diagnose debug service cdb <integer>

diagnose debug service cfs <integer>

diagnose debug service cmdb <integer>

diagnose debug service dvmcmd <integer>

diagnose debug service dvmdb <integer>

diagnose debug service fazconf <integer>

diagnose debug service main <integer>

daignose debug service sys <integer>

diagnose debug service task <integer>

Variable

Description

<integer>

The debug level

debug sysinfo

Use this command to show system information.

Syntax

diagnose debug sysinfo

debug sysinfo-log

Use this command to generate one system info log file every 2 minutes.

Syntax

diagnose debug sysinfo-log {on | off}

debug sysinfo-log-backup

Use this command to backup all sysinfo log files to an FTP server.

Syntax

diagnose debug sysinfo-log-backup <ip> <string> <username> <password>

Variable

Description

sysinfo-log-backup

Show system information.

<ip>

Enter the FTP server IP address.

<string>

Enter the path/filename to save the log to the FTP server.

<username>

Enter the user name on the FTP server.

<password>

Enter the password associated with the user name.

debug sysinfo-log-list

Use this command to display system information elogs.

Syntax

diagnose debug sysinfo-log-list <integer>

Variable

Description

<integer>

The number of slogs to display, from the most recent. Default = 10

debug timestamp

Use this command to enable or disable debug timestamp.

Syntax

diagnose debug timestamp {enable | disable}

debug vminfo

Use this command to show FortiAnalyzer VM license information.

This command is only available on FortiAnalyzer VM models.

Syntax

diagnose debug vminfo

debug

Use the following commands to debug the FortiAnalyzer.

debug application

Use these commands to view or set the debug levels for the FortiAnalyzer applications.

Syntax

diagnose debug application alertmail <integer>

diagnose debug application apiproxyd <integer>

diagnose debug application clusterd <integer>

diagnose debug application curl <integer>

diagnose debug application dmapi <integer>

diagnose debug application dns <integer>

diagnose debug application execmd <integer>

diagnose debug application fazcfgd <integer>

diagnose debug application fazmaild <integer>

diagnose debug application fazsvcd <integer>

diagnose debug application fazwatchd <integer>

diagnose debug application fdssvrd <integer>

diagnose debug application fgdsvr <integer>

diagnose debug application fgdupd <integer>

diagnose debug application fgfmsd <integer> [deviceName]

diagnose debug application filefwd <integer>

diagnose debug application fnbam <integer>

diagnose debug application fortilogd <integer>

diagnose debug application fortimanagerws <integer>

diagnose debug application fortimeter <integer>

diagnose debug application gui <integer>

diagnose debug application ha <integer>

diagnose debug application ipsec <integer>

diagnose debug application localmod <integer>

diagnose debug application log-aggregate <integer>

diagnose debug application logd <integer>

diagnose debug application log-fetchd <integer>

diagnose debug application logfiled <integer>

diagnose debug application logfwd <integer>

diagnose debug application lrm <integer>

diagnose debug application ntpd <integer>

diagnose debug application oftpd <integer> [<IP/deviceSerial/deviceName>]

diagnose debug application rptchkd <integer>

diagnose debug application scheduled <integer>

diagnose debug application snmpd <integer>

diagnose debug application sql_dashboard_rpt <integer>

diagnose debug application sql-integration <integer>

diagnose debug application sqllogd <integer>

diagnose debug application sqlplugind <integer>

diagnose debug application sqlrptcached <integer>

diagnose debug application ssh <integer>

diagnose debug application sshd <integer>

diagnose debug application storaged <integer>

diagnose debug application syncsched <integer>

diagnose debug application uploadd <integer>

diagnose debug application vmtools <integer>

Variable

Description

Default

alertmail <integer>

Set the debug level of the alert email daemon.

0

apiproxyd <integer>

Set the debug level of the API proxy daemon.

0

clusterd <integer>

Set the debug level of the clusterd daemon.

0

curl <integer>

This command is not in use.

0

dmapi <integer>

Set the debug level of the dmapi daemon.

0

dns <integer>

Set the debug level of DNS daemon.

0

execmd <integer>

Set the debug level of the execmd daemon.

0

fazcfgd <integer>

Set the debug level of the fazcfgd daemon.

0

fazmaild <integer>

Set the debug level of the fazmaild daemon.

0

fazsvcd <integer>

Set the debug level of the FAZ server daemon.

0

fazwatchd <integer>

Set the debug level of the fazwatchd daemon.

0

fdssvrd <integer>

Set the debug level of the FDS server daemon.

0

fgdsvr <integer>

Set the debug level of the FortiGuard query daemon.

0

fgdupd <integer>

Set the debug level of the FortiGuard update daemon.

0

fgfmsd <integer> [deviceName]

Set the debug level of FGFM daemon. Enter a device name to only show messages related to that device.

0

filefwd <integer>

Set the debug level of the filefwd daemon.

0

fnbam <integer>

Set the debug level of the Fortinet authentication module.

0

fortilogd <integer>

Set the debug level of the fortilogd daemon.

0

fortimanagerws <integer>

Set the debug level of the FortiAnalyzer Web Service.

0

fortimeter <integer>

Set the debug level of the FortiMeter daemon.

0

gui <integer>

Set the debug level of the GUI.

0

ha <integer>

Set the debug level of HA.

0

ipsec <integer>

Set the debug level of the IPsec daemon.

0

localmod <integer>

Set the debug level of the localmod daemon.

0

log-aggregate <integer>

Set the debug level of the log aggregate daemon.

0

logd <integer>

Set the debug level of the log daemon.

0

log-fetchd <integer>

Set the debug level of the log fetcher daemon.

0

logfiled <integer>

Set the debug level of the logfilled daemon.

0

logfwd <integer>

Set the debug level of the logfwd daemon.

0

lrm <integer>

Set the debug level of the Log and Report Manager.

0

ntpd <integer>

Set the debug level of the Network Time Protocol (NTP) daemon.

0

oftpd <integer> [<IP/deviceSerial/deviceName>]

Set the debug level of the oftpd daemon.

0

rptchkd <integer>

Set the debug level of the rptchkd daemon.

0

scheduled <integer>

Set the debug level of the schedule task daemon.

0

snmpd <integer>

Set the debug level of the SNMP daemon from 0-8.

0

sql_dashboard_rpt <integer>

Set the debug level of the SQL dashboard report daemon.

0

sql-integration <integer>

Set the debug level of SQL applications.

0

sqllogd <integer>

Set the debug level of SQL log daemon..

0

sqlplugind <integer>

Set the debug level of the SQL plugin daemon.

0

sqlrptcached <integer>

Set the debug level of the SQL report caching daemon.

0

ssh <integer>

Set the debug level of SSH protocol transactions.

0

sshd <integer>

Set the debug level of the SSH daemon.

0

storaged <integer>

Set the debug level of communication with java clients.

0

syncsched <integer>

Set the debug level of the syncsched daemon.

0

uploadd <integer>

Set the debug level of the upload daemon.

0

vmtools <integer>

Set the debug level for vmtools.

0

Example

This example shows how to set the debug level to 7 for the upload daemon:

diagnose debug application uploadd 7

debug backup-oldformat-script-logs

Use this command to backup script log files that failed to be upgraded to the FTP server.

Syntax

diagnose debug backup-oldformat-script-logs <ip> <string> <username> <password>

Variable

Description

<ip>

Enter the FTP server IP address.

<string>

Enter the path/filename to save the log to the FTP server.

<username>

Enter the user name on the FTP server.

<password>

Enter the password associated with the user name.

debug cli

Use this command to set the debug level of CLI.

Syntax

diagnose debug cli <integer>

Variable

Description

Default

<integer>

Set the debug level of the CLI. Range: 0 to 8

3

debug console

Use this command to enable or disable console debugging.

Syntax

diagnose debug console {enable | disable}

Variable

Description

{enable | disable}

Enable/disable console debugging. The following options are available: 

  • disable: Disable console debug output.
  • enable: Enable console debug output.

debug crashlog

Use this command to clear the debug crash log.

Syntax

diagnose debug crashlog clear

diagnose debug crashlog read

Variable

Description

clear

Clear the crash log.

read

Read the crash log.

debug disable

Use this command to disable debugging.

Syntax

diagnose debug disable

debug enable

Use this command to enable debugging.

Syntax

diagnose debug enable

debug info

Use this command to show active debug level settings.

Syntax

diagnose debug info

Variable

Description

info

Show active debug level settings.

debug klog

Use this command to show all kernel logs.

Syntax

diagnose debug klog

debug reset

Use this command to reset the debug level settings.

Syntax

diagnose debug reset

debug service

Use this command to view or set the debug level of various service daemons.

Syntax

diagnose debug service cdb <integer>

diagnose debug service cfs <integer>

diagnose debug service cmdb <integer>

diagnose debug service dvmcmd <integer>

diagnose debug service dvmdb <integer>

diagnose debug service fazconf <integer>

diagnose debug service main <integer>

daignose debug service sys <integer>

diagnose debug service task <integer>

Variable

Description

<integer>

The debug level

debug sysinfo

Use this command to show system information.

Syntax

diagnose debug sysinfo

debug sysinfo-log

Use this command to generate one system info log file every 2 minutes.

Syntax

diagnose debug sysinfo-log {on | off}

debug sysinfo-log-backup

Use this command to backup all sysinfo log files to an FTP server.

Syntax

diagnose debug sysinfo-log-backup <ip> <string> <username> <password>

Variable

Description

sysinfo-log-backup

Show system information.

<ip>

Enter the FTP server IP address.

<string>

Enter the path/filename to save the log to the FTP server.

<username>

Enter the user name on the FTP server.

<password>

Enter the password associated with the user name.

debug sysinfo-log-list

Use this command to display system information elogs.

Syntax

diagnose debug sysinfo-log-list <integer>

Variable

Description

<integer>

The number of slogs to display, from the most recent. Default = 10

debug timestamp

Use this command to enable or disable debug timestamp.

Syntax

diagnose debug timestamp {enable | disable}

debug vminfo

Use this command to show FortiAnalyzer VM license information.

This command is only available on FortiAnalyzer VM models.

Syntax

diagnose debug vminfo