- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- Server Management - Remote Server Management
- >
- HPONCFG /i use and examples ?
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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 ;-)
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP