Maintaining and Troubleshooting your XenDesktop 7.5 Environment
June 2014
Mick Glover - Sr. Readiness Specialist, Worldwide Support Readiness
© 2014 Citrix. Confidential.2
Presenter Bio: Mick Glover (CCI)Over 18 Years of Experience in IT
Joined Citrix in January 2005
Started as Senior member of Frontline team
Spent 3 years working as an Escalation Engineer
Been with the WW Readiness team since 2009
Certifications: CCA, CCEE, CCIA, MCSE & CCI
SME areas: XenDesktop, App Orchestration, UPM
Author of the XD Tipster Blog Series and @XDtipster twitter feed
© 2014 Citrix. Confidential.3
In terms of Troubleshooting & Maintaining your XenDesktop environment, very little has changed with the introduction of XenDesktop 7.5. What is required is a solid understanding of the Architecture and expected
behaviour along with the ability to engage with the product through the SDK to carry out advanced
administrative and configuration tasks. @XDtipster
© 2014 Citrix. Confidential.4
In terms of Troubleshooting & Maintaining your XenDesktop environment, very little has changed with the introduction of XenDesktop 7.5. What is required is a solid understanding of the Architecture and expected
behaviour along with the ability to engage with the product through the SDK to carry out advanced
administrative and configuration tasks. @XDtipster
© 2014 Citrix. Confidential.5
AgendaMaintaining and Troubleshooting your XenDesktop 7.5 Environment
FMA Service States
Service SQL Scripts
Site Policies
Troubleshooting Tools
© 2014 Citrix. Confidential.6
Learning ObjectivesAt the end of this webinar, you will be able to:
Validate the true state of Controller FMA services
Apply Schema update scripts against the Site DB
Manually add a Controller to an existing Site using PoSH
Control access to resources through PoSH
Identify key Troubleshooting tools
FMA Service States
© 2014 Citrix. Confidential.8
Viewing service states through Windows only tells half the storyExample: Broker Service
© 2014 Citrix. Confidential.9
Validating a Service StatusWhat you do for one….
Get-BrokerServiceStatus (Broker)
Get-ConfigServiceStatus (Configuration)
Get-HypServiceStatus (Host Service)
Get-AcctServiceStatus (AD Identity)
Get-ProvServiceStatus (MCS)
Get-MonitorServiceStatus (Monitoring)
Get-AdminServiceStatus (Delegated Admin)
Get-LogServiceStatus (Configuration Logging)
Get-SFServiceStatus (StoreFront)
Get-EnvTestServiceStatus (Test Service)
© 2014 Citrix. Confidential.10
Validating a Service StatusWhat you do for one….
Get-BrokerServiceStatus (Broker)
Get-ConfigServiceStatus (Configuration)
Get-HypServiceStatus (Host Service)
Get-AcctServiceStatus (AD Identity)
Get-ProvServiceStatus (MCS)
Get-MonitorServiceStatus (Monitoring)
Get-AdminServiceStatus (Delegated Admin)
Get-LogServiceStatus (Configuration Logging)
Get-SFServiceStatus (StoreFront)
Get-EnvTestServiceStatus (Test Service)
© 2014 Citrix. Confidential.11
Get-BrokerServiceStatus - Return Value Examples Status Meaning
OK The broker is connected to a database that is valid, and the service is running.
DBUnconfigured The broker does not have a database connection configured
DBRejectedConnection The database rejected the logon from the Broker Service. This may be caused by bad credentials, or the database not being installed.
InvalidDBConfigured The database schema is missing (possibly just the stored procedures in it).
DBNotFound The specified database could not be located with the configured connection string.
DBMissingOptionalFeature The broker is connected to a database that is valid, but it does not have the full functionality required for optimal performance. Upgrading the database is advisable.
DBMissingMandatoryFeatureThe broker is connected to a database that is valid, but it does not have the full functionality required so the broker cannot function. Upgrading the database is required.
© 2014 Citrix. Confidential.12
Get-BrokerServiceStatus - Return Value Examples Status Meaning
OK The broker is connected to a database that is valid, and the service is running.
DBUnconfigured The broker does not have a database connection configured
DBRejectedConnection The database rejected the logon from the Broker Service. This may be caused by bad credentials, or the database not being installed.
InvalidDBConfigured The database schema is missing (possibly just the stored procedures in it).
DBNotFound The specified database could not be located with the configured connection string.
DBMissingOptionalFeature The broker is connected to a database that is valid, but it does not have the full functionality required for optimal performance. Upgrading the database is advisable.
DBMissingMandatoryFeatureThe broker is connected to a database that is valid, but it does not have the full functionality required so the broker cannot function. Upgrading the database is required.
© 2014 Citrix. Confidential.13
FMA service characteristicsCommon Traits
NT AUTHORITY\Network Service
Authenticate against the site DB using the local computer a/c
DemoChecking FMA Service States
SQL Service Scripts
© 2014 Citrix. Confidential.16
SQL Service Scripts4 script types for each FMA service
FullDatabase
Instance
Evict
Login
© 2014 Citrix. Confidential.17
Examples of when to use each ScriptA Script for every occasion…
FullDatabase• Manually create or script the creation of a new Site
Instance• Manually add a controller to an existing Site
Evict• Manually remove an orphaned Controller from a Site
Login• Create DB Security Logon
© 2014 Citrix. Confidential.18
Generating Service ScriptsUse the PoSH SDK
Get-<ServiceAlias>DBSchema - DatabaseName -ScriptType • Broker, Config, Hyp, Prov, Acct, SF, Monitor EnvTest, Log & Admin
Examples• Get-BrokerDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -
ScriptType instance | out-file c:\join.sql• Get-ConfigDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -
ScriptType instance | out-file c:\join.sql -append
© 2014 Citrix. Confidential.19
Generating Service ScriptsUse the PoSH SDK
Get-<ServiceAlias>DBSchema - DatabaseName -ScriptType • Broker, Config, Hyp, Prov, Acct, SF, Monitor EnvTest, Log & Admin
Examples• Get-BrokerDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -
ScriptType instance | out-file c:\join.sql• Get-ConfigDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -
ScriptType instance | out-file c:\join.sql -append
© 2014 Citrix. Confidential.20
Citrix Studio uses the same ScriptsFullDatabase & Login
DemoManually joining a Controller to an existing Site
Site Policies
© 2014 Citrix. Confidential.23
XenDesktop Site PoliciesOverview
Entitlement Policy (Pooled/Shared Desktops)• Get-BrokerEntitlementPolicyRule• Get-BrokerAppEntitlementPolicyRule
Assignment Policy (Dedicated/Private Desktops)• Get-BrokerAssignmentPolicyRule• Get-BrokerAppAssignmentPolicyRule
Access Policy• Get-BrokerAccessPolicyRule
DemoRestricting access to resources using Site Policies
Troubleshooting Tools
© 2014 Citrix. Confidential.26
What’s new in XenDesktop 7.5?Troubleshooting Tools
The more things change…
Existing Support tools are still all the rage…• Scout• XDPing (Also part of Scout)• CDFControl (Also part of Scout)• HDX Monitor• Logging/Tracing Mechanisms• PoSH (PowerShell)• Citrix Director• TASS (Citrix Insight Services)
© 2014 Citrix. Confidential.27
DemoScout Integration
Resources & Q/A
© 2014 Citrix. Confidential.30
ResourcesRecommended Reading
XD 7.5 PowerShell cmdlet help• http://support.citrix.com/proddocs/topic/xenapp-xendesktop-75/cds-sdk-cmdlet-help.html
XenDesktop 7.5• http://
support.citrix.com/proddocs/topic/xenapp-xendesktop/cds-xenapp-xendesktop-75-landing.html
© 2014 Citrix. Confidential.31
ResourcesRecommended Reading
commended Reading What’s New in XenApp & XenDesktop 7.5• http://blogs.citrix.com/2014/03/26/whats-new-in-xenapp-xendesktop-7-5/
Q and A on Implementing XenApp and XenDesktop 7.5• http://blogs.citrix.com/2014/05/29/q-and-a-on-implementing-xenapp-and-xendesktop-7-5/
StoreFront 2.5 Empowers XenApp and XenDesktop• http://blogs.citrix.com/2014/03/28/storefront-2-5-empowers-xenapp-and-xendesktop/
© 2014 Citrix. Confidential.32
ResourcesRecommended Reading
Trade-up to XenDesktop• http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/2013-trade-up-to-x
endesktop-program-faqs.pdf• http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/trade-up-to-xendes
ktop-program.pdf
© 2014 Citrix. Confidential.33
Tweet Tweet...Stay Informed with the latest XenDesktop Tips
@XDinformer• Kim Ferrie
@XDtipster• Mick Glover
© 2014 Citrix. Confidential.34
© 2014 Citrix. Confidential.35
© 2014 Citrix. Confidential.36
XA/XD 7.5 Webinar Series
Webinar Page
© 2014 Citrix. Confidential.37
Fuel your talent with continuous learning.
Citrix Education offers the following technical training for professionals:
CXA-103: Citrix XenApp 7.5 Architecture and New Features
CXA-207: Citrix XenApp 7.5 Skills Update
Visit bit.ly/CTXTRAINING to save 10%*
*Offer expires 90 days from receipt of this message. Not valid with any other promotions, packages or discounts. Applies only to new purchases. Regional limitations may apply.
© 2014 Citrix. Confidential.38
Simplify your journey, let us guide you.
Accelerate your implementation and minimize risk by taking advantage of Citrix Consulting. You’ll get the expertise of certified Citrix Consulting Architects to successfully deploy Citrix solutions in any phase of your project.
Visit bit.ly/CTXCONCULTING to learn more about our proven methodology.
© 2014 Citrix. Confidential.39
Citrix Support Program Options• Access to Technical Support Engineers when you need it
… Unlimited 24x7x365 Citrix Worldwide Technical Support
• Flexible to meet your changing organizational needs… Unlimited number of technical contacts from your team
• Assist your teams with support tools and knowledge …. Learn best practices for optimizing your Citrix infrastructure
• Affordable Technical Support direct from Citrix… Per-license pricing model allows you to pay as you grow
• Enterprise Support… Available for over 2500 licenses
• Technical Resource Management … Single point of contact dedicated to your IT environment
Citrix Premier Support
Visit bit.ly/CTXSUPPORT to learn more about our proven methodology.
© 2014 Citrix. Confidential.40