Ipmtxt2xml(1m), Name, Synopsis – HP Insight Control Software for Linux User Manual

Page 76: Description, Examples, Ipmtxt2xml(1m) name

Advertising
background image

ipmtxt2xml(1M)

NAME

ipmtxt2xml

- Insight Control Power Management text to XML conversion tool

SYNOPSIS

ipmtxt2xml input_text_file

DESCRIPTION

The purpose of this tool is to convert a flat text representation of data center topology by device, rack, and
row into an HPSIM XML format representation. The result is similar to that created by mxnode -lf. XML
files could be imported directly into HPSIM using mxnode -af but this is discouraged. Relationships such
device to rack mapping can be lost in this process. Use ipmimport instead.
This tool writes to standard out and can be redirected to a file. Any user with file permissions can read an
xml or text file. The common attribute:value text format is described in ipm.1m in detail.

EXAMPLES

This is a sample text input file. Case and spacing are ignored by the parser.

DatacentreID:Lab5
RowNumber:1
RackName:southamerica, PositionRow:8, rackHeight:48
DeviceName:ecuador, StartU:17, HeightU:4
DeviceName:bolivia, StartU:13, HeightU:8
DeviceName:peru, StartU:5, HeightU:2

This is a sample XML output:

<?xml version="1.0" encoding="ISO-8859-1"?>
<node-list>
<node name="Lab5">
<hw-attribute name="DeviceType">Datacenter</hw-attribute>
</node>
<node name="southamerica">
<hw-attribute name="DeviceType">Rack</hw-attribute>
<sw-attribute name="DataCentreID">Lab5</sw-attribute>
<sw-attribute name="RowNumber">1</sw-attribute>
<sw-attribute name="PositionRow">8</sw-attribute>
<sw-attribute name="rackHeight">48</sw-attribute>
</node>
<node name="ecuador">
<sw-attribute name="StartU">17</sw-attribute>
<sw-attribute name="HeightU">4</sw-attribute>
<sw-attribute name="Rack">southamerica</sw-attribute>
</node>
<node name="bolivia">
<hw-attribute name="DeviceType">Server</hw-attribute>
<sw-attribute name="StartU">13</sw-attribute>
<sw-attribute name="HeightU">8</sw-attribute>
<sw-attribute name="Rack">southamerica</sw-attribute>
</node>
<node name="peru">
<hw-attribute name="DeviceType">Server</hw-attribute>
<sw-attribute name="StartU">5</sw-attribute>
<sw-attribute name="HeightU">2</sw-attribute>
<sw-attribute name="Rack">southamerica</sw-attribute>
</node>
</node-list>

76

Command reference

Advertising