Command Files
If you need to deploy a number of commands to a device it can be easier to specify them in a text file rather than trying to input them all on the command line. Especially if you are likely to have to repeat the sequence at a later date.
Netmate Connect allows you to specify a text file using the -cf <filename>
option. When specified, Connect will login to the target device and execute each line of the command file in sequence.
There are a number of tags available to assist with command deployment:
- {{nw}}"No Wait" tells Connect not to wait for a command prompt after sending the command and to continue straight to the next command. This is useful if the device prompts for verification or parameters before executing and returning to the prompt.
- {{enter}}Sends a carriage return.
- {{ctrlv+m}}When entering multi-line commands on a Palo Alto cli, Ctrl-v followed by Ctrl-m is required between commands. This tag sends the required characters.
The new tags are expected to be available in future releases.