Skip to main content

set command

Use the set command to change the setting value. If the instance does not exist or the instance value is less than or equal to the allowed maximum value, users can create an instance by using the set command.

Note
  • For more information about instances, see Instance and non-instance settings.

  • 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 config set <settingname> [settingvalue] [common options]
Table 1. set command specific parameters
ParameterRequired/OptionalNotes
--forceOptional

Run Redfish config set command without checking the setting values.

--interactive, -iOptional

Configure the OneCLI interactive mode. In this mode, OneCLI guides user to input the parameter step by step. Users can also click Tab to generate the configuration setting name.

settingnameRequired

Use the set command to change the setting value.

Users should input the settingname parameter behind the set command in command line.

settingvalueOptional

Specify the changed setting value.

Users should input the settingvalue parameter behind the setting name in command line.

Note
  • If the settingvalue is blank, enter a value in quotes.
  • If the settingvalue is not specified, OneCLI will change the setting value in the security mode. For more information, refer to Changing setting values in security mode.

--smmOptional

Specify the access information of the target SMM. The format is: userid:password@host[:port].

Note
  • Both the IPv4 address and the IPv6 address are supported. The IPv6 address shall be enclosed in square brackets. For example, [FE80:3BA7:94FF:FE07:CBD0].

  • If the IPv6 is LLA, the format is [FE80:3BA7:94FF:FE07:CBD0%xxx]. Replace xxx with the interface name.

  • --bmc, -b

  • --bmc-cim-port, -p

  • --bmc-password, -w

  • --bmc-username, -u

  • --check-trust, -C

  • --config

  • --node

  • --nolog

  • --never-check-trust, -N

  • --output, -o

  • --redfish

Optional

Refer to Table 2.

Example of the set command

OneCli.exe config set IMM.DST Off --bmc userid:password@host