文件操作 - cmdlogud.xsl
返回文件管理
返回主菜单
删除本文件
文件: /opt/dell/srvadmin/var/lib/openmanage/xslroot/oma/template/web/cmdlogud.xsl
编辑文件内容
<?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:template match="/DataArea"> <xsl:copy> <xsl:apply-templates select="@* | script | Header | PageTitle | PromptText | CustomButton"/> <TableData columnspacing="true" nouniqueids="true" sortable="true"> <Header> <Data name="Severity" width="80" link="true" href="./DataArea?plugin=com.dell.oma.webplugins.CmdLogWebPlugin&sortkey=severity&order=descending"><xsl:attribute name="value"><xsl:value-of select="$strSeverity"/></xsl:attribute><xsl:attribute name="display"><xsl:value-of select="$strSeverity1"/></xsl:attribute></Data> <Data name="DateTime" link="true" href="./DataArea?plugin=com.dell.oma.webplugins.CmdLogWebPlugin"><xsl:attribute name="value"><xsl:value-of select="$strDateAmpTime"/></xsl:attribute><xsl:attribute name="display"><xsl:value-of select="$strDateAmpTime1"/></xsl:attribute></Data> <Data name="User" link="true" href="./DataArea?plugin=com.dell.oma.webplugins.CmdLogWebPlugin&sortkey=user&order=ascending"><xsl:attribute name="descendsorted">true</xsl:attribute><xsl:attribute name="value"><xsl:value-of select="$strUser"/></xsl:attribute><xsl:attribute name="display"><xsl:value-of select="$strUser1"/></xsl:attribute></Data> <Data name="Description" link="true" href="./DataArea?plugin=com.dell.oma.webplugins.CmdLogWebPlugin&sortkey=description&order=descending"><xsl:attribute name="value"><xsl:value-of select="$strDescription"/></xsl:attribute><xsl:attribute name="display"><xsl:value-of select="$strDescription1"/></xsl:attribute></Data> </Header> <xsl:apply-templates select="TableData/Row"> <xsl:sort select="Data[3]/@value" data-type="text" order="descending"/> </xsl:apply-templates> </TableData> </xsl:copy> </xsl:template> <xsl:template match="/ | @* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件