Skip to main content

save command

Use the save command to save the settings of all groups to a specified file, for example, the UEFI group, the IMM group. However, the read-only and write-only settings cannot be saved by using the save command. The file containing the saved settings can be used in the restore command and the replicate command.

save command syntax

OneCli.exe config save --file <savetofilename> [--group <groupname>] [--excbackupctl] [<options>]
Table 1. save command specific parameters
ParameterRequired/OptionalNotes
--fileRequiredThe file name where settings and values are stored. OneCLI reads the setting from the system and then stores the setting and value in the file.
--groupOptionalThe 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.

--excbackupctlOptional

Used to exclude the VPD settings.

The default is to include all VPD.

--kcsOptionalForce to use IPMI over KCS local interface.
  • --bmc, -b

  • --bmc-rest-port, -p

  • --bmc-password, -w

  • --bmc-username, -u

  • --check-trust, -C

  • --config

  • --node

  • --nolog

  • --never-check-trust, -N

  • --output, -o

Optional

Refer to Table 2.

Example of the save command

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

The format of the content in the saved file is:

<settingname1>=<settingvalue1>
<settingname2>=<settingvalue2>
<settingname3>=<settingvalue3>

This is an example of the saved.txt file output:

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