idrac_pwd.pl – Script for iDRAC root password change

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 1.2.3.4

Connection to host 1.2.3.4
Reset password succesfully executed on 1.2.3.4 – index 2

That’s all!
You can download the script here.

Have fun 😀

Advertisements