Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
Windows
/
System32
/
srm
/
xslt
/
Edit File Name :
ShadowReport_CSV.xsl
<?xml version="1.0"?> <!-- Copyright (C) 2004, Microsoft Corporation --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:global="urn:srm-extension-obj" > <xsl:variable name="NewLine" select="'
'" /> <!-- Global functions --> <xsl:include href="functions.xsl"/> <xsl:output method="text"/> <xsl:preserve-space elements="*"/> <xsl:template match="StorageReport"> <xsl:apply-templates select="ReportHeader"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="ShadowReport"/> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="ShadowReport"> <xsl:apply-templates select="ShadowCopyStorageAssociation" /> <xsl:apply-templates select="ShadowCopySummaryStatistics" /> <xsl:apply-templates select="StatisticsForShadowCopies" /> </xsl:template> <xsl:template match="ShadowCopyStorageAssociation"> <xsl:text>"Shadow Copy Storage Association"</xsl:text> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="DiffAreaSummary" /> <xsl:text>"Source Volume","Storage Volume","Maximum Diff Area Space","Allocated Diff Area Space","Number of Shadow Copies","Oldest Shadow Copy","Most recent Shadow Copy","Number of lookups"</xsl:text> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="VolumeStorageAssociation" /> </xsl:template> <!-- We start a table here which is ended in VolumeStorageAssociation --> <xsl:template match="DiffAreaSummary"> <xsl:text>"Number of diff areas","Allocated Diff Area space (MB)"</xsl:text> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(string(@NumberOfDiffAreas))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@AllocatedDiffAreaSpaceMb))" /> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="VolumeStorageAssociation"> <xsl:value-of select="global:CsvCell(string(@SourceVolume))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@StorageVolume))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@MaximumDiffAreaSpaceMb))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@AllocatedDiffAreaSpaceMb))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@NumberOfShadowCopies))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@OldestShadowCopy))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@MostRecentShadowCopy))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@NumberOfLookups))" /> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="ShadowCopySummaryStatistics"> <xsl:text>Summary statistics</xsl:text> <xsl:text>"Storage Volume","Number of Diff Areas","Number of Shadow Copies","Total Volume Size (MB)","Total Volume Size (MB)","Maximum Diff Area Space","Space Currently Allocated to Dif Areas (MB)","Total Free Space (MB)"</xsl:text> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="VolumeDiffAreaSummary" /> </xsl:template> <xsl:template match="VolumeDiffAreaSummary"> <xsl:value-of select="global:CsvCell(string(@StorageVolume))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@NumberOfDiffAreas))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@NumberOfShadowCopies))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@TotalVolumeSizeMb))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@MaximumDiffAreaSpaceMb))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@SpaceCurrentlyAllocatedToDiffAreasMb))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@TotalFreeSpaceMb))" /> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="StatisticsForShadowCopies"> <xsl:text>"Statistics for Shadow Copies"</xsl:text> <xsl:value-of select="$NewLine" /> <xsl:text>"Number of shadow copies",</xsl:text> <xsl:value-of select="global:CsvCell(string(@NumberOfShadowCopies))" /> <xsl:text>"</xsl:text> <xsl:value-of select="$NewLine" /> <xsl:text>"Shadow Copy Volume Name""Source Volume""Diff Area Storage Volume""Created Timestamp""Usage""Type""Provider"</xsl:text> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="ShadowCopyStatistics" /> </xsl:template> <xsl:template match="ShadowCopyStatistics"> <xsl:value-of select="global:CsvCell(string(@ShadowCopyVolumeName))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@SourceVolume))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@DiffAreaStorageVolume))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@CreatedTimeStamp))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@Usage))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@Type))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@Provider))" /> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="ReportHeader"> <xsl:value-of select="global:CsvCell(string(@ReportTitle))"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> <xsl:text>Generated at: </xsl:text> <xsl:value-of select="global:CsvCell(string(@GeneratedAt))"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(string(@Description))"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> <xsl:text>Report settings: </xsl:text> <xsl:value-of select="$NewLine" /> <xsl:text>Machine: ,</xsl:text> <xsl:value-of select="global:CsvCell(string(@MachineName))"/> <xsl:value-of select="$NewLine" /> <xsl:text>Folders: ,</xsl:text> <xsl:apply-templates select="ReportNamespaces" /> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="ReportNamespaces"> <xsl:apply-templates select="Namespace"/> </xsl:template> <xsl:template match="Namespace"> <xsl:value-of select="global:CsvCell(string(.))"/> <xsl:text>,</xsl:text> </xsl:template> </xsl:stylesheet>
Save