Use the restore command to restore all of the settings that are defined in the update configuration file on the server.
restore command syntax
OneCli.exe config restore --file <filename>[--output<folder>][connection option]
Parameter | Required/Optional | Notes |
---|---|---|
--file | Required |
|
--output | Optional | By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/. |
connection option | Optional |
|
Example of the restore command
OneCli.exe config restore --file saved.txt --imm USERID: PASSW0RD@10.240.252.102
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.PowerRestorePolicy=Restore
IMM.ThermalModePolicy=Normal
IMM.PowerOnAtSpecifiedTime=0:0:0:0:0
IMM.MinPasswordLen=0
IMM.PwChangeInterval=0
IMM.PwMaxFailure=5
IMM.PwDiffChar=0
IMM.DefPasswordExp=Disabled
IMM.FirstAccessPwChange=Disabled
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.