Skip to main content

batch command

Use this command to execute one or more CLI commands that are contained in a file.

  • Comment lines in the batch file begin with a #.
  • When running a batch file, commands that fail are returned along with a failure return code.
  • Batch file commands that contain unrecognized command options might generate warnings.

The following table shows the arguments for the options.

Table 1. batch command.

The following table is a multi-row three column table consisting of the options, option descriptions, and associated values for the options.

OptionDescriptionValues
-fBatch file nameValid file name
-ipIP address of TFTP/SFTP serverValid IP address
-pnPort number of TFTP/SFTP serverValid port number (default 69/22)
-uUsername for SFTP serverValid user name
-pwPassword for SFTP serverValid password
Syntax:
batch [options]
option:
-f filename
-ip ip_address
-pn port_number
-u username
-pw password
Example:
system> batch -f sslcfg.cli -ip 192.168.70.200
1 : sslcfg client dnld ip 192.168.70.20
Command total/errors/warnings: 8 / 1 / 0
system>