Skip to main content

multicompare command

Use the multicompare command to remotely compare the firmware information of multiple BMC, and specify the BMC information and the configuration parameters by using a JSON configuration file. The output results are saved in the OneCLI logs in xml format, for example, multi_task\20190429_154002\Success-10.240.194.248\Onecli-update-compare.xml.

multicompare command syntax

OneCli.exe update multicompare <--configfile <arg>> [--dir <arg>] [--quiet|-q] [--check-trust|-C] 
[--never-check-trust|-N] [--pattern <arg>] [--output|-o <arg>] [--nolog] [--config <arg>] [--help|-h]

Options

--pattern
Filter the items in the compare result tables of multi servers through the regular expression. The outputs are displayed on the screen and recorded in the JSON file in the log directory.
--configfile
Specify the JSON configuration file. The template file is available in Sample/multi_task_config.json in OneCLI binary.
Table 1. multicompare command specific parameters
ParameterRequired/OptionalNotes
--configfileRequiredSpecify the JSON configuration file for multi-task commands. The template file is available in Sample/multi_task_config.json in OneCLI binary.
--configOptionalSpecify the file path for the OneCLI config commands.
--dirOptional

Specify the directory of the firmware package.

If no directory is specified, use the current directory.

--patternOptionalSpecify the pattern for filtering the results.
--quiet, -qOptional

This parameter answers yes for all questions, and decreases the outputs displayed on screen.

  • --check-trust, -C

  • --help,-h

  • --never-check-trust, -N

  • --nolog

  • --output, -o

Optional

Refer to Table 2.

Example of the multicompare command

OneCli.exe update multicompare --configfile xxxconfig.json --quiet