Managing password
Use the following information to manage password.
Managing UEFI administrator password
OneCLI supports users to change or recover the UEFI administrator password.
How to manage UEFI password? | Commands |
---|---|
Set password for the first time |
|
Change password |
|
Recover password | NA |
Remove password |
|
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.
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.
Remove the plain text file.
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"
}
}