set command

Use the set command to create a setting or to change the value of a setting. The set command also creates an instance, when an instance number does not exist and if the instance value is less than or equal to the maximum number of allowed instances for a setting.

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

set command syntax

OneCli.exe config set <settingname> <settingvalue>[--output<folder>]
[connection option]
Table 1. set command parameters
Parameter Required/Optional Notes
settingname Required The settingname parameter is required for changing a setting value.
settingvalue Optional The settingvalue parameter is the new value for the setting that is being changed.
--output Optional

By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/.

connection option Optional
--imm <user:pwd@ip>
Use for OOB.
Use for in-band, if you know the LAN over USB IP of the target IMM.
Use to specify the target IMM.
--node <x>
Use for inband cases on a multinode system.
Where x is a numeric value that indicates the node number. For example, if "--node 2" the target IMM is in the second node of a multinode system.
Note:
  • If a settingvalue is blank, enter a value in quotes.
  • If a settingname is a valid setting instance which did not exist before, the set command will create a setting instance.

Example of the set command

OneCli.exe config set IMM.DST Off --imm USERID:PASSORD@10.240.252.102
This is the output generated from this example:
Lenovo ToolsCenterSuite CLI tcliXXX-X.X.X
Based on module version X.X.X
Licensed Materials - Property of Lenovo
(C) Copyright Lenovo Corp. 2013-2016 All Rights Reserved
Invoking SHOW command ...
Connected to IMM by IP address 10.240.252.102
IMM.DST=Off
Waiting for command completion status.
Command completed successfully.