Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # define the location of the log files
- $inputdir = 'C:\Temp\Blg'
- $outputdir = "C:\Temp\Reports"
- # change to the folder of Performance Analyzer
- cd 'C:\Program Files\pal\pal'
- # query the log files
- $logs = ls -Recurse -Filter *.blg -Path $inputdir
- foreach ($log in $logs)
- {
- # process all the files with the following parameters:
- & ".\PAL.ps1" -Log $log.FullName -ThresholdFile "C:\Program Files\PAL\PAL\SystemOverview.xml" -Interval "1 minutes" -IsOutputHtml $True -HtmlOutputFileName "[LogFileName]_PAL_ANALYSIS_[DateTimeStamp].htm" -IsOutputXml $True -XmlOutputFileName "[LogFileName]_PAL_ANALYSIS_[DateTimeStamp].xml" -OutputDir $outputdir -AllCounterStats $True -NumberOfThreads 4 -IsLowPriority $True -OS "64-bit Windows Server 2008 R2" -PhysicalMemory "4" -UserVa "2048" -BeginTime "19/05/2016 10:00:01" -EndTime "19/05/2016 14:00:00"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement