<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HPONCFG /i use and examples ? in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/hponcfg-i-use-and-examples/m-p/5683395#M7114</link>
    <description>&lt;P&gt;Finally I found a solution to get the result with vbs :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim objShell,requestXML
Set objShell = wscript.createObject("wscript.shell")

requestXML = vBCrLf &amp;amp; "&amp;lt;RIBCL VERSION =""2.0""&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; "&amp;lt;LOGIN USER_LOGIN=""#######"" PASSWORD=""#######""&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; vbTab &amp;amp;"&amp;lt;SERVER_INFO MODE=""read""&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; vbTab &amp;amp; vbTab &amp;amp;"&amp;lt;GET_EMBEDDED_HEALTH /&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; vbTab &amp;amp;"&amp;lt;/SERVER_INFO&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; "&amp;lt;/LOGIN&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; "&amp;lt;/RIBCL&amp;gt;" &amp;amp; vBCrLf

Set objWshScriptExec = objShell.Exec("X:\Tools\iLo\hponcfg /i")
objWshScriptExec.StdIn.Writeline requestXML
objWshScriptExec.StdIn.Close()

WScript.echo objWshScriptExec.StdOut.ReadAll&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Enjoy ;-)&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2012 13:32:00 GMT</pubDate>
    <dc:creator>narglix</dc:creator>
    <dc:date>2012-06-07T13:32:00Z</dc:date>
    <item>
      <title>HPONCFG /i use and examples ?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/hponcfg-i-use-and-examples/m-p/5681979#M7113</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently writing a VBS script to get all the embedded health of an ILO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What I want is to &lt;STRONG&gt;avoid to create an XML&amp;nbsp;file&lt;/STRONG&gt; 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 :-(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have successfully used an&lt;STRONG&gt; input stream&lt;/STRONG&gt; instead of a xml file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a manual way, I execute &lt;STRONG&gt;hponcfg /i,&lt;/STRONG&gt; &lt;STRONG&gt;copy paste my xml&lt;/STRONG&gt; and make a &lt;STRONG&gt;CTRL-C&lt;/STRONG&gt; it works :-S&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My vbs command line looks like that :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Set objWshScriptExec = objShell.Exec ("cmd /c " &amp;amp; requestXML &amp;amp; " | X:\Tools\iLo\hponcfg /i") &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've search in google but no examples of the /i parameter have been found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In a manual way, I execute hponcfg /i, copy paste my xml and make a CTRL-C it works :-S&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Narglix&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:53:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/hponcfg-i-use-and-examples/m-p/5681979#M7113</guid>
      <dc:creator>narglix</dc:creator>
      <dc:date>2012-06-06T11:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: HPONCFG /i use and examples ?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/hponcfg-i-use-and-examples/m-p/5683395#M7114</link>
      <description>&lt;P&gt;Finally I found a solution to get the result with vbs :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim objShell,requestXML
Set objShell = wscript.createObject("wscript.shell")

requestXML = vBCrLf &amp;amp; "&amp;lt;RIBCL VERSION =""2.0""&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; "&amp;lt;LOGIN USER_LOGIN=""#######"" PASSWORD=""#######""&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; vbTab &amp;amp;"&amp;lt;SERVER_INFO MODE=""read""&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; vbTab &amp;amp; vbTab &amp;amp;"&amp;lt;GET_EMBEDDED_HEALTH /&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; vbTab &amp;amp;"&amp;lt;/SERVER_INFO&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; vbTab &amp;amp; "&amp;lt;/LOGIN&amp;gt;" &amp;amp; vBCrLf
requestXML = requestXML &amp;amp; "&amp;lt;/RIBCL&amp;gt;" &amp;amp; vBCrLf

Set objWshScriptExec = objShell.Exec("X:\Tools\iLo\hponcfg /i")
objWshScriptExec.StdIn.Writeline requestXML
objWshScriptExec.StdIn.Close()

WScript.echo objWshScriptExec.StdOut.ReadAll&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Enjoy ;-)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 13:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/hponcfg-i-use-and-examples/m-p/5683395#M7114</guid>
      <dc:creator>narglix</dc:creator>
      <dc:date>2012-06-07T13:32:00Z</dc:date>
    </item>
  </channel>
</rss>

