summaryrefslogtreecommitdiffstats
path: root/rteval/rteval_dmi.xsl
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-12-11 15:29:56 +0100
committerDavid Sommerseth <davids@redhat.com>2009-12-11 15:29:56 +0100
commit2c778d15e53264c3d3d572510508e76e80139c61 (patch)
tree7f1da89c4d1a83c33f30cb0a75a625b10fba7b74 /rteval/rteval_dmi.xsl
parent1431b51355d30006ad3cfd8cf93408f5d74f886f (diff)
downloadrteval-2c778d15e53264c3d3d572510508e76e80139c61.tar.gz
rteval-2c778d15e53264c3d3d572510508e76e80139c61.tar.xz
rteval-2c778d15e53264c3d3d572510508e76e80139c61.zip
Added more DMI data into the summary.xml report
Diffstat (limited to 'rteval/rteval_dmi.xsl')
-rw-r--r--rteval/rteval_dmi.xsl40
1 files changed, 39 insertions, 1 deletions
diff --git a/rteval/rteval_dmi.xsl b/rteval/rteval_dmi.xsl
index 2347f2c..4f77d61 100644
--- a/rteval/rteval_dmi.xsl
+++ b/rteval/rteval_dmi.xsl
@@ -7,7 +7,7 @@
<xsl:attribute name="SerialNo"><xsl:value-of select="SystemInfo/SerialNumber"/></xsl:attribute>
<xsl:attribute name="SystemUUID"><xsl:value-of select="SystemInfo/SystemUUID"/></xsl:attribute>
<xsl:copy-of select="/dmidecode/DMIversion"/>
- <xsl:apply-templates select="SystemInfo|BIOSinfo"/>
+ <xsl:apply-templates select="SystemInfo|BIOSinfo|IPMIdeviceInfo"/>
<SystemProcessors>
<xsl:apply-templates select="ProcessorInfo[Populated = 'Enabled']"/>
@@ -26,6 +26,7 @@
<PortConnectors>
<xsl:apply-templates select="PortConnectorInfo"/>
</PortConnectors>
+ <xsl:apply-templates select="OEMstrings"/>
</HardwareInfo>
</xsl:template>
@@ -36,6 +37,22 @@
<xsl:attribute name="BIOSrevision"><xsl:value-of select="BIOSrevision"/></xsl:attribute>
<xsl:value-of select ="Vendor"/>
</BIOS>
+ <BIOSconfig>
+ <xsl:for-each select="Characteristics/flags/flag[@enabled='1']|Characteristics/characteristic[@enabled='1']">
+ <characteristic>
+ <xsl:choose>
+ <xsl:when test="local-name(.) = 'flag'">
+ <xsl:attribute name="level"><xsl:value-of select="../../@level"/></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="local-name(.) = 'characteristic'">
+ <xsl:attribute name="level"><xsl:value-of select="../@level"/></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise/>
+ </xsl:choose>
+ <xsl:value-of select="."/>
+ </characteristic>
+ </xsl:for-each>
+ </BIOSconfig>
</xsl:template>
<xsl:template match="/dmidecode/SystemInfo">
@@ -47,12 +64,22 @@
<xsl:attribute name="SerialNum"><xsl:value-of select="../BaseBoardInfo/SerialNumber"/></xsl:attribute>
<xsl:value-of select="../BaseBoardInfo/ProductName"/>
</BaseBoard>
+ <BaseBoardFeatures>
+ <xsl:copy-of select="../BaseBoardInfo/Features/feature"/>
+ </BaseBoardFeatures>
<BootErrors>
<xsl:value-of select="../SystemBootInfo/Status"/>
</BootErrors>
</GeneralInfo>
</xsl:template>
+ <xsl:template match="/dmidecode/IPMIdeviceInfo">
+ <IPMInterface>
+ <xsl:attribute name="interface"><xsl:value-of select="BaseAddress/@interface"/></xsl:attribute>
+ <xsl:value-of select="InterfaceType"/>
+ </IPMInterface>
+ </xsl:template>
+
<xsl:template match="/dmidecode/ProcessorInfo">
<ProcessorInfo>
<xsl:attribute name="NumCores"><xsl:value-of select="Cores/CoreCount"/></xsl:attribute>
@@ -155,4 +182,15 @@
</Connector>
</xsl:template>
+ <xsl:template match="/dmidecode/OEMstrings">
+ <OEMstrings>
+ <xsl:for-each select="Record">
+ <OEMstring>
+ <xsl:attribute name="index"><xsl:value-of select="@index"/></xsl:attribute>
+ <xsl:value-of select="."/>
+ </OEMstring>
+ </xsl:for-each>
+ </OEMstrings>
+ </xsl:template>
+
</xsl:stylesheet>