Maintaining and Troubleshooting your
XenDesktop 7.5 Environment
Download this slide
http://ouo.io/6sHHbQ
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
Agenda
Maintaining and Troubleshooting your XenDesktop 7.5 Environment
FMA Service States
Service SQL Scripts
Site Policies
Troubleshooting Tools
© 2014 Citrix. Confidential.6
Learning Objectives
At 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 story
Example: Broker Service
© 2014 Citrix. Confidential.9
Validating a Service Status
What 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 Status
What 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.
DBMissingMandatoryFeature
The 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.
DBMissingMandatoryFeature
The 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 characteristics
Common Traits
NT AUTHORITYNetwork Service
Authenticate against the site DB using the local
computer a/c
Demo
Checking FMA Service States
SQL Service Scripts
© 2014 Citrix. Confidential.16
SQL Service Scripts
4 script types for each FMA service
FullDatabase
Instance
Evict
Login
© 2014 Citrix. Confidential.17
Examples of when to use each Script
A 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 Scripts
Use 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 Scripts
Use 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 Scripts
FullDatabase & Login
Demo
Manually joining a Controller to an existing Site
Site Policies
© 2014 Citrix. Confidential.23
XenDesktop Site Policies
Overview
Entitlement Policy (Pooled/Shared Desktops)
• Get-BrokerEntitlementPolicyRule
• Get-BrokerAppEntitlementPolicyRule
Assignment Policy (Dedicated/Private Desktops)
• Get-BrokerAssignmentPolicyRule
• Get-BrokerAppAssignmentPolicyRule
Access Policy
• Get-BrokerAccessPolicyRule
Demo
Restricting 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
Demo
Scout Integration
Resources & Q/A
© 2014 Citrix. Confidential.30
Resources
Recommended 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
Resources
Recommended 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
Resources
Recommended Reading
Trade-up to XenDesktop
• http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/2013-trade-up-to-
xendesktop-program-faqs.pdf
• http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/trade-up-to-
xendesktop-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
Visit bit.ly/CTXSUPPORT to learn more about our proven methodology.
© 2014 Citrix. Confidential.40

Maintaining and troubleshooting your xen desktop 7.5 environment

  • 1.
    Maintaining and Troubleshootingyour XenDesktop 7.5 Environment Download this slide http://ouo.io/6sHHbQ Mick Glover - Sr. Readiness Specialist, Worldwide Support Readiness
  • 2.
    © 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
  • 3.
    © 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
  • 4.
    © 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
  • 5.
    © 2014 Citrix.Confidential.5 Agenda Maintaining and Troubleshooting your XenDesktop 7.5 Environment FMA Service States Service SQL Scripts Site Policies Troubleshooting Tools
  • 6.
    © 2014 Citrix.Confidential.6 Learning Objectives At 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
  • 7.
  • 8.
    © 2014 Citrix.Confidential.8 Viewing service states through Windows only tells half the story Example: Broker Service
  • 9.
    © 2014 Citrix.Confidential.9 Validating a Service Status What 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)
  • 10.
    © 2014 Citrix.Confidential.10 Validating a Service Status What 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)
  • 11.
    © 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. DBMissingMandatoryFeature The 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.
  • 12.
    © 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. DBMissingMandatoryFeature The 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.
  • 13.
    © 2014 Citrix.Confidential.13 FMA service characteristics Common Traits NT AUTHORITYNetwork Service Authenticate against the site DB using the local computer a/c
  • 14.
  • 15.
  • 16.
    © 2014 Citrix.Confidential.16 SQL Service Scripts 4 script types for each FMA service FullDatabase Instance Evict Login
  • 17.
    © 2014 Citrix.Confidential.17 Examples of when to use each Script A 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
  • 18.
    © 2014 Citrix.Confidential.18 Generating Service Scripts Use 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
  • 19.
    © 2014 Citrix.Confidential.19 Generating Service Scripts Use 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
  • 20.
    © 2014 Citrix.Confidential.20 Citrix Studio uses the same Scripts FullDatabase & Login
  • 21.
    Demo Manually joining aController to an existing Site
  • 22.
  • 23.
    © 2014 Citrix.Confidential.23 XenDesktop Site Policies Overview Entitlement Policy (Pooled/Shared Desktops) • Get-BrokerEntitlementPolicyRule • Get-BrokerAppEntitlementPolicyRule Assignment Policy (Dedicated/Private Desktops) • Get-BrokerAssignmentPolicyRule • Get-BrokerAppAssignmentPolicyRule Access Policy • Get-BrokerAccessPolicyRule
  • 24.
    Demo Restricting access toresources using Site Policies
  • 25.
  • 26.
    © 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)
  • 27.
    © 2014 Citrix.Confidential.27
  • 28.
  • 29.
  • 30.
    © 2014 Citrix.Confidential.30 Resources Recommended 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
  • 31.
    © 2014 Citrix.Confidential.31 Resources Recommended 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/
  • 32.
    © 2014 Citrix.Confidential.32 Resources Recommended Reading Trade-up to XenDesktop • http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/2013-trade-up-to- xendesktop-program-faqs.pdf • http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/trade-up-to- xendesktop-program.pdf
  • 33.
    © 2014 Citrix.Confidential.33 Tweet Tweet... Stay Informed with the latest XenDesktop Tips @XDinformer • Kim Ferrie @XDtipster • Mick Glover
  • 34.
    © 2014 Citrix.Confidential.34
  • 35.
    © 2014 Citrix.Confidential.35
  • 36.
    © 2014 Citrix.Confidential.36 XA/XD 7.5 Webinar Series Webinar Page
  • 37.
    © 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.
  • 38.
    © 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.
  • 39.
    © 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 Visit bit.ly/CTXSUPPORT to learn more about our proven methodology.
  • 40.
    © 2014 Citrix.Confidential.40