Use the save command to save all of the settings to a file.
save command syntax
OneCli.exe config save --file<savetofilename>[--output<folder>][connection option]
Parameter | Required/Optional | Notes |
---|---|---|
--file | Required | The file name where settings and values are stored. ToolsCenter Suite CLI reads the setting from the system and then stores the setting and value in the file. |
--output | Optional | By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/. |
--group | Optional | The name of a group section. The group_name is the name used in the XML to group setting per subsystem, which should be obtained by running the command showgroups. |
--excbackupctl | Optional | Used to exclude the VPD settings. The default is to include all VPD. |
connection option | Optional |
|
Example of the save command
OneCli.exe config save --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
Warning: Setting IMM.NTPHost1 has an invalid value and will not be saved.
Warning: Setting IMM.NTPHost2 has an invalid value and will not be saved.
Warning: Setting IMM.NTPHost3 has an invalid value and will not be saved.
Warning: Setting IMM.NTPHost4 has an invalid value and will not be saved.
Settings saved to saved.txt
<settingname1>=<settingvalue1> <settingname2>=<settingvalue2> <settingname3>=<settingvalue3>
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