The customer I’m working for in these days, asked me to reset a hunderd of iDRAC consoles root password because they were still using the default root/calvin credentials.
Having fun for this request, I wrote a perl script using Net::OpenSSH module. This script checks for root account index, and it changes the password using this index. If something does not work as expected, the script will let u know on which host it faced the issue.
It’s very easy to use, for example:
$ perl idrac_pwd.pl 22.214.171.124
Connection to host 126.96.36.199
Reset password succesfully executed on 188.8.131.52 – index 2
You can download the script here.
Have fun 😀