Skip to main content

set command

Use the set command to change the value of a setting or to list a setting. The set command also creates an instance if the instance number does not exist, and if the instance value is less than or equal to the maximum allowed instances for the setting. For more information about instances, see setting format.

Note
  • If the settingvalue includes some blank, user needs to put the value in quotes.

  • If the settingname is a valid setting instance which is not exist before, the set command will create this setting instance.

  • If the settingvalue is not be input, OneCLI will use security mode to change the setting value.

  • If users modify the account connecting to BMC when running the set command, the following error message might be displayed:
    Failed to get update status due to BMC internal error.

set command syntax

OneCli.exe multiconfig set <settingname> [settingvalue] <--configfile <arg>> [common options]
Table 1. set command specific parameters
ParameterRequired/OptionalNotes
settingnameRequiredThe setting which user wants to change the value of it. User must to input it. And it should right after the set command in command line.
settingvalueOptionalThe setting value which user wants to change to. If user input it, it should right after the setting name in command line.
--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.