Jump to content

Is there a way to Controle the IDRAC Console through scripts Using Autoit


Recommended Posts

Is there a way to Controle the IDRAC Console through scripts, i.e. say if i am installing OS on Bare Metal Server and i only have IDRAC as a source and want to select the OPtion 1 or 2 or 3, instead of manually pressing/entering 1,2 or 3 is there any way that we can control that through Scripts(Perl, Python.. etc)

i am working on a project where we have to automate the installation of Hypervisor on a bare metal server and we need to write a script for the same to interact to the IDRAC 7 Console.

For Eg. on Bare Metal Server while Our Propetry Hypervisior i may have to Select Few options like creating Vds which we have to give sizes like 20 GB, 60GB , Also Selecting options like Install the Host, Reboot.. etc , Can i Control selecting the OS through Script/RACADM commands or through Autoit 
 
 Overall Can i control the Virtual Console of Idrac through any scripts? 
Link to comment
Share on other sites

I'm not familiar with Dells iDRAC at all, I've only seen it on a network but didn't have the password to login, so my experience is extremely extremely limited.

Based on these screenshots from the web:  http://cdn.freshdesk.com/data/helpdesk/attachments/production/3000471105/original/8130.vConsole_Scaling1.png?1394505634

You could do something like this:

$hWH = winwaitactive('idrac')
controlsend($hWH,'','','1') ;sends '1' to idrac window

For a more detailed explanation of the code above refer to:  https://www.autoitscript.com/forum/topic/166679-wingethandle-parameter-problem/#comment-1217968 and look at post #9.

 

If you wanted to automate the http aspects of iDRAC you could do something like:

#include <IE.au3>
Local $domain = "192.168.0.50" ;idrac address
Local $oIE = _IECreate("http://" & $domain, 0, 1, 1)
Local $login = _IEGetObjById($oIE, "loginid")
Local $pass = _IEGetObjById($oIE, "passwordid")
_IEFormElementSetValue($login, "username")
_IEFormElementSetValue($pass, "password")
_IEAction($pass, "focus")
ControlSend($loginttl, "", "", "{enter}")
_IELoadWait($oIE)

Autoit is very rich especially in the automation department.  I highly encourage you to use the helpfile in SciTE (press F1), the helpfile will tell you how to do everything.  I'm guessing nobody has replied yet because nobody has messed with iDRAC.

 Overall Can i control the Virtual Console of Idrac through any scripts? 

My answer to that is:  If its windows xp+ (win 98/95 I imagine would work on most functions but not all), and you have the will, then yes there is a way with autoit. 

Edited by TouchOdeath
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...