restore command

Use the restore command to restore the settings that are already saved in the file for the current server.

restore command syntax

OneCli.exe config restore --file <filename> [<options>]
Table 1. restore command specific parameters
Parameter Required/Optional Notes
--file Optional
  • Specify the configuration file name for restoring general settings, which should be used with the save command.

  • Specify the key file name for restoring Self-encrypting Drive Authentication Key (SED AK), which contains SED AK enciphered message.

--passphrase Optional The passphrase to recover SED AK.
  • When recovering SED AK with the passphrase, use this parameter to generate the password, which the same as that in the generate command.

  • When recovering SED AK with the backup file, use this parameter to generate the password, which is the same as that in the backup command.

--incbackupctl Optional Include VPD settings when restoring from the external file specified by --file.
--kcs Optional Force to use IPMI over KCS local interface.
  • --bmc, -b

  • --bmc-cim-port, -p

  • --bmc-username, -u

  • --bmc-password, -w

  • --check-trust, -C

  • --config

  • --node

  • --nolog

  • --never-check-trust, -N

  • --output, -o

  • --redfish

Optional

Refer to Table 2.

Note:
  • 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.

Example of the restore command

OneCli.exe config restore --file saved.txt --bmc userid:password@host