User Manual

Chapter 4 - Operation and Administration Using the CLI NPU Configuration
4Motion 180 System Manual
4.3.5 Batch-processing of CLI Commands
You can use the CLI to batch-process commands to be executed for configuring
and monitoring 4Motion.
1 Ensure that the text file comprising the commands to be batch processed is
present on the TFTP server to be used for downloading the batch file.
2 Run the following command to download the text file and initiate
batch-processing of commands specified in this file:
npu# batch-run tftp://<ip-address>/<file name>
After you execute this command, the file is downloaded from the TFTP server, and
the commands in the file are executed sequentially. After batch-processing of all
commands in this file is complete, the downloaded file is deleted from the 4Motion
system.
The following is a sample text file that contains a list of commands to be
batch-processed:
Display
Format
1.<file name>.gz
2. <file name>.gz
3. <file name>.gz
Command
Modes
Global command mode
IMPORTANT
Before initiating batch-processing of commands, remember that:
If an error occurs while executing any command, the batch-processing operation is aborted; all
subsequent commands are not executed.
If you want to execute a command that requires system reset, specify the save configuration
and system reset commands at the end of the batch file. (For more details about saving
configuration and resetting the system, refer to
“Saving the Current Configuration” on
page 173
and “Resetting the system” on page 133.
To batch-process CLI commands: