very often I'm using PAL for analyzing multiple couter log files.
I observed this bug in 2.7.1 version. 2.4 version was fine.
When I select 1 BLG file everything works fine, but when tried to parse multiple files I get these error message (in HTML report):
__Overall progress... Status: Preparing counter log(s), PAL 2.7.1 Progress: 24%... Preparing counter log(s),
An error occurred on...
$sCommand = $('relog.exe ' + "`"$sTemp`"" + ' -cf ' + "`"$($global:oPal.Session.CounterListFilePath)`"" + ' -f csv -o ' + "`"$($global:oPal.RelogedLogFilePath)`"")
At C:\Program Files\PAL\PAL\PAL.ps1:1152 char:76 + $sCommand = $('relog.exe ' + "`"$sTemp`"" + ' -cf ' + "`"$($glob ... + ~~~~~
Property 'CounterListFilePath' cannot be found on this object. Make sure that it exists.
SCRIPT ARGUMENTS:
Log: H:\Perfmon\SRV01_20150208-000005\CPU_Mem.blg;H:\Perfmon\SRV01_20150208-000005\Disk_Network.blg;H:\Perfmon\SRV01_20150208-000005\Processes.blg
ThresholdFile: C:\Program Files\PAL\PAL\SystemOverview.xml
AnalysisInterval: AUTO
IsOutputHtml: $True
IsOutputXml: $False
HtmlOutputFileName: [LogFileName]_PAL_ANALYSIS_[DateTimeStamp].htm
XmlOutputFileName: [LogFileName]_PAL_ANALYSIS_[DateTimeStamp].xml
OutputDir: [My Documents]\PAL Reports
AllCounterStats: $False
NumberOfThreads: 8
IsLowPriority: $True
DisplayReport: True
__
There might be a problem with this variable:
$global:oPal.Session.CounterListFilePath (line: 1152)
It wasn't set anywhere before.
Comments: ** Comment from web user: RolB **
Hello,
I ran into that problem too. (thanks to cmorrow05, i modified Pal.ps1)
Around line 1148
I changed that line :
$sCommand = $('relog.exe ' + "`"$sTemp`"" + ' -f csv -o ' + "`"$($global:oPal.RelogedLogFilePath)`"")
into
$sCommand = $('relog.exe ' + $sTemp + ' -f csv -o ' + "`"$($global:oPal.RelogedLogFilePath)`"")
Around line 1152
I changed that line
$sCommand = $('relog.exe ' + "`"$sTemp`"" + ' -cf ' + "`"$($global:oPal.Session.CounterListFilePath)`"" + ' -f csv -o ' + "`"$($global:oPal.RelogedLogFilePath)`"")
into
$sCommand = $('relog.exe ' + $sTemp + ' -cf ' + "`"$($global:oPal.Session.CounterListFilterFilePath)`"" + ' -f csv -o ' + "`"$($global:oPal.RelogedLogFilePath)`"")
Finaly $sTemp don't need to be rounded by ' or ", because they are already included during the variable feed few line up, and relog.exe expect do get blg files separated by space (and then options)
And finaly i found another strange thing around line 1900 in Function GetTimeZoneFromCsvFile
i changed that line
Return $aRawCounterList[0].Trim("`"")
into
Return $aRawCounterList[0].Trim([Char]34)
because i notice that the original line was commenting a lot of code behind, including several functions (unless it was a Notepad ++ miss interpretation of `)
I hope it's help :)
I want to conclude saying very big thank's to ClintH your work is amazing.