Cross posting from Ilse’s Blog.
During the last Techdays here in Belgium, I have had the privilege of being able to present a session on Lync. I had chosen as a topic for that session “Deploying Lync: Notes from the Field, and more”, where I talked about the top ten questions I run into when talking to customers about deploying Lync in their environment. I tried to answer the following questions:
- Lync Online – Lync On Premises: where do we go?
- Lync is a Puzzle, really?
- Lync and NAT: Yes or No?
- Whats’s up with the Picture in Lync?
- Are there any tools available to help me design hardware and bandwidth requirements for Lync?
And then the final topic I touched upon was monitoring, and that’s when I was happy to introduce one of my Technology Advisor colleagues, Wesley Backelant, who knows almost everything about PowerPivot and Power View and SQL and BI to the IT Pro Lync audience And we promised to blog about it, so here it is, the details on the web
Monitoring Server in Lync, why would you use it?
In short, the Monitoring Server role in Lync is optional, and can be added after finishing the deployment of all the other server roles within Lync. The Monitoring Server enables you to capture both call detail records (CDR) for Enterprise Voice and Audio/Video conferences and data collections about your Audio/Video Quality of Experience, also incorporating data on file transfers, application sharing, and remote assistance. It does NOT archive the conversations itself (if you want to keep the IM conversations in your organization, you should consider deploying the Archiving server role).
Some typical questions on the Monitoring Server role in Lync:
Can the Monitoring server role be combined with any other Lync Server role?
Yes, as taken from TechNet:
“A Monitoring Server can be collocated with an Archiving Server, with a SQL Server store of an Enterprise Edition Front End pool, or with a file store of a Front End pool. The Monitoring Server requires a database, but the database can be collocated on the Monitoring Server, with the database server for the Archiving Server, or on the Back End Server of an Enterprise Edition Front End pool. A Monitoring Server cannot be collocated with a Standard Edition server in a production environment.”
Can you collocate the monitoring database with a Lync back-end database?
The answer is yes, but the back-end database needs to reside in a separate SQL instance.
Do you require SQL Reporting Server?
No, but if you do you will be able to take advantage of the built-in Monitor Server Reports, which you can customize as wanted.
What’s the advantage of using the Monitoring Server role with Microsoft System Center Operations Manager?
By installing the Microsoft System Center Operations Manager, which uses the Monitoring CDR and QoE data, you can enable the generation of near real-time alerts showing the health of call reliability and media quality, and define actions upon these.
Do I need a monitoring server per Lync Pool, and even per Site?
No, as taken from the same Technet Article linked to before:
“Multiple central sites can also share any of the following that you deploy in one central site:
- Archiving Server
- Monitoring Server
- Stand-alone Mediation Server or pool
- Edge Server or Edge pool”
Any documentation available on how to deploy the Monitoring Server?
Yes: Microsoft Lync Server 2010 Monitoring Deployment Guide, available for download here: http://www.microsoft.com/download/en/details.aspx?id=8207, which described the different steps envolved:
- Installing Message Queuing for Monitoring
- Installing SQL Server (with Reporting Services)
- Adding a Monitoring Server to the Topology using Topology Builder
- Installing the Monitoring Server
- Deploying Monitoring Server Reports (if wanted)
- Configuring Monitoring Server Settings
Is there a document that described how to use the Monitoring Server Reports in a Lync Server 2010 deployment?
Sure there is, there is Microsoft Lync Server 2010: Using Monitoring Server Reports whitepaper available for download here: http://www.microsoft.com/download/en/details.aspx?id=890
Built-In Reports examples:
What does the Dashboard give me?
And yes you can export the reports, and you can customize them…but if you know have the feeling as in “this is not exactly what I want to show my manager”, “I would like to have some more fancy reports” “I’m looking for an easier way to use the gathered data”…then please read along, because now it’s time to dive into PowerPivot and Power View!
Let me start by saying that the solution provided here is obviously for demo purposes. It is not a perfect solution and we are not responsible for the production use of this file.
First a couple of words on the technology used in this solution.
PowerPivot is a powerful data mashup and data exploration tool based on xVelocity in-memory technologies providing unmatched analytical performance to process billions of rows at the speed of thought. It comes with a client part, a free add-in for Excel 2010, which allows you to import and combine data in an easy way. We used Excel in this particular case to get information from the Lync monitoring databases and create some interesting calculations. In order to get your hands on PowerPivot please visit the official website.
The second part of the solution uses SharePoint and Power View to share and visualize the information in a very interactive way. Sharing PowerPivot files in a scalable and controlled way can be achieved by using the Excel Services functionality of SharePoint. With Excel Services you have the ability to share Excel files to a broad audience without the need to install Excel 2010 (and in this case PowerPivot) on every machine. If you need more information about Excel Services please read this. When integrating SQL Server Reporting Services 2012 in SharePoint 2010, you will get a new powerful data visualization tool called Power View. Power View is really all about the interactive and stunning experience. Understanding Power View is actually the easiest by just watching this demo.
Now that you know the technology part let’s dive into some of the details on how we created this. Of course we started by interviewing customers to understand what they would like to get out of the information available. Some of the topics that came up were duration distribution, average response time, number of sessions by type, uptake of Lync and a lot more interesting stuff!
Most of the information you need is available in the LcsCDR which is fully documented here. The leading table is SessionDetails so you better figure out how this table is structured. One additional set of data you may need is a date table, I have included a hidden sheet with dates but you could also use the DateStream feed from our Windows Azure Marketplace. A couple of other tables we used are SIP, Users, ClientVersions and UriTypes
The other database we used was rtcab1 to get display names. This is a bit less straightforward to retrieve but here is how you can extract it:
SELECT avname.Value as 'DisplayName', avuri.Value as 'UserUri'
FROM AbUserEntry u
INNER JOIN AbAttributeValue avname ON avname.UserId = u.UserId AND avname.AttrId = 3
INNER JOIN AbAttributeValue avuri ON avuri.UserId = u.UserId AND avuri.AttrId = 8
The entire model looks like this
Now that we have all the information in place it is time to visualize some of it. A couple examples of the things we built (remember it was built on a test database too so don’t freak out by the unanswered call rate ).
Taking this PowerPivot file to the server to share it with a broad audience is a matter of saving it on an Excel Services enabled SharePoint Server. This would give you the following view
But we promised a more compelling and interactive way of visualizing this information and that is exactly what you will do with Power View. Power View can be used on PowerPivot files published on SharePoint or on solutions deployed to SQL Server Analysis Services. As a little side note, you can import the PowerPivot model or build this model from scratch in SQL Server Data Tools to make it a real server-side solution running on SQL Server Analysis Services.
The most popular view however is the adoption rate of Lync in the organization, this can be achieved by using the Scatter Chart functionality in Power View.
Please find the PowerPivot file here. In order to get data from your enviroment go to the PowerPivot window, select “Design” and “Existing Connection”. Edit both connections to point to your SQL Server and when done use “Refresh All”. In the Excel Windows go to Data" and select “Refresh All” and you are done. If you want to use Power View just upload the file to a SharePoint where this feature is enabled.
There is a LOT more you can get out of the Lync databases, so we hope this sparks a whole wave of creativity! Ilse’s favorite for example is the QoEMetric database to see the call quality for different users and devices. If I can find some time I’ll see if we can publish this PowerPivot file too.
Ilse & Wesley