CollectOverMetrics.ps1 Help

Exchange 2013 SP1 with 2 member DAG. Trying to use collectovermetrics. When running .\collectovermetrics -generatehtmlreport I get:

PS C:\Program Files\Microsoft\Exchange Server\V15\Scripts> .\collectovermetrics.ps1 -GenerateHtmlReport
cmdlet CollectOverMetrics.ps1 at command pipeline position 1
Supply values for the following parameters:
DatabaseAvailabilityGroup: DAG1
Get statistics from server0
Get statistics from server1
Found total of 0 entries

Generated the following per-DAG reports:
C:\Program Files\Microsoft\Exchange Server\V15\Scripts\FailoverReport.DAG1.2015_05_16_22_05_39.csv

Importing data from C:\Program Files\Microsoft\Exchange Server\V15\Scripts\FailoverReport.DAG1.2015_05_16_22_05_39.csv

Generating summary report
WriteHtmlReport : Cannot bind argument to parameter 'Data' because it is null.
At C:\Program Files\Microsoft\Exchange Server\V15\Scripts\CollectOverMetrics.ps1:1463 char:31
+         WriteHtmlReport -Data $AmOperationsData -ReportPath $HtmlSummaryReportNa ...
+                               ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [WriteHtmlReport], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,WriteHtmlReport
 
Summary report is C:\Program Files\Microsoft\Exchange Server\V15\Scripts\FailoverSummary.2015_05_16_22_05_39.htm

So you can see the report is 0 and size is 0kb. As far as I know this script is unmodified. Why are the entries in the DAG 0 which I suppose is why the report is 0kb in size?

May 17th, 2015 2:20am

Hello,

Can you try this with different parameters as shown in the following example?

CollectOverMetrics.ps1 -DatabaseAvailabilityGroup DAG1 -StartTime "06/15/2012" -EndTime "06/16/2012" -GenerateHTMLReport send-mailmessage -to user@domain.tld -from user2@domain.tld -subject "this is a test" -smtpserver "FQDN of mail server"
Also, check if this is something related to a permission issue. Check with ReportPath parameter and specify a path to generate the report

Free Windows Admin Tool Kit Click here and download it now
May 17th, 2015 5:19am

Hello,

Can you try this with different parameters as shown in the following example?

CollectOverMetrics.ps1 -DatabaseAvailabilityGroup DAG1 -StartTime "06/15/2012" -EndTime "06/16/2012" -GenerateHTMLReport send-mailmessage -to user@domain.tld -from user2@domain.tld -subject "this is a test" -smtpserver "FQDN of mail server"
So that gives the exact same error. Even just used CollectOverMetrics.ps1 -DatabaseAvailabilityGroup DAG1 -StartTime "05/15/2015" -EndTime "05/16/2015" -GenerateHTMLReport
Also, check if this is something related to a permission issue. Check with ReportPath parameter and specify a path to generate the report


Move all 3 collectovermetrics files to the scripts folder where I know I have proper permissions and ran the above command = same error
May 17th, 2015 9:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics