Using EdgeSight in a Provisioning Server Shared Image – Properly!
|
by Nicholas Dille on 06/29/2009 | 6 Comments | 4,913 Views
|
As EdgeSight is a component that is offered by Citrix in several Platinum Editions for strategic products as well as a substitute for Resource Manager in XenApp, customers like to profit from the value-add compared to traditional system management products. EdgeSight is often used to augment the data collected by those tools. But when using EdgeSight with Provisioning Server, things get a little more complex because an agent is assigned a unique ID to match data uploads to the correct database entries. By using shared disks with Provisioning Server, such a unique ID must not be included in the golden image to avoid performance data to be assigned incorrectly - meaning that several agents may be reporting to the same device in EdgeSight. In this article, I'd like to demonstrate how the method offered by Citrix can be enhanced to use EdgeSight and make the management of shared disks with Provisioning Server feasible. What Citrix Says Citrix publishes an Installation Guide for EdgeSight which documents a setup with Provisioning server. I'll give you a short summary of the approach but the full details are available in "Installing EdgeSight in a Streamed Environment" beginning on page 41. You need to prevent the service from starting automatically by adjusting the start mode to manual before rebooting (immediately after the installation) OR by providing the SERVICE_START_MANUAL="1" parameter on the command line of the agent installation. If the agent starts unintentionally, the chapter also documents how to fix the installation as the unique ID is assigned on the first start of the service. After completing the setup of your golden image, the startup type of the service is to be set to automatic. The system may not be rebooted until it is properly imaged for Provisioning server. The disadvantage of this procedure is that later modifications can result in generating and embedding the unique ID in the golden image causing the problem you were trying to avoid in the first place. Therefore, this solution does not seem to tell the whole story. What Can Be Done The above procedure can obviously be fixed by automatically deciding when to start the EdgeSight service during startup. When an image is streamed using Provisioning Server, a file called c:\personality.ini is created supplying configuration settings in a running instance of the shared image. The following box shows an example of this file found on one of my shared images after booting it up: [StringData] $DiskName=XenDesktop 3_0 $DiskMode=Private [ArdenceData] _EnablePrinterSettings=0 _DiskMode=P Apparently, Provisioning Server offers the mode of the image in the entry called $DiskMode. That's handy, isn't it? In my installations of EdgeSight in golden images for shared disks used with Provisioning Server, I set the start mode of the EdgeSight service to manual, permanently, and apply a group policy containing a startup script checking the configuration file personality.ini for $DiskMode=Shared before starting the service. See the following script for an example how to do this. @Echo Off SetLocal Set PvsFile=%SystemDrive%\Personality.ini If Not Exist "%PvsFile%" ( Echo Warning: Personality does not exist. GoTo FIN ) For /F "UseBackQ Delims== Tokens=1,*" %%i In (`type "%PvsFile%" ^| find /i "$"`) Do Call :SetVar "%%i" "%%j" If "%$DiskMode%" == "Shared" SC Start RSCorSvc GoTo FIN :SetVar Set VarName=%~1 Set VarValue=%~2 Set %VarName%=%VarValue% GoTo :EoF :FIN EndLocal Summary Using the method described above the setup of EdgeSight becomes a one-time effort because the golden image can be booted in either shared or private mode without running the risk of unintentionally embedding a unique ID for the EdgeSight agent into the image. Side Note By the way, using EdgeSight in an environment with Provisioning Server poses some more difficulties concerning data uploads because collected performance and crash information is lost on reboots. Depending on your setup and requirements, you can either configure EdgeSight to perform uploads frequently or use a difference disk which persists across reboots. The first option causes a performance impact on the system while the second option may not be viable with a pooled desktop group. Unfortunately, there are strings attached.
- ‹ previous
- 47 of 106
- next ›
+++ Profile Migrator 2 - Ein neuer Desktop, ein frisches Benutzerprofile und alle bewährten Einstellungen und Daten. Jetzt kostenlos und unbefristet testen!
6 responses for "Using EdgeSight in a Provisioning Server Shared Image – Properly!" |
Add Comment
Aktuelle Artikel
Über den Autor
![]() |
Nicholas Dille Head of Technology and Innovation Blogs about Centralized computing, virtualization and performance monitoring |
Most viewed
| 18,518 Views |
Who Needs Aero Glass Remoting? Although It's Cool! |
| 15,759 Views |
Emulating a Redirecting Load Balancer for WI and PNA |
| 14,224 Views |
Building Custom EdgeSight Reports Part 4 - The Wedding |







Why wouldn\'t you just use
Why wouldn\'t you just use EdgeSight 5.1 with built-in shared image support instead of jumping through all of these hoops. I believe this functionality was added with 5.0 SP2. A remote firebird database server is used and setting the agent to pooled mode on install will solve this issue for you. Then you don\'t have to worry about a differencing disk or more frequent uploads. The agent database and all unique information is stored remotely so there is no risk of it being deleted on reboot.
Dear Nicholas, This method
Dear Nicholas,
This method is very close to some scripts I've provided in PVS related articles however there are two things to also take into account :
1) $DiskMode does not exist anymore with PVS 5.1 so it is better to rely on [ArdenceData]
/ _Diskmode entry which is common to 5.0 and 5.1
2) When you use reverse imaging the personality.ini is copied so Ces Agent can start when starting the reversed master target. The only way I've found (which is detailled in scripts and used by my cloning tool) is to ensure that the system disk is a vdisk with the .ini check to get the image mode.
I'd'be very happy to discuss with you about these items.
Best Regards,
Pierre
Joey, I am shocked to have
Joey,
I am shocked to have missed the article in the knowledge base so thanks a lot for the heads up!
In http://support.citrix.com/article/ctx120957, Citrix describes how to set up the EdgeSight agent with a remote Firebird database. This solves the issue I have raised in the above article concerning lost performance data on device reboots.
Take care,
Nicholas
Joey, Nicholas please note
Joey, Nicholas please note that the article is for XenDesktop, not for XenApp agents.
For provisioned XenApp Servers we still have to use such methods or XenApp Cloning Tool ;)
Joey you're right the VDA support was introduced in CES 5.0 SP2.
Also a note from the admin
Also a note from the admin guide linked with the XenApp Agent : to be supported a persistent storage is needed so Data Path has to be redirected to a persistent drive outside the image.
In this case, I'm redirecting the CES folder to the local disk used for PVS cache.
Regards,
Pierre
I recently came across your
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
Susan
http://8080proxy.com