restore command
Use the restore command to restore the settings that are already saved in the file for the current server.
To restore the saved settings, use the save command to save the configuration in the file containing <setting>=<value>.
For the ThinkEdge servers, to restore the SED AK whose SED key is not installed, use the passphrase or backup file.
To restore the configuration settings by using the backup file, the file should be an encrypted file saved with the backup command, the --redfish and --passphrase parameters.
Users can use the saved file got in the save command. If users create the file and specify with the --file option, follow the file format. For more information, refer to save command.
There may be a long list of settings in the outputs of restore command. Therefore, OneCLI puts the results including all saved settings in a file and shows the summary in the command shell.
restore command syntax
OneCli.exe config restore --file <filename> [<options>]
Parameter | Required/Optional | Notes |
---|---|---|
--file | Optional |
|
--passphrase | Optional | The passphrase to recover SED AK or configuration settings.
|
--incbackupctl | Optional | Include VPD settings when restoring from the external file specified by --file. |
--kcs | Optional | Force to use IPMI over KCS local interface. |
| Optional | Refer to Table 2. |
Example of the restore command
To restore with saved settings:
onecli.exe config restore --file saved.txt --bmc USERID:PASSW0RD@XX.XX.XX.XX
To restore SED AK only with passphrase that used to generate the SED AK:
OneCli.exe config restore Security.SED_AK --passphrase xxxxxx
--bmc USERID:PASSW0RD@XX.XX.XX.XX --redfish
To restore SED AK with passphrase and backup file:
OneCli.exe config restore Security.SED_AK --passphrase xxxxxx
--file backup.txt --bmc USERID:PASSW0RD@XX.XX.XX.XX --redfish
To restore configuration settings with backup file:
OneCli.exe config restore --passphrase xxxxxx --file backup.txt
--bmc USERID:PASSW0RD@XX.XX.XX.XX --redfish