- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- Re: HPONCFG /i use and examples ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2012 04:51 AM - edited 06-06-2012 04:53 AM
06-06-2012 04:51 AM - edited 06-06-2012 04:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2012 06:31 AM - edited 06-07-2012 06:32 AM
06-07-2012 06:31 AM - edited 06-07-2012 06:32 AM
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 ;-)