����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 3.142.124.139 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/sm/template/common/ |
Upload File : |
<!-- This is the XSL to render the Controller Information page. The associated web plugin is the ControllerInfoWebPlugin. --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- Include some common templates created by SS --> <xsl:import href="Utils.xsl"/> <!-- Define a bunch of global variables--> <xsl:variable name="GLOBAL_VAR_CurrentFirmwareVersion"><xsl:value-of select="/OMA/Controllers/DCStorageObject/FirmwareVer"/></xsl:variable> <xsl:variable name="GLOBAL_VAR_RequiredFirmwareVersion"><xsl:value-of select="/OMA/Controllers/DCStorageObject/RequiredFirmwareVersion"/></xsl:variable> <xsl:variable name="GLOBAL_VAR_CurrentDriverVersion"><xsl:value-of select="/OMA/Controllers/DCStorageObject/CurrentDriverVersion"/></xsl:variable> <xsl:variable name="GLOBAL_VAR_RequiredDriverVersion"><xsl:value-of select="/OMA/Controllers/DCStorageObject/RequiredDriverVersion"/></xsl:variable> <xsl:variable name="GLOBAL_VAR_CurrentStorPortDriverVersion"><xsl:value-of select="/OMA/Controllers/DCStorageObject/CurrentStorPortDriverVersion"/></xsl:variable> <xsl:variable name="GLOBAL_VAR_RequiredStorPortDriverVersion"><xsl:value-of select="/OMA/Controllers/DCStorageObject/RequiredStorPortDriverVersion"/></xsl:variable> <!-- Define Global variable for health status that can be used by other XSL files. Currently this variables are used to display status in Firmware/Driver version info page--> <xsl:variable name="HEALTH_STATUS_UNKNOWN_0">0</xsl:variable> <xsl:variable name="HEALTH_STATUS_UNKNOWN_1">1</xsl:variable> <xsl:variable name="HEALTH_STATUS_OK">2</xsl:variable> <xsl:variable name="HEALTH_STATUS_NON_CRITICAL">3</xsl:variable> <xsl:variable name="HEALTH_STATUS_CRITICAL">4</xsl:variable> <xsl:variable name="HEALTH_STATUS_NON_RECOVERABLE">5</xsl:variable> <xsl:template match="OMA"> <DataArea> <PageTitle> <xsl:choose> <xsl:when test="//BusProtocol != '9'"> <xsl:attribute name="display"><xsl:value-of select="$strTitlePart1"/><xsl:value-of select="/OMA/Controllers/DCStorageObject/Name"/><xsl:value-of select="$strTitlePart2"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="display"><xsl:value-of select="$strPCIeSSDTitlePart1"/><xsl:value-of select="/OMA/Controllers/DCStorageObject/Name"/><xsl:value-of select="$strPCIeSSDTitlePart2"/></xsl:attribute> </xsl:otherwise> </xsl:choose> </PageTitle> <!-- Checks if the firmware and/or driver versions are out of date, if so displays appropriate message informing that they are out of date --> <xsl:choose> <xsl:when test="($GLOBAL_VAR_RequiredFirmwareVersion and $GLOBAL_VAR_RequiredDriverVersion) or ($GLOBAL_VAR_RequiredFirmwareVersion and $GLOBAL_VAR_RequiredStorPortDriverVersion)"> <AlertMessage> <xsl:attribute name="display"><xsl:value-of select="$strSubHeaderFwDriverVerOutOfDate"/></xsl:attribute> <xsl:attribute name="status"><xsl:value-of select="$HEALTH_STATUS_NON_CRITICAL"/></xsl:attribute> </AlertMessage> </xsl:when> <xsl:when test="$GLOBAL_VAR_RequiredFirmwareVersion"> <AlertMessage> <xsl:attribute name="display"><xsl:value-of select="$strSubHeaderFwVerOutOfDate"/></xsl:attribute> <xsl:attribute name="status"><xsl:value-of select="$HEALTH_STATUS_NON_CRITICAL"/></xsl:attribute> </AlertMessage> </xsl:when> <xsl:when test="$GLOBAL_VAR_RequiredDriverVersion or $GLOBAL_VAR_RequiredStorPortDriverVersion"> <AlertMessage> <xsl:attribute name="display"><xsl:value-of select="$strSubHeaderDriverVerOutOfDate"/></xsl:attribute> <xsl:attribute name="status"><xsl:value-of select="$HEALTH_STATUS_NON_CRITICAL"/></xsl:attribute> </AlertMessage> </xsl:when> <xsl:otherwise><!-- Do Nothing--></xsl:otherwise> </xsl:choose> <ListData type="custom"> <!--If the node FirmwareVer is missing continue to display the row that informs that FirmwareVersion is not appicable. This is for non-raid scsi controllers --> <xsl:if test="//BusProtocol != '9' and ($GLOBAL_VAR_CurrentFirmwareVersion and $GLOBAL_VAR_CurrentFirmwareVersion != '(null)')"> <Data display="{$strFW}"> <xsl:attribute name="value"> <xsl:value-of select="$GLOBAL_VAR_CurrentFirmwareVersion"/> </xsl:attribute> </Data> </xsl:if> <xsl:if test="$GLOBAL_VAR_RequiredFirmwareVersion "> <Data display="{$strReqFW}"> <xsl:attribute name="value"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_RequiredFirmwareVersion"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_RequiredFirmwareVersion= '(null)' "> <xsl:value-of select="$strUnknown"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$GLOBAL_VAR_RequiredFirmwareVersion"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:value-of select="$strNotApplicable"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </Data> </xsl:if> <!--If the node DriverVer is missing continue to display the row that informs that DriverVersion is not appicable. This is for non-raid scsi controllers --> <Data display="{$strDvr}"> <xsl:attribute name="value"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_CurrentDriverVersion"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_CurrentDriverVersion= '(null)' "><xsl:value-of select="$strUnknown"/></xsl:when> <xsl:otherwise><xsl:value-of select="$GLOBAL_VAR_CurrentDriverVersion"/></xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise><xsl:value-of select="$strNotApplicable"/></xsl:otherwise> </xsl:choose> </xsl:attribute> </Data> <xsl:if test="$GLOBAL_VAR_RequiredDriverVersion"> <Data display="{$strReqDvr}"> <xsl:attribute name="value"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_RequiredDriverVersion"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_RequiredDriverVersion= '(null)' "> <xsl:value-of select="$strUnknown"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$GLOBAL_VAR_RequiredDriverVersion"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:value-of select="$strNotApplicable"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </Data> </xsl:if> <!--If the node StorPort DriverVer is missing then do not display anything --> <xsl:if test="$GLOBAL_VAR_CurrentStorPortDriverVersion"> <Data display="{$strStorPortDvr}"> <xsl:attribute name="value"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_CurrentStorPortDriverVersion"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_CurrentStorPortDriverVersion= '(null)' "><xsl:value-of select="$strUnknown"/></xsl:when> <xsl:otherwise><xsl:value-of select="$GLOBAL_VAR_CurrentStorPortDriverVersion"/></xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise><xsl:value-of select="$strNotApplicable"/></xsl:otherwise> </xsl:choose> </xsl:attribute> </Data> </xsl:if> <xsl:if test="$GLOBAL_VAR_RequiredStorPortDriverVersion"> <Data display="{$strReqStorPortDvr}" width="300"> <xsl:attribute name="value"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_RequiredStorPortDriverVersion"> <xsl:choose> <xsl:when test="$GLOBAL_VAR_RequiredStorPortDriverVersion= '(null)' "> <xsl:value-of select="$strUnknown"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$GLOBAL_VAR_RequiredStorPortDriverVersion"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:value-of select="$strNotApplicable"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </Data> </xsl:if> </ListData> <CustomButton> <Data name="Refresh"> <xsl:attribute name="display"><xsl:value-of select="$strRefresh"/></xsl:attribute> <xsl:attribute name="href">./DataArea?plugin=com.dell.sm.webplugins.FirmwareDriverInfoWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&help=fwprin</xsl:attribute> </Data> </CustomButton> </DataArea> </xsl:template> </xsl:stylesheet>