replicate command

Use the replicate command to replicate all of the settings in the configuration file.

replicate command syntax

OneCli.exe config replicate --file<filename>[--output<folder>]
[connection option]
Table 1. replicate command parameters
Parameter Required/Optional Notes
--file Required
  • The file name for the saved settings and values to be stored.
  • ToolsCenter Suite CLI reads the setting and value from the file and applies it to the system.
--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.

Example of the replicate command

OneCli.exe config replicate --file saved.txt --imm USERID:PASSW0RD@
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

Waiting for command completion status.
IMM reported the following errors.
Failed to set the following settings:
    IMM.RemoteAlertRecipient_CriticalAlertsCategory (IMM Error code : 10)
    IMM.RemoteAlertRecipient_SystemAlertsCategory (IMM Error code : 10)
    IMM.RemoteAlertRecipient_WarningAlertsCategory (IMM Error code : 10)
Command completed  with error.