Change Dell RAC password using cli
If you need to change the RAC password on a Dell server, there are two ways to do that:
1 – reboot the server and follow the prompts
2 – If you have installed openmanage on your Dell server you can change the password on the drac from the CLI
In DRAC 4, the first index slot is root by default. In DRAC 5 and 6, index 1 is Administrator, index 2 is root.
We can display the ID info using racadm command:
DRAC 4:
racadm getconfig -g cfgUserAdmin -i 1
DRAC 5 and 6:
racadm getconfig -g cfgUserAdmin -i 2
# cfgUserAdminIndex=2
cfgUserAdminUserName=root
# cfgUserAdminPassword=******** (Write-Only)
cfgUserAdminEnable=1
cfgUserAdminPrivilege=0x000001ff
cfgUserAdminIpmiLanPrivilege=4
cfgUserAdminIpmiSerialPrivilege=4
cfgUserAdminSolEnable=1
When we’re sure we have the correct ID, we can easily change the password with the racadm command too
DRAC 4:
racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 1 newpassword
DRAC 5 and 6:
racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 newpassword Object value modified successfully
If you dont have openmanage and the target server – but you have it installed on a server that can access the target server, run the following commands on the system that has openmanage installed.
DRAC 4:
racadm r HostName.Or.IP.Address.Of.Target.System -u root -p oldpassword getconfig -g cfgUserAdmin -i 1
DRAC 5 and 6:
racadm r HostName.Or.IP.Address.Of.Target.System -u root -p oldpassword getconfig -g cfgUserAdmin -i 2
# cfgUserAdminIndex=2
cfgUserAdminUserName=root
# cfgUserAdminPassword=******** (Write-Only)
cfgUserAdminEnable=1
cfgUserAdminPrivilege=0x000001ff
cfgUserAdminIpmiLanPrivilege=4
cfgUserAdminIpmiSerialPrivilege=4
cfgUserAdminSolEnable=1
When we’re sure we have the correct ID, we can easily change the password with the racadm command too
DRAC 4:
racadm r HostName.Or.IP.Address.Of.Target.System -u root -p oldpassword config -g cfgUserAdmin -o cfgUserAdminPassword -i 1 newpassword
DRAC 5 and 6:
racadm r HostName.Or.IP.Address.Of.Target.System -u root -p oldpassword config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 newpassword Object value modified successfully