Fortinet white logo
Fortinet white logo

CLI Reference

system alias

system alias

Use this command to save collections of execute commands that you can run on demand.

config system alias
    edit {name}
    # Configure alias command.
        set name {string}   Alias command name. size[35]
        set command {string}   Command list to execute. size[255]
    next
end

Additional information

The following section is for those options that require additional explanation.

command

Use quotes

The command must be enclosed in quotes or the spaces in the command will cause a error.

Example:

config system alias

edit test

set command 'get system status'

end

To use the alias:

Example:

alias test

Multiple commands

Multiple commands can be put into the same alias command. Use the open quote at the beginning of the first command. Separate the commands using the Enter key. Close the quote only at the end of the last command.

Example:

config system alias

edit test

set command 'get system status

get alert settings

show alert settings'

end

system alias

system alias

Use this command to save collections of execute commands that you can run on demand.

config system alias
    edit {name}
    # Configure alias command.
        set name {string}   Alias command name. size[35]
        set command {string}   Command list to execute. size[255]
    next
end

Additional information

The following section is for those options that require additional explanation.

command

Use quotes

The command must be enclosed in quotes or the spaces in the command will cause a error.

Example:

config system alias

edit test

set command 'get system status'

end

To use the alias:

Example:

alias test

Multiple commands

Multiple commands can be put into the same alias command. Use the open quote at the beginning of the first command. Separate the commands using the Enter key. Close the quote only at the end of the last command.

Example:

config system alias

edit test

set command 'get system status

get alert settings

show alert settings'

end