I've seen this posted a number of times before. However no definitive response seems to be forthcoming from Microsoft. I am running SCOM 2012 R2 UR9, and am running into errors 26319 & 22406 in the Operations Manager event logs, and warnings inside of SCOM.
An exception was thrown while processing GetObjectsFromReader for session ID uuid:b5871a76-586b-4db7-8135-49ce70979bc6;id=1.
Exception message: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
Full Exception: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
And subsequently:
The PowerShell script failed with below exception
System.Management.Automation.ActionPreferenceStopException: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)At line:10 char:19
+ $alertsByObject = Get-SCOMAlert -ResolutionState 0 | group MonitoringObjectId
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Script Name: GetMGAlertsCount.ps1
One or more workflows were affected by this.
Workflow name: ManagementGroupCollectionAlertsCountRule
Instance name: All Management Servers Resource Pool
Instance ID: {4932D8F0-C8E2-2F4B-288E-3ED98A340B9F}
Management group: XXX-SCOM
If I execute the following command on any Management Server in my management group, this issue will present on all of them, intermittently:
Get-SCOMAlert -ResolutionState 0 | group MonitoringObjectId
The offending command and resultant error are the only warnings appearing in the Management Group alerts.
Sometimes the command works when manually executed, other times it fails. Network connectivity passes all tests we are aware of to perform.
Thank you,
HSB