Skip to main content

Managing password

Use the following information to manage password.

Managing UEFI administrator password

OneCLI supports users to change or recover the UEFI administrator password.

Note
Only users with the supervisor user authority can run the following commands.
How to manage UEFI password?Commands
Set password for the first time
OneCli uefipassword --newpwd xxxxxx
Change password
OneCli uefipassword --newpwd xxxxxx 
--oldpwd xxxxxx
Recover passwordNA
Remove password
OneCli uefipassword --oldpwd xxxxxx

Changing password of BMC account in security mode

For the users who log in to BMC for the first time or the password has expired, the password of BMC account should be changed. From V2.9.0, OneCLI supports to change the password of BMC account in the security mode without specifying it in the command line. In the security mode, OneCLI encrypts the password of BMC account and saves it in the file specified in OneCLI config file.

  1. Run the encrypt command to encrypt the file with plain text setting values.

    Note
    • Sample command:
      OneCli encrypt --configfile config_plaintext.json --unattended
    • The template file is available in Sample/setting.json.

  2. Remove the plain text file.

  3. Run the bmcpassword command to change the password of BMC account in the plain text file based on the plain text password information.

    Note
    • Sample command:
      OneCli bmcpassword
    • It is not recommended to specify the --newpwd parameter to change the password of BMC account when running the bmcpassword command.

JSON configuration file sample

The following is the JSON configuration file sample for the bmcpassword command:

{
//list settings name and value.
"sensitive_settings":{
"IMM.Password.1":"1qazP232wsx3edc",
"IMM.Password.2":"1qP2wsxwer@!$@%",
"IMM.Password.3":"1qP2wsxwerbled",
"newpwd":"1q2w3e4r5t"
}
}