September 21, 2017

idrac_pwd.pl – Script for iDRAC root password change

Posted in Perl tagged , , , at 12:22 pm by alessiodini

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: