Fortinet white logo
Fortinet white logo

CLI Reference

config syslog

config syslog

Description: Configure syslog server settings.

config system syslog

config remote-servers {string}

edit <name>

set ip* {ipv4-address}

set port [1 – 65535]

unset

delete <name>

purge

show

end

config statistic-report

set status [disable | enable]

set interval [1 – 3600]

config cpu-usage

set threshold [0 – 100]

thrset variance [0 – 100]

end

config memory-usage

set threshold [0 – 100]

set variance [0 – 100]

end

config cpu-temperature

set threshold [0 – 120]

set variance [0 – 120]

end

end

show

end

config remote-servers

Description: Configure syslog remote servers settings.

config remote-servers

edit <name>

set ip* {ipv4-address}

set port [1 – 65535]

unset

end

next

show

abort

delete

purge

end

show

Parameter Description Type Size Default
ip The IP address of the remote server. IPv4 address - none
port The remote syslog server port. integer 1 - 65535 514

config statistic-report

Description: Configure syslog statistic report settings.

config statistic-report

set status [enable | disable]

set interval [1 – 3600]

unset

Parameter Description Type Size Default
status Status syslog statistic report. option - disable
Option Description
enable Enable syslog statistic report.
disable Disable Enable syslog statistic report.

interval

The time interval (in seconds) of system status reports.

integer

1 - 3600

30

config cpu-usage

Description: Configures CPU usage rate statistic report settings.

config cpu-usage

set threshold [0 – 100]

set variance [0 – 100]

unset

show

end

Parameter Description Type Size Default
threshold The percentage of CPU usage threshold for system abnormal event report. 0 means disabled. integer 0 - 100 70
variance The variance of the CPU usage report when it exceeds the threshold. 0 means report all the time. integer 0 - 100 5

config memory-usage

Description: Configures memory usage statistic report settings.

config memory-usage

set threshold [0 – 100]

set variance [0 – 100]

unset

show

end

Parameter Size Type Size Default
threshold The percentage of memory usage threshold for system abnormal event report. 0 means disabled. integer 0 -1 00 50
variance The variance of the memory usage report when it exceeds the threshold. 0 means report all the time. integer 0 - 100 5

config cpu-temperature

Description: Configures CPU temperature statistic report settings.

config cpu-temperature

set threshold [0 – 120]

set variance [0 – 120]

unset

show

end

Parameter Description Type Size Default
threshold The CPU temperature threshold for system abnormal event report. 0 means disabled. integer 0 - 120 80
variance The variance of the CPU temperature report when it exceeds the threshold. 0 means report all the time. integer 0 - 120 5

Sample command:

FX201E5919000057 (syslog) # show
config system syslog
    config remote-servers
        edit serv1
            set ip 192.148.200.193
            set port 514
        next
    end
    config statistic-report
        set status enable
        set interval 30
        config cpu-usage
            set threshold 70
            set variance 5
        end
        config memory-usage
            set threshold 50
            set variance 5
        end
        config cpu-temperature
            set threshold 80
            set variance 5
        end
    end
end

config syslog

config syslog

Description: Configure syslog server settings.

config system syslog

config remote-servers {string}

edit <name>

set ip* {ipv4-address}

set port [1 – 65535]

unset

delete <name>

purge

show

end

config statistic-report

set status [disable | enable]

set interval [1 – 3600]

config cpu-usage

set threshold [0 – 100]

thrset variance [0 – 100]

end

config memory-usage

set threshold [0 – 100]

set variance [0 – 100]

end

config cpu-temperature

set threshold [0 – 120]

set variance [0 – 120]

end

end

show

end

config remote-servers

Description: Configure syslog remote servers settings.

config remote-servers

edit <name>

set ip* {ipv4-address}

set port [1 – 65535]

unset

end

next

show

abort

delete

purge

end

show

Parameter Description Type Size Default
ip The IP address of the remote server. IPv4 address - none
port The remote syslog server port. integer 1 - 65535 514

config statistic-report

Description: Configure syslog statistic report settings.

config statistic-report

set status [enable | disable]

set interval [1 – 3600]

unset

Parameter Description Type Size Default
status Status syslog statistic report. option - disable
Option Description
enable Enable syslog statistic report.
disable Disable Enable syslog statistic report.

interval

The time interval (in seconds) of system status reports.

integer

1 - 3600

30

config cpu-usage

Description: Configures CPU usage rate statistic report settings.

config cpu-usage

set threshold [0 – 100]

set variance [0 – 100]

unset

show

end

Parameter Description Type Size Default
threshold The percentage of CPU usage threshold for system abnormal event report. 0 means disabled. integer 0 - 100 70
variance The variance of the CPU usage report when it exceeds the threshold. 0 means report all the time. integer 0 - 100 5

config memory-usage

Description: Configures memory usage statistic report settings.

config memory-usage

set threshold [0 – 100]

set variance [0 – 100]

unset

show

end

Parameter Size Type Size Default
threshold The percentage of memory usage threshold for system abnormal event report. 0 means disabled. integer 0 -1 00 50
variance The variance of the memory usage report when it exceeds the threshold. 0 means report all the time. integer 0 - 100 5

config cpu-temperature

Description: Configures CPU temperature statistic report settings.

config cpu-temperature

set threshold [0 – 120]

set variance [0 – 120]

unset

show

end

Parameter Description Type Size Default
threshold The CPU temperature threshold for system abnormal event report. 0 means disabled. integer 0 - 120 80
variance The variance of the CPU temperature report when it exceeds the threshold. 0 means report all the time. integer 0 - 120 5

Sample command:

FX201E5919000057 (syslog) # show
config system syslog
    config remote-servers
        edit serv1
            set ip 192.148.200.193
            set port 514
        next
    end
    config statistic-report
        set status enable
        set interval 30
        config cpu-usage
            set threshold 70
            set variance 5
        end
        config memory-usage
            set threshold 50
            set variance 5
        end
        config cpu-temperature
            set threshold 80
            set variance 5
        end
    end
end