Fortinet black logo

CLI Reference

system auto-script

system auto-script

Use the command to create CLI command scripts that can be saved and run.

config system auto-script
    edit {name}
    # Configure auto script.
        set name {string}   Auto script name. size[35]
        set interval {integer}   Repeat interval in seconds. range[0-31557600]
        set repeat {integer}   Number of times to repeat this script (0 = infinite). range[0-65535]
        set start {manual | auto}   Script starting mode.
                manual  Starting manually.
                auto    Starting automatically.
        set script {string}   List of FortiOS CLI commands to repeat. size[255]
        set output-size {integer}   Number of megabytes to limit script output to (10 - 1024, default = 10). range[10-1024]
    next
end

system auto-script

Use the command to create CLI command scripts that can be saved and run.

config system auto-script
    edit {name}
    # Configure auto script.
        set name {string}   Auto script name. size[35]
        set interval {integer}   Repeat interval in seconds. range[0-31557600]
        set repeat {integer}   Number of times to repeat this script (0 = infinite). range[0-65535]
        set start {manual | auto}   Script starting mode.
                manual  Starting manually.
                auto    Starting automatically.
        set script {string}   List of FortiOS CLI commands to repeat. size[255]
        set output-size {integer}   Number of megabytes to limit script output to (10 - 1024, default = 10). range[10-1024]
    next
end