All commands executed through templates are always in the config t mode. Therefore, you do not have to specify the enable or config t commands explicitly in the template.
Enable Mode Commands
Specify the #MODE_ENABLE command if you want to execute any commands outside of the config t command.
Use this syntax to add enable mode commands to your CLI templates:
Specify #INTERACTIVE if you want to execute a command where user input is required.
An interactive command contains the input that must be entered following the execution of a command. To enter an interactive
command in the CLI Content area, use the following syntax:
CLI Command<IQ>interactive question 1 <R> command response 1 <IQ>interactive question 2<R>command response 2
Where <IQ> and <R> tags are case-sensitive and must be entered in uppercase.
crypto key generate rsa general-keys <IQ>yes/no<R> no
In response to the interactive command question after providing a response, if the newline character is not required, you
must enter the <SF> tag. Include one space before the <SF> tag. When you enter the <SF> tag, the </SF> tag pops up automatically. You can delete the </SF> tag because it is not needed.
config advanced timers ap-fast-heartbeat local enable 20 <SF><IQ>Apply(y/n)?<R>y
Combining Interactive Enable Mode Commands
Use this syntax to combine interactive Enable Mode commands:
commands<IQ>interactive question<R> response
mkdir <IQ>Create directory<R>xyz
If you want multiple lines in the CLI template to wrap, use the MLTCMD tags. Otherwise, the command is sent line by line to the device. To enter multiline commands in the CLI Content area, use
the following syntax:
<MLTCMD>first line of multiline command
second line of multiline command
last line of multiline command</MLTCMD>
Where <MLTCMD> and </MLTCMD> are case-sensitive and must be in uppercase.
The multiline commands must be inserted between the <MLTCMD> and </MLTCMD> tags.
The tags cannot start with a space.
The <MLTCMD> and </MLTCMD> tags cannot be used in a single line.