Using xml, Xml overview, Xml headers – HP ProLiant SL2500 Scalable System User Manual

Page 67: Xml output, Data types

Advertising
background image

Using XML 67

Using XML

XML overview

XML scripting provides a standard programmatic means for data center tools to interact with the HP APM.

You can configure many of the same components available with the HP APM CLI only in a format that is more
favorable to the many tools that use XML as a scripting medium.
In addition to configuration capabilities, you can also draw information from the HP APM, based on an XML

query/response paradigm, such as querying a rack for all available power loads on that rack.
A username/password combination, located at the top of the XML query into HP APM, enforces security.

XML headers

The first line of the XML script is always the following:

<?xml version="1.0" encoding="UTF-8"?>

XML output

XML output normalizes the attribute values and writes them to the output. This output follows the W3C
canonicalization specification (

http://www.w3.org/TR/xml-c14n

).

Data types

The following table lists the data types allowed in the parameter.

Data type

Description

String

Any text enclosed in quotes. It can include spaces, numbers, or any printable
character. A string might start with either a double of single quote, and it must end with

the same type of quote. The string might contain a quote if it is different from the string
delimiter quotes.
For example, if a string is started with a double quote, a single quote can be used

within the string and the string must be closed with a double quote.

Specific string

A specific string must contain certain characters. You have a choice of words that are
accepted as correct syntax. All other words produce an error.

Boolean string

A boolean string is a specific string that specifies a "yes" or "no" condition. These
strings are not case-sensitive. Acceptable boolean strings are:

"yes"

"y"

"no"

"n"

"true"

"t"

"false"

"f"

Advertising
This manual is related to the following products: