Fortinet white logo
Fortinet white logo

CLI Reference

config system auto-script

config system auto-script

Configure auto script.

config system auto-script
    Description: Configure auto script.
    edit <name>
        set interval {integer}
        set repeat {integer}
        set start [manual|auto]
        set script {var-string}
        set password {password}
        set output-size {integer}
        set timeout {integer}
    next
end

config system auto-script

Parameter

Description

Type

Size

Default

name

Auto script name.

string

Maximum length: 35

interval

Repeat interval in seconds.

integer

Minimum value: 0 Maximum value: 31557600

0

repeat

Number of times to repeat this script (0 = infinite).

integer

Minimum value: 0 Maximum value: 65535

1

start

Script starting mode.

option

-

manual

Option

Description

manual

Starting manually.

auto

Starting automatically.

script

List of FortiProxy CLI commands to repeat.

var-string

Maximum length: 1023

password

Script password to replace %%PASSWD%% tag in the script. Use cases include replacing a password tag for sftp/ftp server password.

password

Not Specified

output-size

Number of megabytes to limit script output to.

integer

Minimum value: 10 Maximum value: 1024

10

timeout

Maximum running time for this script in seconds (0 = no timeout).

integer

Minimum value: 0 Maximum value: 300

0

config system auto-script

config system auto-script

Configure auto script.

config system auto-script
    Description: Configure auto script.
    edit <name>
        set interval {integer}
        set repeat {integer}
        set start [manual|auto]
        set script {var-string}
        set password {password}
        set output-size {integer}
        set timeout {integer}
    next
end

config system auto-script

Parameter

Description

Type

Size

Default

name

Auto script name.

string

Maximum length: 35

interval

Repeat interval in seconds.

integer

Minimum value: 0 Maximum value: 31557600

0

repeat

Number of times to repeat this script (0 = infinite).

integer

Minimum value: 0 Maximum value: 65535

1

start

Script starting mode.

option

-

manual

Option

Description

manual

Starting manually.

auto

Starting automatically.

script

List of FortiProxy CLI commands to repeat.

var-string

Maximum length: 1023

password

Script password to replace %%PASSWD%% tag in the script. Use cases include replacing a password tag for sftp/ftp server password.

password

Not Specified

output-size

Number of megabytes to limit script output to.

integer

Minimum value: 10 Maximum value: 1024

10

timeout

Maximum running time for this script in seconds (0 = no timeout).

integer

Minimum value: 0 Maximum value: 300

0