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.
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]
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. |
--force | Optional | Run Redfish config set command without checking the setting values. |
--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. |
--interactive, -i | Optional | 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. |
settingname | Required | Use the set command to change the setting value. Users should input the settingname parameter behind the set command in command line. |
settingvalue | Optional | Specify the changed setting value. Users should input the settingvalue parameter behind the setting name in command line. Note
|
--smm | Optional | Specify the access information of the target SMM. The format is: userid:password@host[:port]. Note
|
| Optional | Refer to Table 2. |
Example of the set command
OneCli.exe config set IMM.DST Off --bmc userid:password@host