And here is a smal improvment that count the number of connection by connected users :)
Replace My.Server.FullName by your RMS fullname.
- # Connect your environment
- add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client";
- set-location "OperationsManagerMonitoring::";
- new-managementGroupConnection -ConnectionString:My.Server.FullName;
- set-location My.Server.FullName;
- # Get the connected users
- $SDKUsers = Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames()} | sort
- $SDKNumberConnections = $SDKUsers | measure-object
- # number of active connections
- $SDKNumberConnections.count
- # count active connections per users
- $hash =@{}
- $SDKUsers | % {$hash[$_] = $hash[$_] + 1 }
- $Result = $hash.getenumerator() | ? { $_.value -gt 0 }
- $Result | sort value -DESC
The result will be a table with the user account and the number of actives connections :
This can be a very usefull information to be able to investigate who is connecting the SCOM environment and why why have too much active connection.
Having too much SDK connection make the environment very slow.
This posting is provided "AS IS" with no warranties.
No comments:
Post a Comment