FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
ppatel
Staff
Staff
Article Id 193031
Description
This article explains how to combine multiple commands into a CLI alias.
Solution
Multiple commands can be supported under a single command alias defined in the CLI:
# config system alias
(alias) # edit alias_test    <----- Alias name
# set command                <----- Input string value. Make sure to use the complete command(s) in quotes.

For example:
(alias) # edit alias_test
 (alias_test) # set command 'get system status
> get system performance status’
(alias) # end
To use more commands, after typing the first command, just press enter.  Once done, close the quotes and type end.

To run the alias set of commands, type alias ‘# alias alias_name’.  
In this example it would be ,
# alias alias_test
 If VDOMs are being used, run this command under the ‘config vdom’ configuration.

Further examples are given in the "System" section of the "FortiOS Handbook - What’s New" document for v5.6.
Contributors