VMware Horizon View Integration View 5.2 View Manager 5.2 View Composer 5.2 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.
VMware Horizon 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 © 2013 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws.
Contents VMware Horizon View Integration 7 1 Introduction 9 VMware Horizon View Components 9 Integration Interfaces to VMware Horizon 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 View Transfer Server Events 27 Event Message Attributes 27 Sample Database Queries and Views 29 3 Using View PowerCLI 31 Introduction to View PowerCLI 31 Start the PowerShell Console with View PowerCLI Loaded
VMware Horizon View Integration Managing Local Desktops 45 Managing Remote Sessions 45 Managing Virtual Machines 45 Displaying Information About Physical Computers 46 Updating the Ownership of Machines 46 Displaying Information About Events 46 Managing the Global Configuration of View 46 Managing View Licenses 47 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 vS
Contents Examples of Using PowerShell to Examine PCoIP Statistics 79 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.
VMware Horizon View Integration 6 VMware, Inc.
VMware Horizon View Integration This guide describes how to integrate VMware Horizon 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 Manager.
VMware Horizon View Integration 8 VMware, Inc.
1 Introduction 1 With VMware Horizon View™, system administrators can provision desktops and control user access to these desktops. Client software connects users to virtual desktops running on VMware vSphere™, or to physical systems running within your network environment.
VMware Horizon View Integration Integration Interfaces to VMware Horizon 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 VMware Horizon 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 session. Administrator actions such as adding entitlements and creating desktop pools. Alerts that report system failures and errors. Statistical sampling such as recording the maximum number of users over a 24-hour period.
VMware Horizon 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 VMware Horizon 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.
VMware Horizon View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4.
VMware Horizon View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4.
VMware Horizon View Integration Table 2-4.
Chapter 2 Integrating with the Event Database View Agent Events Table 2-5 shows the event types for View Agent. Table 2-5.
VMware Horizon View Integration Table 2-6. View Administrator Events (Continued) 20 EventType Severity ModuleAndEventText ADMIN_ADMINSTRATOR_REMOVED AUDIT_SUCCESS ${UserDisplayName} removed all permissions for Administrator ${AdminPermissionEntity} ADMIN_CONFIGURE_TRANSFER_SERVER_ LOCAL_REPO INFO Configure a local Transfer Server Repository. Path ${PathName} ADMIN_CONFIGURE_TRANSFER_SERVER_ NETWORK_REPO INFO Configure a network Transfer Server Repository.
Chapter 2 Integrating with the Event Database Table 2-6.
VMware Horizon View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
VMware Horizon View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
VMware Horizon View Integration Table 2-6.
Chapter 2 Integrating with the Event Database View Transfer Server Events Table 2-7 shows the event types for View Transfer Server. Table 2-7.
VMware Horizon View Integration Table 2-8. Attributes Used with ModuleAndEventText Messages (Continued) 28 Attribute Name Description 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. PackageName Name of a View Transfer Server package. PathName Path of a View Transfer Server repository.
Chapter 2 Integrating with the Event Database 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.
VMware Horizon View Integration 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.
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.
VMware Horizon 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.
VMware Horizon 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 Send-SessionDisconnect Disconnects an active remote session. Send-SessionLogoff Logs out an active remote session. Get-TerminalServer Returns information about registered Terminal Servers. Add-TerminalServerPool Adds a desktop pool from Terminal Server sources. Update-TerminalServerPool Updates a desktop pool that has Terminal Server sources. Get-User Returns information about users.
VMware Horizon 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 VMware Horizon View Administration document. Table 3-4.
Chapter 3 Using View PowerCLI Table 3-4.
VMware Horizon View Integration Table 3-4.
Chapter 3 Using View PowerCLI Flash Quality Settings Table 3-7 shows the settings that you can use with the -flashQuality parameter to specify a maximum allowable quality for Adobe Flash content. This value overrides the setting on a Web page. If the Flash quality for a Web page is higher than the maximum value allowed, the client reduces the quality to the specified maximum. Lowering the quality of Flash content causes it to use less bandwidth. Table 3-7.
VMware Horizon View Integration Pool Type Settings Table 3-10 shows the settings that you can use with the -poolType parameter to specify the type of a desktop pool. Table 3-10. Pool Type Settings Pool Type Description IndividualUnmanaged Specifies a pool containing an individual unmanaged desktop. IndividualVC Specifies a pool containing an individual desktop that is managed and configured by a vCenter Server.
Chapter 3 Using View PowerCLI Refresh Policy Settings Table 3-13 shows the settings that you can use with the -refreshPolicyType parameter to specify a refresh policy for the OS disks of automatically provisioned dedicated and linked-clone desktop pools. Table 3-12. Refresh Policy Settings Refresh Policy Description Always Specifies that an OS disk is always refreshed when the user logs out. Conditional Specifies that an OS disk is refreshed when the user logs out if certain conditions are met.
VMware Horizon View Integration Examples of Using View PowerCLI Cmdlets The View PowerCLI cmdlets allow you to perform View operations from the command line or from scripts instead of using View Administrator. The following sections contain examples that you can adapt and apply to your own systems. Displaying Information About a View Connection Server Instance Display the configuration settings of a View Connection Server instance.
Chapter 3 Using View PowerCLI Return information about all individual unmanaged desktop pools. Get-Pool -poolType IndividualUnmanaged Remove the desktop pool dtpool-10. Remove-Pool -pool_id dtpool-10 Remove the desktop pool dtpool-12, terminating any active session, but without deleting the image from disk. Remove-Pool -pool_id dtpool-12 -TerminateSession $true -DeleteFromDisk $false Remove a desktop pool specified by its display name, and delete its image from disk.
VMware Horizon View Integration Get-DesktopVM -pool_id lcdpool_2 | Send-LinkedCloneRebalance -schedule 2011-05-10:01:00:00 -forceLogoff $false -stopOnError $true Refresh the operating system disk of each linked-clone desktop by restoring it to its original state and size. Get-DesktopVM -pool_id lcdpool_2 | Send-LinkedCloneRefresh -schedule "May 12 2011 01:15" -forceLogoff $true -stopOnError $true Recompose all linked-clone desktops from a snapshot of their parent virtual machine.
Chapter 3 Using View PowerCLI Managing Desktop Entitlements Add an entitlement for the user fred in the domain mydom to use desktop pool dtop-12. Get-User -name "mydom\fred" | Add-PoolEntitlement -pool_id dtop-12 Add an entitlement to all desktop pools for the user usr1. Get-Pool | Add-PoolEntitlement -sid (Get-User -name "usr1").sid Return information about all entitlements to desktop pools. Get-PoolEntitlement Return information about the users who are entitled to use desktop pool dtop-1.
VMware Horizon View Integration Return information about the virtual machines that are managed by the same vCenter Server that provisions the desktop pool dtpool-1. Get-ViewVC -pool_id dtpool-1 | Get-DesktopVM Return information about all virtual machines that are managed by the vCenter Server that is configured on the server vc01.mydom.int. Get-ViewVC -serverName vc01.mydom.int | Get-DesktopVM Return a list of active persistent user data disks for the virtual machine vm01.
Chapter 3 Using View PowerCLI Set the session timeout to 30 minutes. Update-GlobalSetting -SessionTimeout 1800 NOTE The -SessionTimeout value is measured in seconds. In View Administrator, the Session timeout value is measured in minutes. If View PowerCLI generates a value that is less than 60 seconds, View Administrator rounds down, resulting in a value of 0. To set a session timeout in View PowerCLI, specify a -SessionTimeout value of 60 (one minute) or greater.
VMware Horizon View Integration $errCountAfter = $error.Count $started = $true if($errCountAfter -gt $errCountBefore){ $err = $error[0].ToString() if($err.Contains("NoQueueHandler")){ $started = $false Start-Sleep -s 1 } else { if($ClearError){ $error.Clear() } Write-Error $err break } } if($ClearError){ $error.Clear() } } } else { Write-Error "The View Connection Server services could not be found.
Chapter 3 Using View PowerCLI $localcount = ([Object[]]($locals)).Count } # Calculate the total number of sessions $totalcount = $localcount + $remotecount # Determine the maximum number of desktops configured for a pool. $maxdesktops = 0 if($Pool.deliveryModel -eq "Provisioned"){ $maxdesktops = $Pool.maximumCount } else { $maxdesktops = $Pool.machineDNs.split(";").Count } # Output the Write-Output Write-Output Write-Output Write-Output Write-Output usage statistics for a pool. ("==== " + $Pool.
VMware Horizon View Integration Write-Error ("The provided object is not an expected vSphere object type. Object type is " + $objectType) break } $path = "" # Recursively move up through the inventory hierarchy by parent or folder. if($InvObject.ParentId){ $path = VVGetPath(Get-Inventory -Id $InvObject.ParentId) } elseif ($InvObject.FolderId){ $path = VVGetPath(Get-Folder -Id $InvObject.FolderId) } # Build the path, omitting the "Datacenters" folder at the root. if(-not $InvObject.
Chapter 3 Using View PowerCLI } Define a PowerShell function to remove a datastore from an automatic pool. # RemoveDatastoreFromAutomaticPool # Parameters # $Pool Pool ID of pool to be updated. # $Datastore Full path to datastore to be removed. function RemoveDatastoreFromAutomaticPool { param ($Pool, $Datastore) $PoolSettings = (Get-Pool -pool_id $Pool) $currentdatastores = $PoolSettings.datastorePaths $datastores = "" foreach ($path in $currentdatastores.
VMware Horizon View Integration By default, the virtual machines in a desktop pool inherit the network interface card (NIC), and its associated network label, that are on the parent virtual machine or template. (Some parent virtual machines or templates might have multiple NICs with their associated network labels.) Typically, the subnet mask of a VLAN defined by a network label has a limited range of available IP addresses.
Chapter 3 Using View PowerCLI Export-NetworkLabelSpecForLinkedClone -vc_id 1a2b3c4d-5e6f -clusterPath "/myresourcepool/host/Cluster1/" -parentVMPath "/myresourcepool/vm/Win7-Parent" -parentSnapshotPath "/snapshot1" -maxVMsPerNetworkLabel 244 -networkLabelConfigFile "C:/label.txt" When you set the -maxVMsPerNetworkLabel parameter, allow a certain number of virtual machines for overhead.
VMware Horizon View Integration network05=dv_vMotion network06=desktop-auto01-230 network07=desktop-auto02-240 network08=desktop-auto03-250 network09=desktop-auto04-260 network10=desktop-auto05-270 #Network Label Attribute Definition #Expected format: #..maxvm= #WARNING! Multiple NICs:(nic1,nic2) detected against network01, #total port count against network01: 488. #IP address might be over-subscribed.
Chapter 3 Using View PowerCLI NOTE As a best practice, do not assign a network label to more than one desktop pool. Be aware that maximum network label counts are honored only on a per-NIC, per-pool basis. For example, if you configure NIC1 on pool1 to use network06 with a maxvm of 244, and you configure NIC1 on pool2 to use the same network label, network06, with a maxvm of 244, network06 must have an actual assignable IP address space of at least 488 addresses.
VMware Horizon View Integration erate,OS,data]/resourcepool/host/Cluster1/Desktop_FC_9;[Moderate,OS,data] /resourcepool/host/Cluster1/Desktop_FC_8;[Moderate,OS,data]/resourcepool/ host/Cluster1/Desktop_FC_7” -Composer_ad_id 1a2b3c4d-5d6e-7f-1234-1234abcd -UseUserDataDisk $false -UseTempDisk $false -MinimumCount 2000 -MaximumCount 2000 -HeadroomCount 1500 -PowerPolicy AlwaysOn -SuspendProvisioningOnError $false -NetworkLabelConfigFile "C:/label.
Chapter 3 Using View PowerCLI usage - Number of virtual machines currently assigned to the network label. When the usage value equals the max value, View stops assigning that network label and starts making assignments from the next available label. The following example displays network label assignments for the pool Pool2. > get-pool -pool_id Pool2 ...
VMware Horizon View Integration Displaying Network Label Assignments Made for a Virtual Machine in vCenter Server The netLabelAutoAssigns output displays the network label assignments that View Connection Server reserves for the virtual machine. Additional network label assignments to other virtual machines can be made in vCenter Server that are outside the control of View.
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.
VMware Horizon 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 Manager 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.
VMware Horizon 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-VmProvEna
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().
VMware Horizon 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.
VMware Horizon 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.
VMware Horizon 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.
VMware Horizon 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.
VMware Horizon 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.
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.
VMware Horizon 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.
VMware Horizon 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.
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.
VMware Horizon 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.
VMware Horizon 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 View 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.
VMware Horizon View Integration Example Start Session Scripts Start session scripts cannot run interactively. A start session script runs in an environment created by Horizon 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 VMware Horizon View Administration 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 Horizon 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.
VMware Horizon 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 19 ADMIN_ADD_THINAPP_ENTITLEMENT_ FAILED 19 ADMIN_ADD_THINAPP_POOL_ ENTITLEMENT 19 ADMIN
VMware Horizon View Integration ADMIN_LOCALMODE_UNLOCK_MACHINE_ FAILED 22 ADMIN_PERFMON_CONFIGURATION_UPDATE_ FAILED 22 ADMIN_PERFMON_CONFIGURATION_ UPDATED 22 ADMIN_PERMISSION_ADD_FAILED 22 ADMIN_PERMISSION_ADDED 22 ADMIN_PERMISSION_REMOVE_FAILED 22 ADMIN_PERMISSION_REMOVED 22 ADMIN_POOL_POLICY_UPDATE_FAILED 22 ADMIN_POOL_POLICY_UPDATED 22 ADMIN_PUBLISH_PACKAGE 22 ADMIN_REMOVE_DESKTOP_ENTITLEMENT 22 ADMIN_REMOVE_DESKTOP_FAILED 22 ADMIN_REMOVE_DESKTOP_SUCCEEDED 22 ADMIN_REMOVE_THINAPP_ENTITLEMENT 22 ADMIN_
Index ADMIN_VC_EDITED 26 ADMIN_VC_LICINV_ALARM_DISABLED 26 ADMIN_VC_REMOVE_FAILED 26 ADMIN_VC_REMOVED 26 AdminFolderName attribute 27 AdminPermissionEntity attribute 27 AdminPrivilegeName attribute 27 AdminRoleName attribute 27 AdminRoleNewName attribute 27 AGENT_CONNECTED 19 AGENT_DISCONNECTED 19 AGENT_ENDED 19 AGENT_PENDING 19 AGENT_PENDING_EXPIRED 19 AGENT_RECONFIGURED 19 AGENT_RECONNECTED 19 AGENT_RESUME 19 AGENT_SHUTDOWN 19 AGENT_STARTUP 19 AGENT_SUSPEND 19 alerts closing 71 displaying information abo
VMware Horizon View Integration BROKER_PROVISIONING_ERROR_VM_ CLONING 16 BROKER_PROVISIONING_ERROR_VM_ CUSTOMIZATION_ERROR 16 BROKER_PROVISIONING_ERROR_VM_ CUSTOMIZATION_NETWORKING 16 BROKER_PROVISIONING_ERROR_VM_ CUSTOMIZATION_TIMEOUT 16 BROKER_PROVISIONING_SVI_ERROR_ COMPOSER_AGENT_INIT_FAILED 16 BROKER_PROVISIONING_SVI_ERROR_ RECONFIG_FAILED 16 BROKER_PROVISIONING_SVI_ERROR_REFIT_ FAILED 16 BROKER_PROVISIONING_SVI_ERROR_ REMOVING_VM 16 BROKER_PROVISIONING_VERIFICATION_ FAILED_USER_ASSIGNED 17 BROKER_PRO
Index deletion policy, setting default 38 desktop entitlements adding 45 displaying information about 45 removing 45 desktop pools 42 adding provisioned by terminal servers 44 creating 43 displaying information about virtual machines in 45 removing 43 resetting virtual machines in 46 resizing 48 setting type of 40 updating 43 updating provisioned by terminal servers 44 DesktopDisplayName attribute 27 DesktopId attribute 27 column 12 desktops creating manually provisioned 44 creating manually unmanaged 44 u
VMware Horizon View Integration Get-PoolEntitlement cmdlet 34 Get-ProfileDisk cmdlet 34 Get-RemoteSession cmdlet 34 Get-TerminalServer cmdlet 35 Get-User cmdlet 35 Get-ViewVC cmdlet 35 global configuration, displaying for VMware View 46 Group Node State view 68 Group State view 68 GroupId column 12 Groups view 68 groups, displaying information about 44 H help, displaying for View PowerCLI cmdlets 32 I ImagingActiveMinimumQuality statistic 77, 79 ImagingBytesReceived statistic 77 ImagingBytesSent statisti
Index pool type, setting default 40 -poolType parameter 40 power policy, setting default 40 -powerPolicy parameter 40 PowerShell cmdlets 31 PowerShell console, starting 32 prelogin message, setting global value for VMware View 47 primary key 12 ProtocolId attribute 28 proxy agent, enabling for SCOM 70 R ramp factor, changing for vCenter servers 42 rebalancing linked-clone desktop pools 43 recomposing linked-clone desktop pools 44 refresh policy, setting default 41 refreshing linked-clone desktop pools 44
VMware Horizon View Integration terminal servers adding desktop pools provisioned by 44 displaying information about 44 updating desktop pools provisioned by 44 The input object cannot be bound 33 ThinAppDisplayName attribute 28 ThinAppId attribute 28 column 12 ThinAppRepositoryName attribute 28 ThinAppRepositoryPath attribute 28 Time attribute 28 column 12 timeout, setting global value for VMware View 47 TimeValue column 13 TRANSFER_SERVER_PACKAGE_ DISPLACEMENT 27 TRANSFER_SERVER_PACKAGE_MISSING 27 TRANSF
Index View Transfer Server 9 views available with SCOM 68 displaying those available for reporting events 46 virtual machines displaying active data disks for 46 displaying information about 45 removing ownership of 46 resetting 46 updating ownership of 46 VMware View adding licenses 47 displaying configuration changes 46 displaying global configuration of 46 displaying licenses 47 displaying user events 46 event database 11, 81 integrating with SCOM 65 overview 9 setting global value of logout delay perio
VMware Horizon View Integration 94 VMware, Inc.