Advertisement
easternnl

Process multiple files with MS Performance Analyzer (PAL)

May 20th, 2016
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # define the location of the log files
  2. $inputdir = 'C:\Temp\Blg'
  3. $outputdir = "C:\Temp\Reports"
  4.  
  5. # change to the folder of Performance Analyzer
  6. cd 'C:\Program Files\pal\pal'
  7.  
  8. # query the log files
  9. $logs = ls -Recurse -Filter *.blg -Path $inputdir
  10.  
  11. foreach ($log in $logs)
  12. {
  13.  
  14. # process all the files with the following parameters:
  15. & ".\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"
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement