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 config batch <--file <batchfilename>> <--configfile <arg>> [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.
  • --bmc-cim-port, -p

  • --bmc-password, -w

  • --bmc-username, -u

  • --check-trust, -C

  • --config

  • --node

  • --nolog

  • --never-check-trust, -N

  • --output, -o

Optional

Refer to Table 2.