Skip to main content

batch command

Use the batch command to queue config operations without any knowledge of the scripting capabilities of the operating system on which OneCLI is running.

User input the config commands in the batch file, and then config application will run them one by one. Following is the sample format in the batch file:

<command1> <command1 options>
<command2> <command2 options>
<command3> <command3 options>
Note
No “--output” or connection options is needed for the command in the batch file.

batch command syntax

OneCli.exe multiconfig batch --file <batchfilename> --configfile <multi config file> [common options]
Table 1. batch command specific parameters
ParameterRequired/OptionalNotes
--fileRequiredThe file name of batch file, which includes the config commands in it. Onecli will read the commands and run them one by one. This parameter is required.
--configfileRequiredSpecify the config file for multi task command, the format refer to Sample/multi_task_config.json.
--hexOptional

Display the hex number for Integer settings when the --hex parameter is used in the show / showdefault / showvalues command.

Obtain the hex number for Integer setting when the --hex parameter is used in the set command.

  • --check-trust, -C

  • --config

  • --nolog

  • --never-check-trust, -N

  • --output, -o

Optional

Refer to Table 2.