batch command
Use the batch command to queue config operations without any knowledge of the scripting capabilities of the operating system that XClarity Essentials OneCLI is running on. When entering the config commands in a batch file, the XClarity Essentials OneCLI config application individually reads and runs each config command.
batch command syntax
OneCli.exe config batch --file <batchfilename> [<options>]
The format in the batch file should be:
<command1> <command1 options>
<command2> <command2 options>
<command3> <command3 options>
Parameter | Required/Optional | Notes |
---|---|---|
--compatibility, -c | Optional | Specify the compatibility mode for UEFI setting on the ThinkSystem V4 systems. In the ThinkSystem V4 systems, some legacy UEFI settings can be converted to the flat attributes. |
--file | Required |
|
--hex | Optional | 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. |
| Optional | Refer to Table 2. |
- In batch mode, the show and set commands ignore the suppressed information. Users can see the suppressed settings current value using show, and set the suppressed settings without an error.
- All of the commands in a batch file must target an individual system and not multiple systems. A batch file that contains commands that target multiple systems is not supported.
- The following example batch file contains the set and show commands. All of the set commands are sent to BMC at same time, and then all of the show commands are sent.
This is an example of batchfile.txt:
set IMM.Community_AccessType.1 Get
set IMM.Duplex1 Auto
set IMM.MTU1 1500
set IMM.SNMPv1Agent Enabled
set IMM.SNMPv3Agent Disabled
show IMM.SNMPv3Agent
set IMM.SNMPv3Agent Enabled
show IMM.SNMPv3Agent
Example of the batch command
OneCli.exe config batch --file batchfile.txt --bmc userid:password@host