0

I'm currently writing a script to get all the embedded health of an ILO. What I want is to avoid to create file, so I've create my xml request but I tried with no success with the /i parameter of HPONCFG :-(

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

Thanks in advance.

2 Answers2

0

Can you show us how you're executing the command? The "/i" indicates that you're using Windows. In Linux, the approach is to use hponcfg -i. The XML input stream would be piped into the command. I believe the same applies to Windows scripting.

ewwhite
  • 197,159
  • 92
  • 443
  • 809
  • Hi ewwhite, I'm in Windows and execute a vbscript like that : Set objWshScriptExec = objShell.Exec ("cmd /c " & requestXML & " | X:\Tools\iLo\hponcfg /i") requestXML is my string variable When I execute manually the command hponcfg /i, I can copy paste the XML press return and I need to press also CTRL+C to obtain result – user301089 Jun 05 '12 at 14:03
0

Finally I found a solution that I posted to this forum.

mgorven
  • 30,615
  • 7
  • 79
  • 122
  • Whilst this may theoretically answer the question, [it would be preferable](http://meta.stackexchange.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – mgorven Jul 02 '12 at 21:21