I would like to batch reset all the iLO passwords on our HP Blade chassis without having to login to each one via the HTTPS website. How can I reset the root and administrator iLO passwords via the SSH command line?
I would like to batch reset all the iLO passwords on our HP Blade chassis without having to login to each one via the HTTPS website. How can I reset the root and administrator iLO passwords via the SSH command line?
You could set everything in one place from the HP Onboard Administrator.
Through the GUI, the HPOA has password-less access to the individual server ILO interfaces.
Through the CLI, you can
HPONCFG ALL HTTP://some.host.ip/iloconfig.xml
to take care of all devices using one iloconfig.xml file.I simplified the script and changed all our iLO passwords with:
Works like a charm! Many thanx for the inspiring example! (Typo with IPs is corrected!)
I found the fastest way was to use a combination of SSHPASS and the iLO command line interface. The bash script below creates two aliases for using SSHPASS called
oldlogin
andnewlogin
and then uses those to login to the iLO, reset the root account, then login with the new password and reset the administrator account.I saw a reference to
/map1/accounts/
instead of/map1/accounts1/
but that did not work on my systems. You can login via SSH and useshow map1
to see a list of all available targets. The output should look something like this: