Remote Lights-Out Mgmt (iLO 2, iLO, RILOE II) Forum
cancel

HPONCFG /i use and examples ?

Highlighted
narglix
New Member.

HPONCFG /i use and examples ?

Hi everyone,

 

I'm currently writing a VBS script to get all the embedded health of an ILO.

 

 What I want is to avoid to create an XML file to put the configuration. So, I've created my xml request into a string variable but I tried to use it with no success with the /i parameter of HPONCFG :-(

 

Does anyone have successfully used an input stream instead of a xml file ?

 

In a manual way, I execute hponcfg /i, copy paste my xml and make a CTRL-C it works :-S

 

My vbs command line looks like that :

 

Set objWshScriptExec = objShell.Exec ("cmd /c " & requestXML & " | X:\Tools\iLo\hponcfg /i") 

 I've search in google but no examples of the /i parameter have been found.

 

In a manual way, I execute hponcfg /i, copy paste my xml and make a CTRL-C it works :-S

 

Thanks in advance.

 

Narglix

1 REPLY
narglix
New Member.

Re: HPONCFG /i use and examples ?

Finally I found a solution to get the result with vbs :

 

Dim objShell,requestXML
Set objShell = wscript.createObject("wscript.shell")

requestXML = vBCrLf & "<RIBCL VERSION =""2.0"">" & vBCrLf
requestXML = requestXML & vbTab & "<LOGIN USER_LOGIN=""#######"" PASSWORD=""#######"">" & vBCrLf
requestXML = requestXML & vbTab & vbTab &"<SERVER_INFO MODE=""read"">" & vBCrLf
requestXML = requestXML & vbTab & vbTab & vbTab &"<GET_EMBEDDED_HEALTH />" & vBCrLf
requestXML = requestXML & vbTab & vbTab &"</SERVER_INFO>" & vBCrLf
requestXML = requestXML & vbTab & "</LOGIN>" & vBCrLf
requestXML = requestXML & "</RIBCL>" & vBCrLf

Set objWshScriptExec = objShell.Exec("X:\Tools\iLo\hponcfg /i")
objWshScriptExec.StdIn.Writeline requestXML
objWshScriptExec.StdIn.Close()

WScript.echo objWshScriptExec.StdOut.ReadAll

 Enjoy ;-)