Monitoring OCS and Lync Peak Call Capacity
Recently I had a customer interested in checking how many concurrent calls a particular OCS Mediation Server was handling. The challenge with this is that separate perfmon counters exist for inbound calls and for outbound calls, but there is not a built-in counter which measures both. So while we could monitor the peak capacity of each we had no guarantee that these peak values were occurring at the same time.
In order to track this usage I’ve come up with a Powershell script which grabs these two counters, parses their values, adds them together, and dumps the output into a CSV file. At the end of the monitoring period you can take this CSV into Excel and easily find the peak total call count.
Here are some notes on the behavior:
The caveat with the Lync version is now that a Mediation server can use multiple gateways we can’t see which gateway is being used for each inbound or outbound call. But this still gives an idea of concurrent call capacity flowing through each Mediation role.
- OCS Version: OCSCallData.ps1
- Lync Version: LyncCallData.ps1
I hope to improve this in the future, but wanted to make it available for everyone sooner than later.
Tom, Looks very nice. I have linked to this. John
Hint. you can get rid of the string manipulation by simply walking down the objects.
(Get-Counter “countername”).countersam ples[0].cookedvalue
Nice – I had no idea that was possible. Thanks Frank.