Fortinet white logo
Fortinet white logo

CLI Reference

debug comlog

debug comlog

Use this command for the comlog related operations.

To use this command, your administrator account’s access control profile requires only r permission in any profile area. For details, see Permissions.

Syntax

diagnose debug comlog {info|read|clear|disable|enable}

Variable Description Default
{info|read|clear|disable|enable}

Enable: Enable to record COMlog.

Disable: Disable the recording of the COMlog.

info: View the COMlog status including status (enable or disable), log space, and log size.

read: Record the console log to /var/log/gui_upload/console.log. You can download the console.log from System > Maintaince > Backup&Restore > GUI File Download.

dump: print the console log to command line interface(CLI).

clear: Dump the console log.

Enable

It also can be enabled or disabled by this command:

config system global

set console-log {disable|enable}

end

debug comlog

debug comlog

Use this command for the comlog related operations.

To use this command, your administrator account’s access control profile requires only r permission in any profile area. For details, see Permissions.

Syntax

diagnose debug comlog {info|read|clear|disable|enable}

Variable Description Default
{info|read|clear|disable|enable}

Enable: Enable to record COMlog.

Disable: Disable the recording of the COMlog.

info: View the COMlog status including status (enable or disable), log space, and log size.

read: Record the console log to /var/log/gui_upload/console.log. You can download the console.log from System > Maintaince > Backup&Restore > GUI File Download.

dump: print the console log to command line interface(CLI).

clear: Dump the console log.

Enable

It also can be enabled or disabled by this command:

config system global

set console-log {disable|enable}

end