View Integration VMware Horizon 6 Version 6.1 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
View Integration You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com Copyright © 2014 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.
Contents View Integration 7 1 Introduction 9 View Components 9 Integration Interfaces to View 10 2 Integrating with the Event Database 11 Event Database Tables and Schemas 11 Connection Broker Events 13 View Agent Events 19 View Administrator Events 19 Event Message Attributes 26 Sample Database Queries and Views 28 3 Using View PowerCLI 31 Introduction to View PowerCLI 31 Start the PowerShell Console with View PowerCLI Loaded 32 Displaying Help for a View PowerCLI cmdlet 32 Error Handling 33 Error Whe
View Integration Displaying Information About Physical Computers 45 Updating the Ownership of Machines 46 Displaying Information About Events 46 Managing the Global Configuration of View 46 Managing View Licenses 46 Examples of Using View PowerCLI for Enhanced Functionality 47 Checking if a View Connection Server Instance Is Running 47 Resize Automatic and Linked-Clone Desktop Pools 48 Determining Paths to vSphere Inventory Objects 49 Determining Paths to vSphere Datastore Objects 49 Adding and Removing Da
Contents 7 Dynamically Setting Desktop Policies with Start Session Scripts 81 Overview of Configuring Start Session Scripts 81 Example Start Session Scripts 82 Enable the VMware View Script Host Service 83 Configure a User Account to Run the Start Session Script 83 Add Windows Registry Entries for a Start Session Script 83 Index 85 VMware, Inc.
View Integration 6 VMware, Inc.
View Integration This guide describes how to integrate View™ software with third-party software such as Windows PowerShell, business intelligence reporting engines, and Microsoft System Center Operations Manager (SCOM). Intended Audience This book is intended for anyone who wants to customize or integrate software to work with View. The information in this manual is written for experienced Windows or Linux system administrators who are familiar with virtual machine technology and datacenter operations.
View Integration 8 VMware, Inc.
1 Introduction 1 With View, system administrators can provision desktops and control user access to these desktops. Client software connects users to virtual machines running in VMware vSphere™, or to physical systems running within your network environment. In addition, View administrators can configure Remote Desktop Services (RDS) hosts to provide View desktop and application sessions to client devices.
View Integration Integration Interfaces to View You can use several interfaces to integrate View with external applications. 10 Event database – you can configure View to record events to a Microsoft SQL Server or Oracle database. You can then use business intelligence reporting engines to access and analyze this database. View PowerCLI – you can use the PowerShell interface to perform a wide variety of administration tasks on View components.
2w Integrating with the Event Database 2 You can configure View to record events to a Microsoft SQL Server or Oracle database. View records events such as the following examples: End-user actions such as logging in and starting a desktop or application session. Administrator actions such as adding entitlements and creating desktop or application pools. Alerts that report system failures and errors. Statistical sampling such as recording the maximum number of users over a 24-hour period.
View Integration View records details about events to all the database tables. After a certain period of time has elapsed since writing an event record, View deletes the record from the event and event_data tables. You can use View Administrator to configure the time period for which the database keeps a record in the event and event_data tables. See the View Installation document for more information.
Chapter 2 Integrating with the Event Database Table 2-3 shows the schema for the event_data and event_data_historical tables. Table 2-3. Schema for the event_data and event_data_historical Tables Column Name Oracle Data Type SQLServer Data Type BooleanValue SMALLINT tinyint Description Value of a Boolean attribute. 0 = false 1 = true EventID INTEGER int Unique primary key for the event. IntValue INTEGER int Value of an integer attribute.
View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4.
View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4.
View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4. Connection Broker Events (Continued) EventType Severity ModuleAndEventText BROKER_VC_STATUS_CHANGED_ RECONNECTING INFO Reconnecting to vCenter at address ${VCAddress} BROKER_VC_STATUS_CHANGED_UNKNOWN WARNING The status of vCenter at address ${VCAddress} is unknown BROKER_VC_STATUS_CHANGED_UP INFO vCenter at address ${VCAddress} is up View Agent Events Table 2-5 shows the event types for View Agent. Table 2-5.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-7. Attributes Used with ModuleAndEventText Messages (Continued) Attribute Name Description EntitlementDisplay Display name of a desktop entitlement. MachineId Identifier of a physical or virtual machine. MachineName Name of a physical or virtual machine. MaintenanceMode Maintenance mode state. ObjectID Identifier of an inventory object. ObjectType Type of an inventory object. PolicyDisplayName Display name of a policy.
View Integration Sample Database Queries and Views NOTE Replace the dbo.VE_ prefix in the examples with the appropriate prefix for your event database server. Display all error events from the event_historical table. CREATE VIEW error_events AS ( SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.ModuleAndEventText FROM dbo.VE_event_historical AS ev WHERE ev.Severity = ‘ERROR’ ); Display all warning events from the event_historical table. CREATE VIEW warning_events AS ( SELECT ev.EventID, ev.
Chapter 2 Integrating with the Event Database List all recent events where an administrator added a ThinApp repository. CREATE VIEW thinapp_repository_added_events AS ( SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue, ed3.StrValue FROM dbo.VE_event_historical AS ev, dbo.VE_event_data_historical AS ed1, dbo.VE_event_data_historical AS ed2, dbo.VE_event_data_historical AS ed3 WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND ev.EventID = ed3.EventID AND ev.
View Integration 30 VMware, Inc.
3 Using View PowerCLI 3 View PowerCLI provides an easy-to-use PowerShell interface to View. You can use the View PowerCLI cmdlets to perform various administration tasks on View components.
View Integration Start the PowerShell Console with View PowerCLI Loaded You can run the View PowerCLI cmdlets directly on a View Connections Server host that has the following software installed. View 4.5 or later Microsoft .NET framework Windows PowerShell 1.0 To use the View PowerCLI cmdlets to change the configuration of View, you must be logged into a View Connection Server instance as a user in a role with sufficient privileges, such as the Administrators role.
Chapter 3 Using View PowerCLI Error Handling View PowerCLI cmdlets handle all errors as non-terminating errors that halt the execution of a cmdlet but do not terminate a pipeline. You can examine the $error automatic variable to determine the nature of an error. You can set the standard PowerShell $ErrorActionPreference and $errorView automatic variables to control how PowerShell handles non-terminating errors and how it displays them in the shell.
View Integration View PowerCLI Cmdlets You can use View PowerCLI cmdlets to administer View on a View Connection Server instance. You can use the Get-Help cmdlet to obtain more help about a View PowerCLI cmdlet as described in “Displaying Help for a View PowerCLI cmdlet” on page 32. Table 3-3 lists the available View PowerCLI cmdlets ordered by noun. Table 3-3.
Chapter 3 Using View PowerCLI Table 3-3. View PowerCLI Cmdlets Ordered by Noun (Continued) Cmdlet Description Get-TerminalServer Returns information about registered RDS hosts. Add-TerminalServerPool Adds a desktop pool from RDS hosts. Update-TerminalServerPool Updates a desktop pool that has RDS hosts. Get-User Returns information about users. Remove-UserOwnership Removes the ownership of a virtual machine. Update-UserOwnership Assigns a user (specified as a SID) to a virtual machine.
View Integration View Administrator, View PowerCLI Cmdlet, and vdmadmin Operations Table 3-4 compares the operations that are supported by View Administrator, View PowerCLI cmdlets, and the vdmadmin command on various View objects. For information about View Administrator and the vdmadmin command, see the View Administration document. Table 3-4.
Chapter 3 Using View PowerCLI Table 3-4.
View Integration Table 3-4.
Chapter 3 Using View PowerCLI Flash Throttling Settings Table 3-8 shows the settings that you can use with the -flashThrottling parameter to specify how often Adobe Flash should refresh what it shows onscreen. Throttling Flash to increase the refresh interval reduces the frame rate. This reduction causes Flash content to use less bandwidth, but it might also cause Flash to drop frames. Table 3-8. Flash Throttling Settings Flash Throttling Description AGGRESSIVE Sets the interval to 2500 milliseconds.
View Integration Table 3-10. Pool Type Settings (Continued) Pool Type Description NonPersistent (AutomaticPool) Specifies a pool of automatically configured floating (nonpersistent) machines that are provisioned, managed, and configured by a vCenter Server. OnRequestSviNonPersistent (AutomaticPool) Specifies a pool of floating (nonpersistent) machines that are provisioned, managed, and configured by a vCenter Server and View Composer when requested.
Chapter 3 Using View PowerCLI Smart Card Authentication Settings Table 3-13 shows the settings that you can use with the -smartCardSetting parameter to specify how users with smart cards are authenticated. These settings apply to Update-ConnectionBroker, and do not have any effect unless you also specify -UseSSLClient $true with Update-GlobalSetting. Table 3-13. Smart Card Authentication Settings Refresh Policy Description NotAllowed Specifies that smart card authentication is disabled.
View Integration Set the PCoIP external URL for a security server. Update-ConnectionBroker -broker_id SECSVR-03 -externalPCoIPURL 10.116.32.136:4172 Managing the Configuration of vCenter Servers in View Add an entry for a vCenter Server to the View configuration. Add-ViewVC -serverName vc01.mydom.int -username Administrator -password clydenw -createRampFactor 5 -deleteRampFactor 5 Return information about a vCenter Server. Get-ViewVC -serverName vc01.mydom.
Chapter 3 Using View PowerCLI NOTE To provision all the desktops in advance of their use, set -minimumCount and -maximumCount to the same value. Update the configuration of the automatically provisioned desktop pool auto1. Update-AutomaticPool -pool_id auto1 -displayName "Automatic Desktop Pool 1" -isProvisioningEnabled $false -dataStorePaths /host/datastore_1/lun10;/host/datastore_1/lun12 The datastores that you specify as arguments to -datastorePaths override the previous setting.
View Integration Create the manually provisioned desktop pool man1 from the desktops listed by the vCenter Server vc.mydom.int. Get-ViewVC -serverName vc.mydom.int | Get-DesktopVM -poolType Manual | Add-ManualPool -pool_id man1 -isUserResetAllowed $false Update the configuration of the manually provisioned desktop pool man1.
Chapter 3 Using View PowerCLI If you want to remove all entitlements from the system, specify the -forceRemove parameter set to $true . Get-PoolEntitlement | Remove-PoolEntitlement -forceRemove $true If you do not specify the-forceRemove parameter, you can use the command to find out information about the entitlements that would be removed. Managing Remote Sessions Return the list of active remote sessions for the user fred in the domain mydom. Get-RemoteSession -username mydom\fred Disconnect the activ
View Integration Updating the Ownership of Machines Update the ownership of the virtual machine vm04 to the user usr1. Update-UserOwnership -machine_id (Get-DesktopVM -Name "vm04").machine_id -sid (Get-User -name usr1).sid Remove the ownership of a virtual machine. Remove-UserOwnership -machine_id (Get-DesktopVM -Name "vm22").machine_id Displaying Information About Events Display the views that are available for reporting events.
Chapter 3 Using View PowerCLI Examples of Using View PowerCLI for Enhanced Functionality You can create PowerShell functions by combining View PowerCLI and vSphere PowerCLI cmdlets to perform complex operations such as resizing pools, and adding datastores to desktop pools. The following sections contain sample functions that you can adapt and apply to your own systems.
View Integration Resize Automatic and Linked-Clone Desktop Pools Define PowerShell functions to check the current usage of all desktop pools, and to resize any automatically provisioned or linked-clone desktop pools that are at their maximum capacity. # PollAllPoolsUsage # Parameters # $increment Amount by which to increase a pool that is at maximum capacity (default = 5).
Chapter 3 Using View PowerCLI } } Determining Paths to vSphere Inventory Objects Define a PowerShell function that uses vSphere PowerCLI to return the full path to a vSphere inventory object. For a function that you can use to determine datastore paths, see “Determining Paths to vSphere Datastore Objects” on page 49. # VVGetInventoryPath # Parameters # $InvObject Inventory object in vSphere PowerCLI.
View Integration $dsType = $Datastore.GetType().Name $rpType = $ResourcePool.GetType().Name if(-not ($dsType.Contains("Datastore")) ){ Write-Error "The Datastore provided is not a Datastore object." break } if(-not ($rpType.Contains("ResourcePool")) ){ Write-Error "The Resource Pool provided is not a ResourcePool object." break } $ClusterPath = VVGetPath(Get-Inventory -Id $ResourcePool.ParentId) $path = $ClusterPath + "/" + $Datastore.
Chapter 3 Using View PowerCLI # RemoveDatastoreFromLinkedClonePool # Parameters # $Pool Pool ID of pool to be updated. # $Datastore Full path to datastore to be removed. function RemoveDatastoreFromLinkedClonePool { param ($Pool, $Datastore) $PoolSettings = (Get-Pool -pool_id $Pool) $currentdatastores = $PoolSettings.datastoreSpecs $datastores = "" foreach ($spec in $currentdatastores.split(";")){ $path = $spec.split("]")[1] $pathToRemove = $Datastore.
View Integration “Disable Automatic Network Label Assigments” on page 58 Obtain NIC and Network Label Information in a Configuration File Before you can assign multiple network labels to a pool, you must obtain information about the NICs configured on the template or parent virtual machine and the available network labels configured on the ESXi hosts in the cluster on which the desktop pool will be deployed. This information is saved in a configuration file that you use when you create the pool.
Chapter 3 Using View PowerCLI The maxvm parameter defines the maximum number of IP assignments that can be made to virtual machines from the network label. The value of the maxvm parameter is generated by the -maxVMsPerNetworkLabel parameter in the Export Network Label cmdlet. You can manually edit this value in the configuration file. If the parent virtual machine or template has two NICs, each network label discovered by the Export Network Label cmdlet is associated with both NICs.
View Integration ####nic1.network10.maxvm=244 ####nic2.network01.maxvm=244 ####nic2.network02.maxvm=244 ####nic2.network03.maxvm=244 ####nic2.network04.maxvm=244 ####nic2.network05.maxvm=244 ####nic2.network06.maxvm=244 ####nic2.network07.maxvm=244 ####nic2.network08.maxvm=244 ####nic2.network09.maxvm=244 ####nic2.network10.
Chapter 3 Using View PowerCLI ####nic2.network07.maxvm=244 nic2.network08.maxvm=244 nic2.network09.maxvm=244 ####nic2.network10.maxvm=244 Deploy a Desktop Pool with Network Label Assignments To create an automated desktop pool that can use multiple network labels, use the Add-AutomaticLinkedClonePool cmdlet for linked clone pools or the Add-AutomaticPool cmdlet for full clone pools.
View Integration If both the original linked-clone desktop and the new base image have one NIC configured with a distributed virtual network switch, the network label and MAC address are preserved. If the original linked-clone desktop has one NIC configured with a standard network switch and the new base image has one NIC configured with a distributed virtual network switch, the network label is not preserved. The MAC address is preserved.
Chapter 3 Using View PowerCLI NOTE The netLabelAutoAssigns output displays the network label assignments that View Connection Server reserves for the virtual machine. To see the network labels that are actually assigned to the virtual machine in vCenter Server, use the -getNetworkLabel parameter with the Get-DesktopVM cmdlet. See “Displaying Network Label Assignments Made for a Virtual Machine in vCenter Server” on page 57.
View Integration machine_id user_sid user_displayname isInPool pool_id isLinkedClone composerTask netLabelAutoAssigns : : : : : : : : be14deda-ec1b-4dd1-834a-915fcc7d51a0 true pool2 true {Network adapter 1=desktop-auto01-230} ... Disable Automatic Network Label Assigments To disable network label assignments on an existing pool that uses automatic assigments 1 Open the network label configuration file and set the enabled flag to enabled=false. 2 Save the file.
4 Customizing LDAP Data 4 You can use VMware and Microsoft command tools to export and import LDAP configuration data in LDAP Data Interchange Format (LDIF) files from and into View. These commands are intended for use by advanced administrators who want to use scripts to update configuration data without using View Administrator. If you want to create scripts to update the View configuration, VMware recommends that you use View PowerCLI rather than LDAP commands.
View Integration Export LDAP Configuration Data You can export configuration data from a standard or replica View Connection Server instance to an LDIF file by running the vdmexport command-line utility. By default, the vdmexport command-line utility is installed in the C:\Program Files\VMware\VMware View\Server\tools\bin directory. In View 3.
Chapter 4 Customizing LDAP Data The following extract from an LDIF file shows sample entries for a desktop pool named Pool1, which contains two virtual desktops named VM1 and VM2. The desktop pool entry is paired with the Desktop Application entry, which is also named Pool1.
View Integration pae-Disabled: 0 # # Further Virtual Desktop VM entries as required # # # VM Pool entry Pool1 # DN: CN=Pool1,OU=Server Groups,DC=vdi,DC=vmware,DC=int changetype: add objectClass: top objectClass: pae-ServerPool cn: Pool1 pae-VCDN: CN=b180b93b-2dd3-4b58-8a81-b8534a4b7565,OU=VirtualCenter,OU=Properties,DC=vdi, DC=vmware,DC=int pae-MemberDN: CN=vm1,OU=Servers,DC=vdi,DC=vmware,DC=int pae-MemberDN: CN=vm2,OU=Servers,DC=vdi,DC=vmware,DC=int pae-VmPowerPolicy: remainon pae-VmProvEnabled: 1 pae-VmP
Chapter 4 Customizing LDAP Data Table 4-1 lists the attributes that are important when you modify a desktop pool definition. Table 4-1. Important Attributes for Defining a Desktop Pool Entry Attribute Description Virtual Desktop VM cn Specifies the common name of an entry. If you require names to be generated automatically, specify globally unique identifier (GUID) strings. You can use any reliable GUID generator, such as the mechanism provided by .NET (for example, by calling System.Guid.NewGuid().
View Integration Import LDAP Configuration Data Using the LDIFDE Command You can import configuration data from an LDIF file into a standard or replica View Connection Server by running the Microsoft LDIFDE command. In View 4.5 and later releases, you should use the vdmimport command to import configuration data. The vdmimport command does not display the large number of error messages that are produced by running the LDIFDE command. See “Import LDAP Configuration Data” on page 63.
5 Integrating with SCOM 5 You can use Microsoft System Center Operations Manager (SCOM) to monitor the state of View components, including View Connection Server instances and security servers and View services running on these hosts.
View Integration VMware.View.Library.mp contains class and relationship definitions for the managed objects in View. See “Class and Relationship Definitions” on page 71. VMware.View.Image.Library.mp contains the graphics that represent the classes that are defined in VMware.View.Library.mp. Name a View Connection Server Group You can assign a name to a group of one or more View Connection Server hosts and security servers.
Chapter 5 Integrating with SCOM VMware.View.Cluster VMware.View.Cluster.Node.Item VMware.View.ConnectionServerRole.Item VMware.View.Component.ConnectionServer.Item VMware.View.Component.Framework.Item VMware.View.Component.Web.Item VMware.View.Component.Directory.Item VMware.View.Component.SecureGateway.Item VMware.View.Component.MessageBus.Item The agent discovers the following managed objects for a Security Server. VMware.View.Cluster VMware.View.Cluster.Node.
View Integration Display Managed Objects You can display the View objects that SCOM manages, and the relationships between these objects. To display managed objects in View and their relationships In the Operations Manager console, go to Monitoring\VMware View, and select the required view. Views and Monitors The VMware.View.Monitoring MP contains the views and monitors that you can use with View in the Operations Manager console.
Chapter 5 Integrating with SCOM Table 5-2. View Service Component Monitors for a View Connection Server instance (Continued) Monitor Display Name Monitored Service SecureGatewayCheck Security Gateway Service Health VMware View Security Gateway Component WebServiceCheck Web Service Health VMware View Web Component DirectoryServiceCheck Directory Service Health VMwareVDMDS Table 5-3 shows the service component monitors that are provided for a security server. Table 5-3.
View Integration Enable a Proxy Agent on a Server You must enable the proxy agent on each View Connection Server host or security server that you want to monitor. To enable the proxy agent on a server 1 In the Operations Manager console, go to Administration\Agent Managed, select the server, and click Properties. 2 Under the Security tab, select the option Allow this agent to act as a proxy and discover managed objects on other computers. 3 Click OK.
Chapter 5 Integrating with SCOM 3 Right click on the Domain Connectivity Health entry for the Connection Server in the Health Explorer and select Monitor Properties. 4 Under the Overrides tab, click Override and select the option for all objects of the same class. 5 In the Override Properties window, select the Override check box for the DomainExcludeList parameter, enter the name of the excluded domain in the Override Setting field, and select the Enforced check box.
View Integration Table 5-6. View Library Base Classes (Continued) Class Name Description VMware.View.Component.Framework Represents the Framework component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component. VMware.View.Component.MessageBus Represents the Message Bus component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component. VMware.
Chapter 5 Integrating with SCOM Table 5-7. View Library Concrete Classes (Continued) Class Name Description VMware.View.Component.SecurityGateway.Item Represents version 5.1.x or a later release of the Security Gateway component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component.SecureGateway. VMware.View.Component.SecurityServer.Item Represents version 5.1.
View Integration 74 VMware, Inc.
6 Examining PCoIP Session Statistics 6 You can use Windows Management Instrumentation (WMI) to examine performance statistics for a PCoIP session by using any of the supported programming interfaces, including C#, C++, PowerShell, VBScript, VB .NET, and Windows Management Instrumentation Command-line (WMIC). You can also use the Microsoft WMI Code Creator tool to generate VBScript, C#, and VB .NET code that accesses the PCoIP performance counters.
View Integration General Session Statistics The WMI class name for PCoIP general session statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics. Table 6-1 shows the general statistics for a PCoIP session. Table 6-1. General Statistics WMI Property Name Description BytesReceived Total number of bytes of PCoIP data that have been received since the PCoIP session started. BytesSent Total number of bytes of PCoIP data that have been transmitted since the PCoIP session started.
Chapter 6 Examining PCoIP Session Statistics Table 6-2. Audio Statistics (Continued) WMI Property Name Description AudioTXBWkbitPersec Bandwidth for outgoing audio packets averaged over the sampling period, in seconds. AudioTXBWLimitkbitPersec Transmission bandwidth limit in kilobits per second for outgoing audio packets. The limit is defined by a GPO setting.
View Integration Network Statistics The WMI class name for PCoIP network statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics. Table 6-4 shows the network statistics for a PCoIP session. Table 6-4. Network Statistics WMI Property Name Description RoundTripLatencyms Round trip latency in milliseconds between the PCoIP server and the PCoIP client. RXBWkbitPersec Overall bandwidth for incoming PCoIP packets averaged over the sampling period, in seconds.
Chapter 6 Examining PCoIP Session Statistics Use this formula to prevent the packet loss percent from becoming greater than 100%. This calculation is required because PacketsLost and PacketsSent are asynchronous.. Do not use TXPacketLostPercent or TXPacketLostPercent_Base for the preceding calculation. USB Statistics The WMI class name for PCoIP USB statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionUSBStatistics. Table 6-5 shows the USB statistics for a PCoIP session. Table 6-5.
View Integration 80 VMware, Inc.
7 Dynamically Setting Desktop Policies with Start Session Scripts 7 When a user connects or reconnects to a View desktop, you might want to dynamically configure particular View desktop settings before the desktop session starts, according to information recieved from Horizon Client and View Connection Server. For example, you might want to set different policies for clipboard redirect, mapped drives, or other desktop features, depending on the location of the user’s client system.
View Integration Example Start Session Scripts Start session scripts cannot run interactively. A start session script runs in an environment created by View, and the script must obtain its input data from this environment. The input data is gathered from environment variables on the client computer. For a list of similar variables, see “Client System Information Sent to View Desktops” in the Setting Up Desktop and Application Pools in View document.
Chapter 7 Dynamically Setting Desktop Policies with Start Session Scripts Enable the VMware View Script Host Service You must configure the VMware View Script Host service to be enabled on each View desktop virtual machine where you want View to run the start session script. By default, the VMware View Script Host service is disabled. To configure the VMware View Script Host service 1 Start the Windows Services tool by entering services.msc at the command prompt.
View Integration 6 In Value data, enter the command line that invokes the start session script and click OK. Specify the full path of the start session script and any files that it requires. 7 Navigate to HKLM\SOFTWARE\VMware, Inc.\VMware VDM\Agent\Configuration. If a Configuration key does not exist, right-click Agent, select New > Key, and create the key. 8 In the navigation area, right-click Configuration, select New > DWord (32 bit) Value, and type RunScriptsOnStartSession.
Index A Acknowledged column 12 Active Alerts view 68 Add-AutomaticLinkedClonePool cmdlet 34 Add-AutomaticPool cmdlet 34 Add-ManualPool cmdlet 34 Add-ManualUnmanagedPool cmdlet 34 Add-PoolEntitlement cmdlet 34 Add-TerminalServerPool cmdlet 35 Add-ViewVC cmdlet 35 ADMIN 23 ADMIN_ADD_DESKTOP_ENTITLEMENT 19 ADMIN_ADD_LICENSE 19 ADMIN_ADD_LICENSE_FAILED 19 ADMIN_ADD_PM 19 ADMIN_ADD_PM_FAILED 19 ADMIN_ADD_THINAPP_ENTITLEMENT 20 ADMIN_ADD_THINAPP_ENTITLEMENT_ FAILED 20 ADMIN_ADD_THINAPP_POOL_ ENTITLEMENT 20 ADMIN
View Integration ADMIN_REMOVE_DESKTOP_FAILED 22 ADMIN_REMOVE_DESKTOP_SUCCEEDED 22 ADMIN_REMOVE_THINAPP_ENTITLEMENT 22 ADMIN_REMOVE_THINAPP_ENTITLEMENT_ FAILED 22 ADMIN_REMOVE_THINAPP_POOL_ ENTITLEMENT 22 ADMIN_RESET_THINAPP_STATE 22 ADMIN_RESET_THINAPP_STATE_FAILED 22 ADMIN_ROLE_ADD_FAILED 23 ADMIN_ROLE_ADDED 23 ADMIN_ROLE_PRIV_UPDATE_FAILED 23 ADMIN_ROLE_PRIV_UPDATED 23 ADMIN_ROLE_REMOVE_FAILED 23 ADMIN_ROLE_REMOVED 23 ADMIN_ROLE_RENAME_FAILED 23 ADMIN_ROLE_RENAMED 23 ADMIN_SECURITY_SERVER_ADD_FAILED 23 A
Index alerts closing 71 displaying information about 70 excluding domains from SCOM monitoring 70 AttrChangeType attribute 26 attributes, event database 26 AttrName attribute 26 AttrValue attribute 26 AudioBytesReceived statistic 76 AudioBytesSent statistic 76 AudioTXBWLimitkbitPersec statistic 77 B BooleanValue column 13 BROKER_AGENT_OFFLINE 13 BROKER_AGENT_ONLINE 13 BROKER_DAILY_MAX_DESKTOP_SESSIONS 14 BROKER_DESKTOP_LAUNCH_FAILURE 14 BROKER_DESKTOP_NOT_ENTITLED 14 BROKER_DESKTOP_PROTOCOL_NOT_ SUPPORTED
View Integration BROKER_SVI_ARCHIVE_UDD_FAILED 17 BROKER_SVI_ARCHIVE_UDD_SUCCEEDED 17 BROKER_SVI_ATTACH_UDD_FAILED 17 BROKER_SVI_ATTACH_UDD_SUCCEEDED 17 BROKER_SVI_DETACH_UDD_FAILED 17 BROKER_SVI_DETACH_UDD_SUCCEEDED 17 BROKER_USER_AUTHFAILED_ACCOUNT_ DISABLED 17 BROKER_USER_AUTHFAILED_ACCOUNT_ EXPIRED 17 BROKER_USER_AUTHFAILED_ACCOUNT_ LOCKED_OUT 17 BROKER_USER_AUTHFAILED_ACCOUNT_ RESTRICTION 18 BROKER_USER_AUTHFAILED_BAD_USER_ PASSWORD 18 BROKER_USER_AUTHFAILED_GENERAL 18 BROKER_USER_AUTHFAILED_NO_LOGON_
Index displaying discovered objects for SCOM 67 information about alerts in SCOM 70 managed objects for SCOM 68 View performance data in SCOM 70 displaying help for View PowerCLI cmdlets 32 displaying information about 42 domain connectivity monitor 69 domains displaying information about users and groups 44 excluding from SCOM monitoring 70 E enabling proxy agent for SCOM 70 EntitlementDisplay attribute 27 entitlements adding 44 displaying information about 44 removing 44 environment variables, start ses
View Integration LDAP configuration data 59 exporting using vdmexport 60 importing using LDIFDE 64 importing using vdmimport 63 modifying 60 LDAP Data Interchange Format (LDIF) 59 -ldapBackupFrequency parameter 39 LDIF files 59 LDIFDE command 64 licenses adding 46 displaying 46 linked-clone desktop pools creating 43 rebalancing 43 recomposing 43 refreshing 43 updating 43 listing, View PowerCLI cmdlets 32 loading, View PowerCLI cmdlets 32 logout delay period, setting global value for VMware View 46 logout w
Index displaying View performance data 70 enabling a proxy agent 70 excluding domains from monitoring 70 integrating with VMware View 65 performance monitor 68 restarting View component services 70 service component monitors 68 SCOM views and monitors 68 Secure Gateway Role Performance Data view 68 SecureGatewayCheck monitor 69 SecureGatewayServerServiceCheck monitor 69 SecurityServerId attribute 27 Send-LinkedCloneRebalance cmdlet 34 Send-LinkedCloneRecompose cmdlet 34 Send-LinkedCloneRefresh cmdlet 34 Se
View Integration V VCAddress attribute 27 vCenter pathnames,escape sequences 33 vCenter Server 9 vCenter server connectivity monitor 69 vCenter servers adding to View Connection Server 42 changing ramp factor for 42 displaying for View Connection Server 42 displaying information about virtual machines configured on 45 removing from View Connection Server 42 vdmexport command 60 vdmimport command 63 View 9 View Administrator 9 View Administrator events 19 View Agent 9 View Agent events 19 View Composer 9 Vi
Index WMI namespace for PCoIP statistics 75 VMware, Inc.
View Integration 94 VMware, Inc.