Changing password of BMC account in security mode
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.
Steps
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"
}
}