Sunteți pe pagina 1din 21

A Deep Dive into Supporting XenDesktop

Kim Ferrie, Mick Glover


Download this slide
http://ouo.io/zTW9Km

Agenda
A Deep Dive into Supporting XenDesktop

Architecture
FMA Service States
Service SQL Scripts
Site Policies

2014 Citrix. Confidential.

The Architecture
XenDesktop 7x

XenDesktop 7.x Architecture


PoSH

Citrix Studio

Citrix Director

PoSH

WCF
[80]

WCF
[80]

[5985/5986]
Configuration
Service

Host Service

Machine
Creation
Service

AD Identity
Service

Machine
Machine Creation
Creation
Services
Services
SQL Server
4

2014 Citrix. Confidential.

Controller
Broker
Service
Delegated
Admin
Service

Infrastructure
Services
SQL Server

Environment
Test Service

Monitor
Service

Configuration
Logging
Service

Storefront
Service

Broker
Service
SQL Server

Feature & Integration


Services
SQL Server

Virtual
Desktop
(VDA)
Citrix Desktop
Service

Citrix ICA
Service

(PicaSvc2.exe)

FMA Service States

Viewing service states through Windows only tells half the story
Example: Broker Service

2014 Citrix. Confidential.

Validating a Service Status

Get-BrokerServiceStatus (Broker)

Get-MonitorServiceStatus (Monitoring)

Get-ConfigServiceStatus (Configuration)

Get-AdminServiceStatus (Delegated Admin)

Get-HypServiceStatus (Host Service)

Get-LogServiceStatus (Configuration Logging)

Get-AcctServiceStatus (AD Identity)

Get-SFServiceStatus (StoreFront)

Get-ProvServiceStatus (MCS)

Get-EnvTestServiceStatus (Test Service)

2014 Citrix. Confidential.

Get-BrokerServiceStatus - Return Values


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
8

2014 Citrix. Confidential.

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.

Demo
FMA Service States

SQL Service Scripts

SQL Service Scripts


4 script types for each FMA service

FullDatabase
Instance
Evict
Login

11

2014 Citrix. Confidential.

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

12

2014 Citrix. Confidential.

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

13

2014 Citrix. Confidential.

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

14

2014 Citrix. Confidential.

Citrix Studio uses the same Scripts


FullDatabase & Login

15

2014 Citrix. Confidential.

Demo
Manually joining a Controller to an existing Site

Site Policies

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

18

2014 Citrix. Confidential.

Demo
Restricting access to resources through Site Policies

Tweet Tweet...
Stay Informed with the latest XenDesktop Tips

@XDinformer
Kim Ferrie

@XDtipster
Mick Glover

20

2014 Citrix. Confidential.

WORK BETTER. LIVE BETTER.

22

2014 Citrix. Confidential.