Power and Capacity Management is a great feature for XenApp, I use it more and more for Activlan customers in new implementation we do. Last week I had to find how to automate a workload and server capacity reporting by email. To remind you what is Power and Capacity Management here is a short explanation :
Citrix XenApp Power and Capacity Management can help reduce power consumption and manage XenApp server capacity by dynamically scaling up or scaling down the number of online XenApp servers. Consolidating sessions onto fewer online servers improves server utilization, helps minimize power consumption, and helps provide sufficient capacity to handle server loads.
As users log on to the system and reduce the idle capacity (the amount of capacity available for additional sessions), other servers in the workload are powered up. As users log off and idle capacity increases, idle servers are powered down. This helps optimize capacity for XenApp workloads.
Scheduling provides an automated approach. An administrator defines specific times for powering on and powering off workloads. For example, a schedule powers on servers at 8 in the morning and powers them down at 7 in the evening, from Monday through Friday. The administrator can manually override capacity and schedule settings to accommodate unexpected demand.
Load consolidation and power management operate in unison; load consolidation ensures sessions are not spread across online servers, which provides a better opportunity to power off excess servers later, using power management.
Use Power and Capacity Management to observe and record utilization and capacity levels. Console monitoring and report generation provide valuable information, even if you do not enable power management and load consolidation.
Power and Capacity Management respects all configured XenApp server settings, farm settings, and policies.
This is my lab console :
I had to figure out how to generate report automatically with Citrix Power and Capacity Management, there is an option to generate report within the PCM console but nothing to send these report automatically by email. When you generate report through the console you can obtain pretty good graphs and table :
These reports look good and this is exactly what I needed to generate. CPM is using SQL Reporting Services so it shouldn’t be that hard to generate an email from these report. I’m not a SQL expert or whatever but I’ve done the following change to set two subscriptions.
open a web browser and type : http://your_reporting_services_server/reports
Then click on the PCM entry and you’ll find some pre-build report and a “Data” icon :
You can from here subscribe to the report you want to generate by click on the yellow down arrow next to the chosen report and click on Subscribe :
You can generate an email or a file you’ll store on a shared folder, you can adjust settings to suits your need and schedule the day, time and frequency of the report you want to automate. Once it’s done, you’ll receiver a nice email with the desired data :