11-05-2010 01:44 PM
Jon had a customer question regarding the Onboard Administrator:
I have a customer that is trying to automate the collection of data from our blade enclosures and found that the Onboard Administrators will respond to a browser request by emitting a large chunk of XML. He is asking for documentation on being able to do this. I provided him the CLI user guide and he said that is not what he is looking to do, he does not what to SSL with structured scripts because if he makes firmware changes it requires him to go back and make changes to the script. I have not seen any documentation that explains how to use the XML feature of the OA on the blades, has anyone had this request and do we have a documents that may help explain what the customer is requesting?
Monty got involved:
I believe you are asking about the OA XML Reply.
We don’t document this feature, nor the format of the data, as we don’t intend to support it as a customer user interface.
The primary user of that data is HP System Insight Manager as indicated on the OA GUI help screen on the page with that setting.
This query is available from any OA that has enabled the XML Reply setting using http://<OA_IP_address>/xmldata?item=all
You can see this in action using the OA GUI by navigating to Enclosure Settings | Network Access | Protocols and selecting “view” next to Enable XML Reply – if XML Reply is enabled.
We feel that OA XML Reply is not as useful as performing individual CLI commands, if the user is trying to automate data collection. It does not provide as much information as the CLI “show all” command, nor any ability to control or change any setting. However, the XML Reply might contain all the data the customer is wishing to collect.
You will find that OA firmware changes that add new features will also change the data sent with the XML reply, so using XML reply will not solve that issue. If the customer wants to code an XML parser to extract data from the OA XML Reply – that should be possible, but is not something that we document or support.
Scott also provided great input:
That link Monty gave you will get your customer off to the races. If your customer knows how to use tools like XQuery and XSLT, they can do all sorts of things. Both are turing-complete and can give the customer a great deal of querying power.
Having written an ascii parser of the show all (bladefw.jar), I can understand why your customer would like to harness the XML responses. Being able to use the previously mentioned tools (XQuery/XSLT) make for a far superior result. However, it is not necessary to understand the format of this data ahead of time; XML (unlike other "tagged" languages like HTML) is well-formed by definition and it wouldn't take someone handy with these tools too long to know exactly what they're looking at. The only problem is what Monty referred to, ie the lack of division support for their XML responses. I suppose they could change the format of the XML responses in a future release and break the parser.
I'm looking forward to playing with the XML responses myself a little later in the year, but too snowed-under right now for this. I'd like to kick bladefw.jar to the curb and work on something fancier over the holidays.
With the link Monty sent, you could refer your customer to XML In a Nutshell (O'Reilly) and they could have XQuery/XSLT up and running pretty quick.
And Ken also answered the question:
https://<OA>/xmldata?item=all is the syntax used by SIM to get the inventory data from the OA, and build the rack view. The XML is for inquiry only as far as I know. So this can’t be used to script enclosure configuration.
Any other comments or suggestions?
10-28-2013 04:37 PM
Thanks for the great insight! I am also looking around to see if I can somehow extract the rack overview image. I am trying to create an inventroy of all my HP enclosures and provide a quick summary of the blade layout in the chassis. The fact the my insight manager has all the information, including the overview image, makes me believe that I can parse the XML output and grab the image from there.
How do I extract the overview image? The only thing I seem to find on the /xmldata?item=all page is this image:
Where are all the other images?
10-29-2013 02:28 PM
The OA has all those and SIM has all those and they are using things like the Model details to select the proper picture.
The OA Web code masks this very well by using some Java Script and I am not seeing an easy way to find all the pics. SIM might be easier.
But you could also just download the Blade Visio objects over at visiocafe and then save off the various components you need as jpg or similar.
The Image URL you found in the config output is the Image being used as a custom background for the tiny LCD screen on the front of the c7000. Has nothing to do with the Overview Picture.
11-04-2013 03:38 PM
By loading this page:
I can see that the blade overview image is dynamically generated based on what is in the chassis. Here are the relevant XML dump: