An XSLT Stylesheet for interpreting the XenServer XAPI Database.
Originally based on my work at Citrix in 2010 (http://support.citrix.com/article/CTX129070), this repository contains amendments to reflect changes in how XAPI stores data. This version is designed to work with XenServer 6.5, but may work with earlier and later releases with varying degrees of success.
The XSLT template enables the following information to be extracted from the XenServer XAPI Database.
- Pool Information
- General Information
- Pool Configuration
- Patches / Hotfixes
- Storage Repositories
- Networks
- XenServer Host Configuration
- Host Summary and Licensing
- CPUs
- Memory
- Physical Block Devices
- Physical Network Interfaces
- Physical Network Interface Details
- Patches / Hotfixes
- XenServer Virtual Machines
- Virtual Machine Details
- Virtual Block Devices
-
Get a current XAPI Database XML database. This can be done from within XenCenter by exporting a Server Status Report (Tools -> Server Status Report in XenCenter) with the "XenServer Database" option selected.
-
Open the ZIP file containing the report and copy the xapi-db.xml file to the same location as the xslt file.
-
Open the xapi-db.xml file and place the following at the very top:
<?xml-stylesheet type="text/xsl" href="xenserver.xsl"?>
-
Open the xapi-db.xml file in a web browser that can apply XSLT templates to an XML document such as Firefox or Internet Explorer (does not work in Chrome).