microsoft / microsoft/CSS-Exchange
[Issue] ExchangeLogCollect -CollectFailoverMetric
Open
@dpaulson45 is already working on this.
Since Dec 6, 2024.
Exchange Log Collector
Issue
- Dominant language
- PowerShell
- Stars
- 1.3k
- Forks
- 395
- Avg merge
- 14h 7m
- Merged PRs (30d)
- 5
Description
Describe the issue
Issue was reported with the following
[08/02/2022 05:52:07] : [ServerName - Script Debug] : Returning: C:\MS_Logs_Collection\202282\ServerName\Exchange_DAG_Temp\ServerName\DAG1_Exchange_DAG_Information.zip
[08/02/2022 05:52:07] : Attempting to run CollectOverMetrics.ps1 against DAG1
[08/02/2022 05:52:12] : [ServerName - Script Debug] : Failed to collect failover metrics
[08/02/2022 05:52:12] : [ServerName - Script Debug] : Error Exception: System.Management.Automation.RuntimeException: The variable '$Script:WriteHostManipulateObjectAction' cannot be retrieved because it has not been set.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
at System.Management.Automation.PSScriptCmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
[08/02/2022 05:52:12] : [ServerName - Script Debug] : Error Stack: at Write-Host<Process>, E:\ExchangeLogCollector (3).ps1: line 237
at GetPamOperationalChannelStatsForServers, E:\Program Files\Microsoft\Exchange Server\V15\Scripts\CollectOverMetrics.ps1: line 333
at GetAmOperationsDataForServers, E:\Program Files\Microsoft\Exchange Server\V15\Scripts\CollectOverMetrics.ps1: line 887
at <ScriptBlock>, E:\Program Files\Microsoft\Exchange Server\V15\Scripts\CollectOverMetrics.ps1: line 1453
at <ScriptBlock>, E:\ExchangeLogCollector (3).ps1: line 3151
at Write-LargeDataObjectsOnMachine, E:\ExchangeLogCollector (3).ps1: line 3141
at Main, E:\ExchangeLogCollector (3).ps1: line 4143
at <ScriptBlock>, E:\ExchangeLogCollector (3).ps1: line 4178
Tried to reproduce the issue in my lab, however, not getting the error message and appears to not be collecting the failover metrics. Need to investigate further.
Expected behavior
Script should execute without an error message and should collect the data.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.