View 51 Integration
View 51 Integration
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.
EN-000734-00
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: [email protected]
Copyright 2011 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.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
VMware, Inc.
Contents
1 Introduction 7
VMware View Components 7 Integration Interfaces to VMware View 8
VMware, Inc.
Managing Local Desktops 42 Managing Remote Sessions 42 Managing Virtual Machines 42 Displaying Information About Physical Computers 43 Updating the Ownership of Machines 43 Displaying Information About Events 43 Managing the Global Configuration of VMware View 43 Managing View Licenses 44 Examples of Using View PowerCLI for Enhanced Functionality 44 Checking if a View Connection Server Instance Is Running 44 Resize Automatic and Linked-Clone Desktop Pools 45 Determining Paths to vSphere Inventory Objects 46 Determining Paths to vSphere Datastore Objects 47 Adding and Removing Datastores 47
69
Index 71
VMware, Inc.
This guide describes how to integrate VMware 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. The information in this manual is written for experienced Windows or Linux system administrators who are familiar with virtual machine technology and datacenter operations.
VMware, Inc.
VMware, Inc.
Introduction
With VMware 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. This chapter includes the following topics:
View Connection Server a software service that acts as a broker for client connections by authenticating and then directing incoming user requests to the appropriate virtual desktop, physical desktop, or terminal server. View Agent a software service that is installed on all guest virtual machines, physical systems, or terminal servers in order to allow them to be managed by VMware View. The agent provides features such as connection monitoring, Virtual Printing, USB support, and single sign-on. View Client a software application that communicates with View Connection Server to allow users to connect to their desktops. View Client with Local Mode a version of View Client that is extended to support the local desktop feature, which allows users to download virtual machines and use them on their local systems. View Administrator a Web application that allows View administrators to configure View Connection Server, deploy and manage desktops, control user authentication, initiate and examine system events, and carry out analytical activities. vCenter Server a server that acts as a central administrator for ESX/ESXi hosts that are connected on a network. A vCenter Server provides the central point for configuring, provisioning, and managing virtual machines in the datacenter. View Composer a software service that is installed on a vCenter server to allow VMware View to rapidly deploy multiple linked-clone desktops from a single centralized base image. View Transfer Server a software service that manages and streamlines data transfers between the datacenter and View desktops that are checked out for use on end users' local systems. View Transfer Server is required to support desktops that run View Client with Local Mode.
7
VMware, Inc.
Event database you can configure VMware 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. Lightweight Directory Access Protocol (LDAP) you can export and import LDAP configuration data from and into VMware View. You can create scripts that update this configuration data without accessing View Administrator directly. Microsoft System Center Operations Manager (SCOM) you can monitor the operations of View components from the SCOM console. Windows Management Instrumentation (WMI) you can examine performance statistics for a PCoIP session.
VMware, Inc.
You can configure VMware View to record events to a Microsoft SQL Server or Oracle database. VMware 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.
You can use business intelligence reporting engines such as Crystal Reports, IBM Cognos, MicroStrategy 9, and Oracle Enterprise Performance Management System to access and analyze the event database. This chapter includes the following topics:
Event Database Tables and Schemas on page 9 Connection Broker Events on page 11 View Agent Events on page 17 View Administrator Events on page 17 View Transfer Server Events on page 25 Event Message Attributes on page 25 Sample Database Queries and Views on page 27
The event database prepends the names of these tables with a prefix that you define when you set up the database. See the VMware View Installation document for more information. IMPORTANT VMware View does not restrict the growth of the event_historical and event_data_historical tables. You must implement a space management policy for these tables.
VMware, Inc.
VMware View records details about events to all the database tables. After a certain period of time has elapsed since writing an event record, VMware 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 View Installation document for more information. NOTE It is possible for events to be lost if you restart View Connection Server instances while the event database is not running. For a solution that avoids this problem see http://kb.vmware.com/kb/1021461. A unique primary key, EventID, identifies each event that VMware View records in the event and event_ historical tables. VMware View records data values for each event in the event_data and event_data_historical tables. You can obtain the complete set of information for an event by joining the event and event_data tables or the event_historical and event_data_historical tables on the EventID column. The EventType, Severity, and Time columns in the event and event_historical tables identify the type and severity of an event and the time at which it occurred. Table 2-2 shows the schema for the event and event_historical tables. Table 2-2. Schema for the event and event_historical Tables
Column Name Acknowledged Oracle Data Type SMALLINT SQLServer Data Type tinyint Description Whether VMware View acknowledged the event. 0 = false 1 = true DesktopId EventID EventType NVARCHAR2(512) INTEGER NVARCHAR2(512) nvarchar(512) int nvarchar(512) Desktop ID of the associated pool. Unique primary key for the event. Event name that corresponds to an item in the message catalog. For example, BROKER_USERLOGGEDIN. Full path of the folder that contains the associated object. SID of the associated group in Active Directory. ID of the LUN that stores the associated object. ID of the associated physical or virtual machine. View component that raised the event. For example, Admin, Broker, Tunnel, Framework, Client, or Agent. Event message with values substituted for attribute parameters. Name of the virtual device node. Severity level. For example, INFO, WARNING, ERROR, AUDIT_SUCCESS, AUDIT_FAIL. Identifier for the source of the event. ID of the associated ThinApp object. Time at which the event occurred, measured from the epoch (January 1, 1970). ID of the user disk. SID of the associated user in Active Directory.
10
VMware, Inc.
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 BooleanValue Oracle Data Type SMALLINT SQLServer Data Type tinyint Description Value of a Boolean attribute. 0 = false 1 = true EventID IntValue Name StrValue INTEGER INTEGER NVARCHAR2(512) NVARCHAR2(512) int int nvarchar(512) nvarchar(512) Unique primary key for the event. Value of an integer attribute. Attribute name (for example, UserDisplayName). Value of a string attribute. For other types of attributes, this column contains an interpretation of the data type as a string. Value of a date and time attribute. The data type of the attribute. 0 = StrValue 1 = IntValue 2 = TimeValue 3 = BooleanValue
TimeValue Type
TIMESTAMP SMALLINT
datetime tinyint
BROKER_AGENT_ONLINE
WARNING
BROKER_DAILY_MAX_USERS
INFO
BROKER_DESKTOP_LAUNCH_FAILURE
ERROR
BROKER_DESKTOP_NOT_ENTITLED
AUDIT_FAIL
VMware, Inc.
11
AUDIT_FAIL
BROKER_LOCALMODE_OPERATION_ FAILURE
ERROR
AUDIT_SUCCESS
INFO
AUDIT_FAIL
AUDIT_FAIL
BROKER_MACHINE_CHECKEDOUT
AUDIT_FAIL
INFO
WARNING
INFO AUDIT_FAIL
BROKER_MACHINE_PROTOCOL_ UNAVAILABLE
AUDIT_FAIL
12
VMware, Inc.
BROKER_POOL_COMANAGER_REQUIRED
AUDIT_FAIL
BROKER_POOL_EMPTY
AUDIT_FAIL
BROKER_POOL_NO_MACHINE_ASSIGNED
AUDIT_FAIL
BROKER_POOL_NO_RESPONSES
AUDIT_FAIL
BROKER_POOL_OVERLOADED
AUDIT_FAIL
BROKER_POOL_POLICY_VIOLATION
AUDIT_FAIL
BROKER_POOL_PROTOCOL_NOT_ SUPPORTED
AUDIT_FAIL
BROKER_POOL_PROTOCOL_UNAVAILABLE
AUDIT_FAIL
BROKER_POOL_TUNNEL_NOT_SUPPORTED
AUDIT_FAIL
INFO
ERROR
INFO INFO
VMware, Inc.
13
INFO
ERROR
INFO ERROR
INFO
ERROR
ERROR
ERROR
ERROR
BROKER_PROVISIONING_ERROR_VM_ CUSTOMIZATION_TIMEOUT BROKER_PROVISIONING_SVI_ERROR_ COMPOSER_AGENT_INIT_FAILED BROKER_PROVISIONING_SVI_ERROR_ RECONFIG_FAILED BROKER_PROVISIONING_SVI_ERROR_REFIT_ FAILED BROKER_PROVISIONING_SVI_ERROR_ REMOVING_VM
ERROR
ERROR
ERROR
ERROR
ERROR
14
VMware, Inc.
WARNING
BROKER_PROVISIONING_VERIFICATION_ FAILED_VMNAME_IN_USE
WARNING
BROKER_SECURITY_SERVER_ADD_FAILED BROKER_SECURITY_SERVER_ADD_FAILED_ PASSWORD_EXPIRED BROKER_SECURITY_SERVER_ADD_FAILED_ PASSWORD_INCORRECT BROKER_SECURITY_SERVER_ADD_FAILED_ PASSWORD_NOT_SET BROKER_SECURITY_SERVER_ADDED BROKER_SVI_ARCHIVE_UDD_FAILED BROKER_SVI_ARCHIVE_UDD_SUCCEEDED BROKER_SVI_ATTACH_UDD_FAILED BROKER_SVI_ATTACH_UDD_SUCCEEDED BROKER_SVI_DETACH_UDD_FAILED BROKER_SVI_DETACH_UDD_SUCCEEDED BROKER_USER_AUTHFAILED_ACCOUNT_ DISABLED BROKER_USER_AUTHFAILED_ACCOUNT_ EXPIRED BROKER_USER_AUTHFAILED_ACCOUNT_ LOCKED_OUT BROKER_USER_AUTHFAILED_ACCOUNT_ RESTRICTION BROKER_USER_AUTHFAILED_BAD_USER_ PASSWORD BROKER_USER_AUTHFAILED_GENERAL
AUDIT_FAIL AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
VMware, Inc.
15
AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL AUDIT_FAIL
BROKER_USER_NOT_ENTITLED
AUDIT_FAIL
BROKER_USERCHANGEDPASSWORD BROKER_USERLOGGEDIN BROKER_USERLOGGEDOUT BROKER_VC_DISABLED BROKER_VC_ENABLED BROKER_VC_STATUS_CHANGED_CANNOT_ LOGIN BROKER_VC_STATUS_CHANGED_DOWN BROKER_VC_STATUS_CHANGED_INVALID_ CREDENTIALS BROKER_VC_STATUS_CHANGED_NOT_YET_ CONNECTED BROKER_VC_STATUS_CHANGED_ RECONNECTING BROKER_VC_STATUS_CHANGED_UNKNOWN BROKER_VC_STATUS_CHANGED_UP
AUDIT_SUCCESS AUDIT_SUCCESS AUDIT_SUCCESS INFO INFO WARNING INFO WARNING INFO INFO WARNING INFO
16
VMware, Inc.
ADMIN_ADD_PM_FAILED
AUDIT_FAIL
ADMIN_ADD_THINAPP_ENTITLEMENT
AUDIT_SUCCESS
AUDIT_FAIL AUDIT_SUCCESS
AUDIT_FAIL
VMware, Inc.
17
INFO INFO
AUDIT_FAIL AUDIT_SUCCESS
ADMIN_CONNECTION_SERVER_BACKUP_ FAILED ADMIN_CONNECTION_SERVER_BACKUP_ INITIATED ADMIN_CONNECTION_SERVER_DISABLE_ FAILED ADMIN_CONNECTION_SERVER_DISABLED ADMIN_CONNECTION_SERVER_ENABLE_ FAILED ADMIN_CONNECTION_SERVER_ENABLED ADMIN_DATABASE_CONFIGURATION_ADD_ FAILED ADMIN_DATABASE_CONFIGURATION_ ADDED ADMIN_DATABASE_CONFIGURATION_ DELETE_FAILED ADMIN_DATABASE_CONFIGURATION_ DELETE_FAILED ADMIN_DATABASE_CONFIGURATION_ UPDATE_FAILED ADMIN_DATABASE_CONFIGURATION_ UPDATED ADMIN_DEFAULT_DESKTOPPOOL_ASSIGN
AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_SUCCESS
AUDIT_FAIL
AUDIT_SUCCESS
AUDIT_FAIL
INFO
18
VMware, Inc.
ADMIN_DESKTOP_MAINTENANCE_MODE_ UPDATE_FAILED ADMIN_DESKTOP_MAINTENANCE_MODE_ UPDATED ADMIN_DESKTOP_UNASSIGN ADMIN_DESKTOP_UNASSIGN_FAILED ADMIN_ENABLE_DESKTOP_FAILED ADMIN_ENABLE_DESKTOP_SUCCEEDED ADMIN_ENABLED_DESKTOP_PROVISION_ FAILED ADMIN_ENABLED_DESKTOP_PROVISION_ SUCCEEDED ADMIN_EVENT_CONFIGURATION_UPDATE_ FAILED ADMIN_EVENT_CONFIGURATION_UPDATED ADMIN_FOLDER_ADD_FAILED ADMIN_FOLDER_ADDED ADMIN_FOLDER_CHANGE_FAILED
AUDIT_FAIL
AUDIT_SUCCESS
ADMIN_FOLDER_CHANGED
AUDIT_SUCCESS
VMware, Inc.
19
ADMIN_LOCALMODE_INITIATE_ REPLICATION ADMIN_LOCALMODE_LOCK_MACHINE ADMIN_LOCALMODE_LOCK_MACHINE_ FAILED ADMIN_LOCALMODE_ROLLBACK_DESKTOP ADMIN_LOCALMODE_UNLOCK_MACHINE ADMIN_LOCALMODE_UNLOCK_MACHINE_ FAILED ADMIN_PERFMON_CONFIGURATION_ UPDATE_FAILED ADMIN_PERFMON_CONFIGURATION_ UPDATED ADMIN_PERMISSION_ADD_FAILED
ADMIN_PERMISSION_ADDED
AUDIT_SUCCESS
ADMIN_PERMISSION_REMOVE_FAILED
AUDIT_FAIL
ADMIN_PERMISSION_REMOVED
AUDIT_SUCCESS
ADMIN_POOL_POLICY_UPDATE_FAILED ADMIN_POOL_POLICY_UPDATED
AUDIT_FAIL AUDIT_SUCCESS
20
VMware, Inc.
AUDIT_SUCCESS
ADMIN_RESET_THINAPP_STATE_FAILED
AUDIT_FAIL
ADMIN_ROLE_ADD_FAILED
AUDIT_FAIL
ADMIN_ROLE_ADDED
AUDIT_SUCCESS
ADMIN_ROLE_PRIV_UPDATE_FAILED
AUDIT_FAIL
ADMIN_ROLE_PRIV_UPDATED
AUDIT_SUCCESS
ADMIN_ROLE_RENAMED
AUDIT_SUCCESS
ADMIN_SESSION_SENDMSG_FAILED
AUDIT_FAIL
VMware, Inc.
21
ADMIN_SVI_ADMIN_REMOVED ADMIN_SVI_ADMIN_UPDATED
AUDIT_SUCCESS AUDIT_SUCCESS
ADMIN_SVI_ATTACH_UDD_FAILED ADMIN_SVI_ATTACH_UDD_SUCCEEDED ADMIN_SVI_DELETE_UDD_FAILED ADMIN_SVI_DELETE_UDD_SUCCEEDED ADMIN_SVI_DETACH_UDD_FAILED ADMIN_SVI_DETACH_UDD_SUCCEEDED ADMIN_SVI_REBALANCE_VM_FAILED ADMIN_SVI_REBALANCE_VM_SUCCEEDED ADMIN_SVI_REFRESH_VM_FAILED ADMIN_SVI_REFRESH_VM_SUCCEEDED ADMIN_SVI_RESYNC_VM_FAILED
AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL AUDIT_SUCCESS AUDIT_FAIL
AUDIT_SUCCESS AUDIT_FAIL
22
VMware, Inc.
ADMIN_THINAPP_DESKTOP_REMOVED
AUDIT_SUCCESS
AUDIT_SUCCESS AUDIT_FAIL
AUDIT_FAIL
AUDIT_FAIL
ADMIN_THINAPP_GROUP_ADDED
AUDIT_SUCCESS
ADMIN_THINAPP_GROUP_EDIT_FAILED
AUDIT_FAIL
ADMIN_THINAPP_GROUP_EDITED
AUDIT_SUCCESS
ADMIN_THINAPP_GROUP_REMOVE_FAILED
AUDIT_FAIL
ADMIN_THINAPP_REPO_ADDED
AUDIT_SUCCESS
ADMIN_THINAPP_REPO_EDIT_FAILED
AUDIT_FAIL
ADMIN_THINAPP_REPO_EDITED
AUDIT_SUCCESS
ADMIN_THINAPP_REPO_REMOVED ADMIN_TRANSFER_SERVER_ADDED
AUDIT_SUCCESS AUDIT_SUCCESS
VMware, Inc.
23
ADMIN_USER_POLICY_DELETED
AUDIT_SUCCESS
ADMIN_USER_POLICY_UPDATE_FAILED
AUDIT_FAIL
ADMIN_USER_POLICY_UPDATED
AUDIT_SUCCESS
ADMIN_VC_LICINV_ALARM_DISABLED
AUDIT_SUCCESS
ADMIN_VC_REMOVE_FAILED ADMIN_VC_REMOVED
AUDIT_FAIL AUDIT_SUCCESS
24
VMware, Inc.
WARNING
INFO ERROR
ERROR INFO
VMware, Inc.
25
26
VMware, Inc.
List all recent events that are associated with the user fred in the domain MYDOM.
CREATE VIEW user_fred_events AS ( SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.Severity, ev.Acknowledged FROM dbo.VE_event_historical AS ev, dbo.VE_event_data_historical AS ed WHERE ev.EventID = ed.EventID AND ed.Name = 'UserDisplayName' AND ed.StrValue = MYDOM\fred );
List all recent events where the agent on a machine shut down.
CREATE VIEW agent_shutdown_events AS ( SELECT ev.EventID, ev.Time, ed.StrValue FROM dbo.VE_event_historical AS ev, dbo.VE_event_data_historical AS ed WHERE ev.EventID = ed.EventID AND ev.EventType = AGENT_SHUTDOWN AND ed.Name = MachineName );
List all recent events where a desktop failed to launch because the desktop pool was empty.
CREATE VIEW desktop_launch_failure_events AS ( SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue FROM dbo.VE_event_historical AS ev, dbo.VE_event_data_historical AS ed1, dbo.VE_event_data_historical AS ed2 WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND ev.EventType = BROKER_POOL_EMPTY AND ed1.Name = UserDisplayName AND ed2.Name = DesktopId );
VMware, Inc.
27
28
VMware, Inc.
View PowerCLI provides an easy-to-use PowerShell interface to VMware View. You can use the View PowerCLI cmdlets to perform various administration tasks on View components. This chapter includes the following topics:
Introduction to View PowerCLI on page 29 View PowerCLI Cmdlets on page 31 View PowerCLI Cmdlet Parameters on page 35 Examples of Using View PowerCLI Cmdlets on page 39
VMware, Inc.
29
VMware View 4.5 or later Microsoft .NET framework Windows PowerShell 1.0
NOTE If you use the PowerShell remoting feature to access the View PowerCLI cmdlets from a remote system, be sure to take the same precautions for protecting the View PowerCLI operations that you would take for other remoting PowerShell operations. 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. If your role is a read-only role, you cannot update configuration data. For more information, see the VMware View Administration document. To start the PowerShell console with View PowerCLI loaded 1 2 Select Start > All Programs > VMware > View PowerCLI. If you see an error message stating that the script configuration file cannot be loaded because the execution of scripts is disabled, type the following PowerShell command and restart the PowerShell console. Set-ExecutionPolicy Unrestricted
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.
For example, the following cmdlet usage would produce this error.
30
VMware, Inc.
Do not escape the slashes in the path name itself. For example, you would represent the path to the folder /datacenter_01/vm/img%-12 as /datacenter_01/vm/img%25-12. Table 3-2 lists the cmdlets and parameters that require you to use escape sequences in entity names. Table 3-2. Cmdlet Parameters Requiring Escape Sequences
Cmdlet Add-AutomaticLinkedClonePool Update-AutomaticLinkedClonePool Parameters Requiring Escape Sequences -datastoreSpecs -parentVMPath -resourcePoolPath -vmfolderPath Add-AutomaticPool Update-AutomaticPool -datastorePaths -resourcePoolPath -templatePath -vmfolderPath Send-LinkedCloneRecompose -parentVMPath
VMware, Inc.
31
32
VMware, Inc.
VMware, Inc.
33
Table 3-4. View Administrator, View PowerCLI Cmdlet, and vdmadmin Operations (Continued)
Object Persistent user data disk View Administrator Operations Attach Delete Detach Get information Replace Physical computer (with View Agent) Remote session Get information Disconnect Get information Log out Role Add Modify Remove Terminal Server User Get information Configure policy Create administrator Get information Remove administrator Update FSP vCenter Server Add Get information Remove Update View Agent Add Get information Remove Update Create DCT bundle Get copy of log file Get list of log files Get logging level Get status Get version Override IP address Set logging level View Composer domain View Connection Server Back up configuration Get information Restore configuration Update View Connection Server group View Global Setting View service health monitor Get information Update Get information Get information Update Get information Get information Update Get GUID of group Set name of group Get information Remove from group Get information Get information Get information Get information Get information Disconnect Get information Log out Get information Get information View PowerCLI Cmdlet Operations vdmadmin Command Operations
34
VMware, Inc.
Table 3-4. View Administrator, View PowerCLI Cmdlet, and vdmadmin Operations (Continued)
Object View Transfer Server View Administrator Operations Add Configure repository Get information Get state Lock virtual machine Migrate repository Remove Replicate local desktop Set maintenance mode Unlock virtual machine View Transfer Server package Add Remove Get split limit Get status Publish Set path to repository Set split limit Virtual machine (with View Agent) Get information Remove ownership Reset Update ownership VMware View license Get information Set license Get information Remove ownership Reset Update ownership Get information Set license Get information View PowerCLI Cmdlet Operations vdmadmin Command Operations
VMware, Inc.
35
36
VMware, Inc.
OnRequestSviNonPersistent
OnRequestSviPersistent
VMware, Inc.
37
Never
Required
38
VMware, Inc.
Change the values of the ramp factors for the vCenter Server that is configured on server svr11.
Get-ViewVC -serverName svr11.mycorp.com | Update-ViewVC -createRampFactor 5 -deleteRampFactor 10
Change the value of the create ramp factor for the vCenter Servers that are configured in the DNS domain mycorp.com.
Get-ViewVC -serverName *.mycorp.com | Update-ViewVC -createRampFactor 5
Return information about all desktop pools with the prefix mypool-.
Get-Pool -pool_id mypool-*
Return information about all desktop pools that are configured to use the PCoIP protocol.
Get-Pool -protocol PCOIP
VMware, Inc.
39
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.
Get-Pool -displayName "My Pool 1" | Remove-Pool -DeleteFromDisk $true
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. You must specify the existing datastores to retain them for use by the pool.
NOTE To provision all the desktops in advance of their use, set -minimumCount and -maximumCount to the same value. If you specify a persistent data disk, use an uppercase letter for the drive. Do not use a letter that already exists on the parent virtual machine for a drive such as A, B, or C, or that conflicts with a network-mounted drive. Update the configuration of the linked-clone desktop pool lcdpool_1.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM | Update-AutomaticLinkedCLonePool -pool_id lcdpool_1 -datastoreSpecs [Conservative,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16;/host/datastore_2/lun22 -minimumCount 4 -maximumCount 20 -headroomCount 2 -powerPolicy Suspend -defaultProtocol PCOIP -isUserResetAllowed $true
The datastores that you specify as arguments to -datastoreSpecs override the previous setting. You must specify the existing datastores to retain them for use by the pool. Rebalance desktops in the linked-clone desktop pool lcdpool_2 among the available datastores.
40 VMware, Inc.
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.
Get-DesktopVM -pool_id lcdpool_2 | Send-LinkedCloneRecompose -schedule ((Get-Date).AddHours(8)) -parentVMPath /AutoPoolVMs/parent2 -parentSnapshotPath /AutoPoolSnapshots/parent2_snapshot -forceLogoff $true -stopOnError $true
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
Add the desktop pool tsd1 using a machine that is provided by the terminal server at a specified IP address.
Get-TerminalServer -hostname tsvr01 | Add-TerminalServerPool -pool_id tsd1 -displayName "Terminal Server Desktop 1" -allowProtocolOverride $true
Update the configuration of the desktop pool tsd1, which uses a machine provided by a terminal server.
Get-TerminalServer -hostname tsvr01 | Update-TerminalServerPool -pool_id tsd1 -displayName "Terminal Server Desktop 1" -allowProtocolOverride $false -autoLogoffTime 1
Return information about the user fred in the domain mydom and exclude any information about the users group.
Get-User -name "fred" -domain "mydom" -includeGroup $false
VMware, Inc.
41
Return information about the users who are entitled to use desktop pool dtop-1.
Get-PoolEntitlement -pool_id dtop-1
Return information about the users who are entitled to use desktop pools whose IDs start with dtpool-.
Get-Pool -pool_id dtpool-* | Get-PoolEntitlement
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.
Disconnect the active remote sessions on which the user fred is logged in.
Get-RemoteSession -username mydom\fred | Send-SessionDisconnect
Log out the active remote sessions on which the user fred is logged in.
Get-RemoteSession -username mydom\fred | Send-SessionLogoff -session_id
Log out the active remote sessions that are using the RDP protocol.
Get-RemoteSession -protocol RDP | Send-SessionLogoff
Return information about the virtual machines that are configured on the vCenter Server vc03.local.int.
Get-DesktopVM -vc_id (Get-ViewVC -serverName vc03.local.int).vc_id
42
VMware, Inc.
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.
Get-ProfileDisk -VMname vm01
Reset the virtual machine for the desktop pool with the display name dtp1.
Get-Pool -displayName dtp1 | Get-DesktopVM | Send-VMReset
Display configuration change events that have occurred since the specified date.
Get-EventReport -viewName config_changes -startDate (Get-Date -Year 2011 -Month 5 -Day 20 -Hour 0 -Minute 0 -Second 0)
VMware, Inc.
43
Require clients to use SSL to connect and set the prelogin message.
Update-GlobalSetting -UseSSLClient $true -PreLoginMessage "Insert disclaimer and other notices here."
44
VMware, Inc.
$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. Is the Connection Server installed?" } }
Pool object that represents the pool to be checked. Amount by which to increase pool that is at maximum capacity.
function PollPoolUsage { param ($Pool, $increment) # Get a list of remote sessions for the pool (errors are suppressed) $remotes = Get-RemoteSession -pool_id $Pool.pool_id -ErrorAction SilentlyContinue # Count the remote sessions. $remotecount = 0 if($remotes){ $remotecount = ([Object[]]($remotes)).Count } # Get a list of local sessions for the pool (errors are suppressed) $locals = Get-LocalSession -pool_id $Pool.pool_id -ErrorAction SilentlyContinue # Count the local sessions. $localcount = 0 if($locals){ $localcount = ([Object[]]($locals)).Count } # Calculate the total number of sessions $totalcount = $localcount + $remotecount
VMware, Inc. 45
# 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.pool_id + " ====") ("Remote session count: " + $remotecount) ("Local session count: " + $localcount) ("Total session count: " + $totalcount) ("Maximum desktops: " + $maxdesktops)
# If a pool is using all its desktops, increase its maximum size # or output a warning if it cannot be resized. if($maxdesktops -eq $totalcount){ if($Pool.deliveryModel -eq "Provisioned"){ # Pool type can be resized $newmaximum = [int]$Pool.maximumCount + [int]$increment if($Pool.desktopSource -eq "VC"){ # Resize an automatic pool Update-AutomaticPool -pool_id $Pool.pool_id -maximumCount $newmaximum } elseif ($Pool.desktopSource -eq "SVI"){ # Resize a linked-clone pool Update-AutomaticLinkedClonePool -pool_id $Pool.pool_id -maximumCount $newmaximum } Write-Output ("Pool " + $Pool.pool_id + " is using 100% of its desktops. Maximum VMs increased to " + $newmaximum) } else { # Pool type cannot be resized Write-Output ("Pool " + $Pool.pool_id + " is using 100% of its desktops. Consider increasing its capacity.") } } }
46
VMware, Inc.
$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.isChildTypeDatacenter){ # Add object to the path. $path = $path + "/" + $InvObject.Name } $path } }
VMware, Inc.
47
function RemoveDatastoreFromAutomaticPool { param ($Pool, $Datastore) $PoolSettings = (Get-Pool -pool_id $Pool) $currentdatastores = $PoolSettings.datastorePaths $datastores = "" foreach ($path in $currentdatastores.split(";")){ if(-not ($path -eq $Datastore)){ $datastores = $datastores + "$path;" } } Update-AutomaticPool -pool_id $Pool -datastorePaths $datastores }
48
VMware, Inc.
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 VMware 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. This chapter includes the following topics:
LDAP Configuration Data on page 49 Export LDAP Configuration Data on page 50 Modify LDAP Configuration Data on page 50 Import LDAP Configuration Data on page 53 Import LDAP Configuration Data Using the LDIFDE Command on page 54
To transfer configuration data between View Connection Server instances. To define a large number of View objects, such as desktop pools, and add these to your View Connection Server instances without using View Administrator to do this manually. To back up your View configuration so that you can restore the state of a View Connection Server instance.
In View Manager 3.1 and later, regular backups of the LDAP repository are made automatically. LDAP configuration data is transferred as plain ASCII text and conforms to the Internet Engineering Task Force (IETF) RFC 2849 standard.
VMware, Inc.
49
You can specify the output file name as an argument to the -f option.
vdmexport -f myexport.LDF
The command writes the configuration of your View Connection Server instance to the file that you specify. The command displays errors if your role has insufficient privileges to view the data in the configuration repository.
A Virtual Desktop VM entry for each virtual desktop in the desktop pool. A VM Pool entry for each desktop pool. A Desktop Application entry that defines the entitlement of the desktop pool.
Each VM Pool entry must be associated with one Desktop Application entry in a one-to-one relationship. A Desktop Application entry cannot be shared between VM Pool entries, and a VM Pool entry can only be associated with one Desktop Application entry.
50 VMware, Inc.
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.
# # Virtual Desktop VM entry VM1 # DN: CN=vm1,OU=Servers,DC=vdi,DC=vmware,DC=int changetype: add objectClass: top objectClass: pae-Server objectClass: pae-WinServer objectClass: pae-ThinWinServer objectClass: pae-VM cn: vm1 description: sample virtual desktop entry pae-VmSuspended:: IA== pae-OptIgnoreProcessList: 0 pae-MOID: vm-1 pae-VmState: READY pae-ServerManaged: 1 pae-SSOEnabled: 1 pae-DisplayName: virtual desktop 1 pae-TunneledConnection: 1 pae-pwdEncryption: KERB5 ipHostNumber: vm1 pae-ClientProtVersion: 1 pae-WinDomain: NULL pae-thinProto: XP_RDP pae-Services: SESSION |, HEARTBEAT |, EVENTS |, USED | pae-VmPath: /New Datacenter/vm/vm-1 pae-OptSuspendTimeout: 0 pae-OptDisconnectLimitTimeout: 0 pae-OptMaximumSessions: 0 pae-Disabled: 0 # # Virtual Desktop VM entry VM2 # DN: CN=vm2,OU=Servers,DC=vdi,DC=vmware,DC=int changetype: add objectClass: top objectClass: pae-Server objectClass: pae-WinServer objectClass: pae-ThinWinServer objectClass: pae-VM cn: vm2 description: sample virtual desktop entry pae-VmSuspended:: IA== pae-OptIgnoreProcessList: 0 pae-MOID: vm-2 pae-VmState: READY pae-ServerManaged: 1 pae-SSOEnabled: 1 pae-DisplayName: virtual desktop 2 pae-TunneledConnection: 1 pae-pwdEncryption: KERB5 ipHostNumber: vm2 pae-ClientProtVersion: 1 pae-WinDomain: NULL pae-thinProto: XP_RDP pae-Services: SESSION |, HEARTBEAT |, EVENTS |, USED | pae-VmPath: /New Datacenter/vm/vm-2 pae-OptSuspendTimeout: 0 pae-OptDisconnectLimitTimeout: 0 pae-OptMaximumSessions: 0
VMware, Inc.
51
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-VmProvSuspendOnError: 1 pae-VmStartClone: 1 pae-VmPoolCalculatedValues: 1 pae-ServerPoolType: 0 pae-VmMinimumCount: 0 pae-VmHeadroomCount: 0 pae-VmMaximumCount: 0 pae-Disabled: 0 # # Desktop Application entry Pool1 -- one entry is required for each VM Pool # DN: CN=Pool1,OU=Applications,DC=vdi,DC=vmware,DC=int changetype: add objectClass: top objectClass: pae-Entity objectClass: pae-App objectClass: pae-WinApp objectClass: pae-ThinWinApp objectClass: pae-DesktopApplication cn: Pool1 member:: PFNJRD1TLTEtMi0zLTQ+IA== pae-Icon: /thinapp/icons/desktop.gif pae-URL: \ pae-Servers: CN=Pool1,OU=Server Groups,DC=vdi,DC=vmware,DC=int pae-ServerProtocolLevel: OSX_NETOP pae-ServerProtocolLevel: OS2_NETOP pae-ServerProtocolLevel: NT4_NETOP pae-ServerProtocolLevel: WIN2K_NETOP pae-ServerProtocolLevel: NT4_RDP pae-ServerProtocolLevel: WIN2K_RDP pae-ServerProtocolLevel: XP_RDP pae-Disabled: 0
52
VMware, Inc.
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 Virtual Desktop VM VM Pool Desktop Application Attribute cn Description 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().ToString() in Visual Basic). Specifies a list of Active Directory (AD) users and groups who are entitled to access the desktop pool. The attribute is specified in the form of a Windows Security Identifier (SID) reference. A member value of <SID=S-1-2-3-4> represents an AD user or group with the SID value S-1-2-3-4. In LDIF format, the left angle (<) character is reserved, so you must place two colons (::) after the attribute name and specify the SID value in base 64 format (for example, PFNJRD1TLTEtMi0zLTQ+IA==). Because this attribute is multivalued, you can use it on multiple lines to represent each entry in a list of SIDs.
Desktop Application
member
In a similar manner to desktop pools, you can create customized LDIF files for other objects that are defined in the LDAP repository, for example:
Global configuration settings. Configuration settings for a specific View Connection Server instance or security server. Configuration settings for a specific user.
The configuration of your View Connection Server instance is updated with the data from the file, and the number of records that have been successfully updated is displayed. Errors are displayed if some records could not be updated because your role has insufficient privileges.
VMware, Inc.
53
Enter the other options to the LDIFDE command as shown in the example. The configuration of your View Connection Server instance is updated with the data from the file, and the number of records that have been successfully updated is displayed. A large number of error messages are displayed that indicate whenever an existing entry in the repository has been overwritten. Such errors can be ignored. Errors are also displayed if some records could not be updated because your role has insufficient privileges.
54
VMware, Inc.
You can use Microsoft System Center Operations Manager (SCOM) to monitor the state of VMware View components, including View Connection Server instances and security servers and View services running on these hosts. This chapter includes the following topics:
View Management Packs on page 55 Name a View Connection Server Group on page 56 Import the View MPs on page 56 View Discovery Script on page 56 Run the Discovery Script on page 57 Display Discovered Objects on page 57 Display Managed Objects on page 58 Views and Monitors on page 58 Enable a Proxy Agent on a Server on page 60 Display Performance Data on page 60 Display Information About an Alert on page 60 Restart a Service on page 60 Exclude a Domain from Connectivity Monitoring on page 60 Close Alerts on page 61 Class and Relationship Definitions on page 61
https://vmshare.vmware.com/engineering/techpub/Projects/view/Pages/Monaco.aspxVMware. View.Discovery.mp contains the agent that discovers instances of View Server installations. See View Discovery Script on page 56. VMware.View.Monitoring.mp contains the views and monitors that you can use with View in the Operations Manager console. See Views and Monitors on page 58.
VMware, Inc.
55
VMware.View.Library.mp contains class and relationship definitions for the managed objects in View. See Class and Relationship Definitions on page 61. VMware.View.Image.Library.mp contains the graphics that represent the classes that are defined in VMware.View.Library.mp.
NOTE View MPs might be identified in Microsoft SCOM as VMware View 4.5. These MPs are the latest versions and are supported in View releases subsequent to View 4.5, such as View 5.1.
For example, set the name of a View Connection Server group to VCSG01.
vdmadmin -C -c VCSG01
2 3 4
56
VMware, Inc.
You can verify the objects that the discovery agent has created for a server by viewing them in the Operations Manager console. See Display Discovered Objects on page 57. The agent discovers the following managed objects for a Connection Server.
The agent discovers the following managed objects for a Security Server.
For a description of View object classes and their relationships, seeClass and Relationship Definitions on page 61.
VMware, Inc.
57
All Sessions All Sessions High Checked out VMs Checked out VMs High SVI Sessions SVI Sessions High Secure Gateway Sessions Secure Gateway Sessions High
You can find the Active Alerts, Group State, Groups, and Node State views under Monitoring\VMware View and the Connection Server Role Performance Data and Secure Gateway Role Performance Data views under Monitoring\VMware View\Performance in the Operations Manager console. The VMware.View.Monitoring MP provides the following monitor types:
Performance monitor collects system data and return this data to the SCOM performance database and data warehouse. You can examine the data graphically in the Connection Server Role Performance Data and Secure Gateway Role Performance Data views. See Performance Data Collection Settings on page 59 and Display Performance Data on page 60. Service component monitors collect information about the state of the View component services. If a monitored service is not running, SCOM sets its state to error and raises an alert. If a component is in the error state, the affected View Connection Server group and its members also enter the error state. See Display Information About an Alert on page 60, Restart a Service on page 60, and Close Alerts on page 61. Table 5-2 shows the service component monitors that are provided for a View Connection Server instance. Table 5-2. View Service Component Monitors for a View Connection Server instance
Monitor ConnectionServerServiceCheck FrameworkServiceCheck Display Name Connection Server Service Health Base Framework Service Health Monitored Service VMware View Connection Server VMware View Framework Component
58
VMware, Inc.
Table 5-2. View Service Component Monitors for a View Connection Server instance (Continued)
Monitor MessageBusServiceCheck SecureGatewayCheck WebServiceCheck DirectoryServiceCheck Display Name Message Bus Service Health Security Gateway Service Health Web Service Health Directory Service Health Monitored Service VMware View Message Bus Component VMware View Security Gateway Component VMware View Web Component VMwareVDMDS
Table 5-3 shows the service component monitors that are provided for a security server. Table 5-3. View Service Component Monitors for a Security Server
Monitor SecureGatewayServerServiceCheck FrameworkServiceCheck SecureGatewayCheck Display Name Security Server Service Health Base Framework Service Health Security Gateway Service Health Monitored Service VMware View Security Server VMware View Framework Component VMware View Security Gateway Component
Domain connectivity monitor verifies that a Connection Server can bind to all the domains of which it is a member. The monitor queries the status of the Web component on a Connection Server every 3 minutes. If a Connection Server cannot bind to a domain, SCOM sets its state to error and raises an alert. See Display Information About an Alert on page 60, Exclude a Domain from Connectivity Monitoring on page 60, and Close Alerts on page 61. Event database connectivity monitor checks that the event database is configured and that events are writable to the database. The monitor queries the Web component every 3 minutes for this information and raises an alert if the event database is not connected. Virtual Center (vCenter) connectivity monitor checks that a View Connection Server instance can connect to the configured vCenter servers. The monitor queries the Web component every 3 minutes for this information and raises an alert if a vCenter server is not available.
VMware, Inc.
59
Restart a Service
The service component monitors alert you if a View component service stops working. You can restart a service from the Health Explorer. To restart a service following an alert 1 2 3 In the Operations Manager console, go to Monitoring\VMware View and select the Group State view or the Group Node State view. Right click on a View Connection Server group or member that is in the alert state ( Open > Health Explorer. ) and select
In the Health Explorer, select the alert and click Restart the service in the knowledge article.
In the Operations Manager console, go to Monitoring\VMware View, and select the Group State view or the Group Node State view. Right click on the connection server, and select Open > Health Explorer.
VMware, Inc.
3 4 5
Right click on the Domain Connectivity Health entry for the Connection Server in the Health Explorer and select Monitor Properties. Under the Overrides tab, click Override and select the option for all objects of the same class. 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. If you want to exclude more than one domain, use spaces to separate the domain names. Click Apply and OK.
Close Alerts
You can close an alert without taking any action. This method does not prevent the alert from being raised again if the underlying cause persists. To close alerts 1 2 In the Operations Manager console, go to Monitoring\VMware View and select the Active Alerts view. Select the alert and click the Close Alert action.
VMware.View.Clusters
Table 5-6 shows the abstract base classes that are defined in the VMware.View.Library MP. Table 5-6. View Library Base Classes
Class Name VMware.View.Cluster.Node Description Represents a member of a View Connection Server group. This class has the properties ClusterID, ClusterName, ProductVersion, and InstallPath. Represents a View component that has been installed on a member of a View Connection Server group. This class has the property Name. Represents the Connection Server component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component. Represents the Directory 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
VMware.View.Component.ConnectionServer
VMware.View.Component.Directory
VMware, Inc.
61
VMware.View.Component.MessageBus
VMware.View.Component.SecurityGateway
VMware.View.Component.SecurityServer
VMware.View.Component.Web
VMware.View.ConnectionServerRole
VMware.View.NodeRole VMware.View.SecurityServerRole
The currently supported instances that are derived from these classes must be View version 4.5 or a later release. Table 5-7 shows the version 4.5 or later concrete classes that are defined in the VMware.View.Library MP. NOTE These concrete classes are the latest versions and are supported in View 4.5 and later releases. Table 5-7. View Library version 4.5 Concrete Classes
Class Name VMware.View.Cluster.Node.V0405 Description Represents a View Connection Server group member that has version 4.5 or a later release of View installed. This class inherits its properties from VMware.View.Cluster.Node. Represents version 4.5 or a later release of the Connection Server component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component.Connection Server. Represents version 4.5 or a later release of the Directory component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component.Directory. Represents version 4.5 or a later release of 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.Framework.
VMware.View.Component.ConnectionServer.V0405
VMware.View.Component.Directory.V0405
VMware.View.Component.Framework.V0405
62
VMware, Inc.
VMware.View.Component.SecurityGateway.V0405
VMware.View.Component.SecurityServer.V0405
VMware.View.Component.Web.V0405
VMware.View.ConnectionServerRole.V0405
VMware.View.SecurityServerRole.V0405
The VMware.View.Library MP also contains friendly name strings for classes and properties. The SCOM console displays friendly names in preference to class and property names.
VMware, Inc.
63
64
VMware, Inc.
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. For more information about WMI, WMIC, and the WMI Code Creator tool, go to http://technet.microsoft.com/en-us/library/bb742610.aspx and http://www.microsoft.com/downloads/en/details.aspx?familyid=2cc30a64-ea15-4661-8da4-55bbc145c30e&dis playlang=en. This chapter includes the following topics:
Usage Notes for Recorded Statistics on page 65 General Session Statistics on page 66 Audio Statistics on page 66 Imaging Statistics on page 67 Network Statistics on page 68 USB Statistics on page 69
VMware, Inc.
65
To calculate the bandwidth in kilobits per second for received PCoIP data over the time interval from time t1 to time t2:
(BytesReceived[t2]-BytesReceived[t1]) * 8 / (1024 * (t2-t1))
To calculate the bandwidth in kilobits per second for transmitted PCoIP data over the time interval from time t1 to time t2:
(BytesSent[t2]-BytesSent[t1]) * 8 / (1024 * (t2-t1))
Audio Statistics
The WMI class name for PCoIP audio statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics. The audio statistics do not include audio data that is carried within USB data. Table 6-2 shows the audio statistics for a PCoIP session. Table 6-2. Audio Statistics
WMI Property Name AudioBytesReceived AudioBytesSent AudioRXBWkbitPersec Description Total number of bytes of audio data that have been received since the PCoIP session started. Total number of bytes of audio data that have been sent since the PCoIP session started. Bandwidth for ingoing audio packets averaged over the sampling period, in seconds.
66
VMware, Inc.
To calculate the bandwidth in kilobits per second for received audio data over the time interval from time t1 to time t2:
(AudioBytesReceived[t2]-AudioBytesReceived[t1]) * 8 / (1024 * (t2-t1))
To calculate the bandwidth in kilobits per second for transmitted audio data over the time interval from time t1 to time t2:
(AudioBytesSent[t2]-AudioBytesSent[t1]) * 8 / (1024 * (t2-t1))
Imaging Statistics
The WMI class name for PCoIP imaging statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics. Table 6-3 shows the imaging statistics for a PCoIP session. Table 6-3. Imaging Statistics
WMI Property Name ImagingBytesReceived ImagingBytesSent ImagingDecoderCapabilitykbitPersec ImagingEncodedFramesPersec ImagingActiveMinimumQuality Description Total number of bytes of imaging data that have been received since the PCoIP session started. Total number of bytes of imaging data that have been transmitted since the PCoIP session started. Estimated processing capability of the imaging decoder in kilobits per second. This statistic is updated once per second. Number of imaging frames that were encoded over a one-second sampling period. Lowest encoded quality value on a scale from 0 to 100. This statistic is updated once per second. This counter does not correspond to the GPO setting for minimum quality. Bandwidth for incoming imaging packets averaged over the sampling period, in seconds. Bandwidth for outgoing imaging packets averaged over the sampling period, in seconds.
ImagingRXBWkbitPersec ImagingTXBWkbitPersec
To calculate the bandwidth in kilobits per second for received imaging data over the time interval from time t1 to time t2:
(ImagingBytesReceived[t2]-ImagingBytesReceived[t1]) * 8 / (1024 * (t2-t1))
Do not use ImagingRXBWkbitPersec for the preceding calculation. To calculate the bandwidth in kilobits per second for transmitted imaging data over the time interval from time t1 to time t2:
(ImagingBytesSent[t2]-ImagingBytesSent[t1]) * 8 / (1024 * (t2-t1))
VMware, Inc.
67
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 RoundTripLatencyms RXBWkbitPersec RXBWPeakkbitPersec RXPacketLossPercent TXBWkbitPersec TXBWActiveLimitkbitPersec TXBWLimitkbitPersec Description Round trip latency in milliseconds between the PCoIP server and the PCoIP client. Overall bandwidth for incoming PCoIP packets averaged over the sampling period, in seconds. Peak bandwidth in kilobits per second for incoming PCoIP packets over a one-second sampling period. Percentage of received packets lost during a sampling period. Overall bandwidth for outgoing PCoIP packets averaged over the sampling period, in seconds. Estimated available network bandwidth in kilobits per second. This statistic is updated once per second. Transmission bandwidth limit in kilobits per second for outgoing packets. The limit is the minimum of the following values:
GPO bandwidth limit for the PCoIP client GPO bandwidth limit for the PCoIP server Bandwidth limit for the local network connection Negotiated bandwidth limit for the Zero Client firmware based on encryption limits
TXPacketLossPercent
To calculate the bandwidth in kilobits per second for received data over the time interval from time t1 to time t2:
(BytesReceived[t2]-BytesReceived[t1]) * 8 / (1024 * (t2-t1))
Do not use RXBWkbitPersec for the preceding calculation. To calculate the bandwidth in kilobits per second for transmitted data over the time interval from time t1 to time t2:
(BytesSent[t2]-BytesSent[t1]) * 8 / (1024 * (t2-t1))
Do not use TXBWkbitPersec for the preceding calculation. To calculate the packet loss in percentage for received data over the time interval from time t1 to time t2:
PacketsReceived during interval = (PacketsReceived[t2]-PacketsReceived[t1]) RXPacketsLost during interval = (RXPacketsLost[t2]-RXPacketsLost[t1]) RXPacketsLost % = RXPacketsLost during interval / (RXPacketsLost during interval + PacketsReceived during interval) * 100
Do not use RXPacketLostPercent or RXPacketLostPercent_Base for the preceding calculation. To calculate the packet loss in percentage for transmitted data over the time interval from time t1 to time t2:
PacketsSent during interval = (PacketsSent[t2]-PacketsSent[t1]) TXPacketsLost during interval = (TXPacketsLost[t2]-TXPacketsLost[t1]) TXPacketsLost % = TXPacketsLost during interval / (TXPacketsLost during interval + PacketsSent during interval) * 100
68
VMware, Inc.
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. USB Statistics
WMI Property Name USBBytesReceived USBBytesSent USBRXBWkbitPersec USBTXBWkbitPersec Description Total number of bytes of USB data that have been received since the PCoIP session started. Total number of bytes of USB data that have been transmitted since the PCoIP session started. Bandwidth for incoming USB packets averaged over the sampling period, in seconds Bandwidth for outgoing USB packets averaged over the sampling period, in seconds.
To calculate the bandwidth in kilobits per second for received USB data over the time interval from time t1 to time t2:
(USBBytesReceived[t2]-USBBytesReceived[t1]) * 8 / (1024 * (t2-t1))
Do not use USBRXBWkbitPersec for the preceding calculation. To calculate the bandwidth in kilobits per second for transmitted USB data over the time interval from time t1 to time t2:
(USBBytesSent[t2]-USBBytesSent[t1]) * 8 / (1024 * (t2-t1))
Retrieve the PCoIP general session statistics for desktop dt-03 if any transmitted packets have been lost.
Get-WmiObject -namespace "root\cimv2" -computername desktop-03 -query "select * from Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics where TXPacketsLost > 0"
VMware, Inc.
69
70
VMware, Inc.
Index
A
Acknowledged column 10 Active Alerts view 58 Add-AutomaticLinkedClonePool cmdlet 31 Add-AutomaticPool cmdlet 31 Add-ManualPool cmdlet 32 Add-ManualUnmanagedPool cmdlet 32 Add-PoolEntitlement cmdlet 32 Add-TerminalServerPool cmdlet 32 Add-ViewVC cmdlet 32 ADMIN 21 ADMIN_ADD_DESKTOP_ENTITLEMENT 17 ADMIN_ADD_LICENSE 17 ADMIN_ADD_LICENSE_FAILED 17 ADMIN_ADD_PM 17 ADMIN_ADD_PM_FAILED 17 ADMIN_ADD_THINAPP_ENTITLEMENT 17 ADMIN_ADD_THINAPP_ENTITLEMENT_ FAILED 17 ADMIN_ADD_THINAPP_POOL_ ENTITLEMENT 17 ADMIN_ADMINSTRATOR_REMOVE_FAILED 17 ADMIN_ADMINSTRATOR_REMOVED 18 ADMIN_CONFIGURE_TRANSFER_SERVER_ LOCAL_REPO 18 ADMIN_CONFIGURE_TRANSFER_SERVER_ NETWORK_REPO 18 ADMIN_CONNECTION_BROKER_UPDATE_ FAILED 18 ADMIN_CONNECTION_BROKER_UPDATED 18 ADMIN_CONNECTION_SERVER_BACKUP_ FAILED 18 ADMIN_CONNECTION_SERVER_BACKUP_ INITIATED 18 ADMIN_CONNECTION_SERVER_DISABLE_ FAILED 18 ADMIN_CONNECTION_SERVER_DISABLED 18 ADMIN_CONNECTION_SERVER_ENABLE_ FAILED 18 ADMIN_CONNECTION_SERVER_ENABLED 18 ADMIN_DATABASE_CONFIGURATION_ADD_ FAILED 18 ADMIN_DATABASE_CONFIGURATION_ ADDED 18 ADMIN_DATABASE_CONFIGURATION_ DELETE_FAILED 18 ADMIN_DATABASE_CONFIGURATION_ UPDATE_FAILED 18
VMware, Inc.
ADMIN_DATABASE_CONFIGURATION_ UPDATED 18 ADMIN_DEFAULT_DESKTOPPOOL_ASSIGN 18 ADMIN_DEFAULT_DESKTOPPOOL_ASSIGN_ FAILED 18 ADMIN_DEFAULT_DESKTOPPOOL_ UNASSIGN 18 ADMIN_DEFAULT_DESKTOPPOOL_UNASSIGN_ FAILED 18 ADMIN_DELETE_PACKAGE 18 ADMIN_DESKTOP_ADDED 19 ADMIN_DESKTOP_ASSIGN 19 ADMIN_DESKTOP_ASSIGN_FAILED 19 ADMIN_DESKTOP_EDITED 19 ADMIN_DESKTOP_MAINTENANCE_MODE_ UPDATE_FAILED 19 ADMIN_DESKTOP_MAINTENANCE_MODE_ UPDATED 19 ADMIN_DESKTOP_UNASSIGN 19 ADMIN_DESKTOP_UNASSIGN_FAILED 19 ADMIN_ENABLE_DESKTOP_FAILED 19 ADMIN_ENABLE_DESKTOP_SUCCEEDED 19 ADMIN_ENABLED_DESKTOP_PROVISION_ FAILED 19 ADMIN_ENABLED_DESKTOP_PROVISION_ SUCCEEDED 19 ADMIN_EVENT_CONFIGURATION_UPDATE_ FAILED 19 ADMIN_EVENT_CONFIGURATION_UPDATED 19 ADMIN_FOLDER_ADD_FAILED 19 ADMIN_FOLDER_ADDED 19 ADMIN_FOLDER_CHANGE_FAILED 19 ADMIN_FOLDER_CHANGED 19 ADMIN_FOLDER_DELETE_FAILED 19 ADMIN_FOLDER_DELETED 19 ADMIN_GLOBAL_CONFIGURATION_UPDATE_ FAILED 19 ADMIN_GLOBAL_CONFIGURATION_ UPDATED 19 ADMIN_GLOBAL_POLICY_UPDATE_FAILED 20 ADMIN_GLOBAL_POLICY_UPDATED 20 ADMIN_LOCALMODE_INITIATE_ REPLICATION 20 ADMIN_LOCALMODE_LOCK_MACHINE 20 ADMIN_LOCALMODE_LOCK_MACHINE_ FAILED 20 ADMIN_LOCALMODE_ROLLBACK_DESKTOP 20 ADMIN_LOCALMODE_UNLOCK_MACHINE 20
71
ADMIN_LOCALMODE_UNLOCK_MACHINE_ FAILED 20 ADMIN_PERFMON_CONFIGURATION_UPDATE_ FAILED 20 ADMIN_PERFMON_CONFIGURATION_ UPDATED 20 ADMIN_PERMISSION_ADD_FAILED 20 ADMIN_PERMISSION_ADDED 20 ADMIN_PERMISSION_REMOVE_FAILED 20 ADMIN_PERMISSION_REMOVED 20 ADMIN_POOL_POLICY_UPDATE_FAILED 20 ADMIN_POOL_POLICY_UPDATED 20 ADMIN_PUBLISH_PACKAGE 20 ADMIN_REMOVE_DESKTOP_ENTITLEMENT 20 ADMIN_REMOVE_DESKTOP_FAILED 20 ADMIN_REMOVE_DESKTOP_SUCCEEDED 20 ADMIN_REMOVE_THINAPP_ENTITLEMENT 20 ADMIN_REMOVE_THINAPP_ENTITLEMENT_ FAILED 21 ADMIN_REMOVE_THINAPP_POOL_ ENTITLEMENT 21 ADMIN_RESET_THINAPP_STATE 21 ADMIN_RESET_THINAPP_STATE_FAILED 21 ADMIN_ROLE_ADD_FAILED 21 ADMIN_ROLE_ADDED 21 ADMIN_ROLE_PRIV_UPDATE_FAILED 21 ADMIN_ROLE_PRIV_UPDATED 21 ADMIN_ROLE_REMOVE_FAILED 21 ADMIN_ROLE_REMOVED 21 ADMIN_ROLE_RENAME_FAILED 21 ADMIN_ROLE_RENAMED 21 ADMIN_SECURITY_SERVER_ADD_FAILED 21 ADMIN_SECURITY_SERVER_ADDED 21 ADMIN_SECURITY_SERVER_EDIT_FAILED 21 ADMIN_SECURITY_SERVER_EDITED 21 ADMIN_SECURITY_SERVER_REMOVE_ FAILED 21 ADMIN_SECURITY_SERVER_REMOVED 21 ADMIN_SESSION_SENDMSG 21 ADMIN_SESSION_SENDMSG_FAILED 21 ADMIN_SVI_ADD_DEPLOYMENT_GROUP_ FAILED 22 ADMIN_SVI_ADD_DEPLOYMENT_GROUP_ SUCCEEDED 22 ADMIN_SVI_ADD_UDD_FAILED 22 ADMIN_SVI_ADD_UDD_SUCCEEDED 22 ADMIN_SVI_ADMIN_ADDED 22 ADMIN_SVI_ADMIN_REMOVED 22 ADMIN_SVI_ADMIN_UPDATED 22 ADMIN_SVI_ATTACH_UDD_FAILED 22 ADMIN_SVI_ATTACH_UDD_SUCCEEDED 22 ADMIN_SVI_DELETE_UDD_FAILED 22 ADMIN_SVI_DELETE_UDD_SUCCEEDED 22 ADMIN_SVI_DETACH_UDD_FAILED 22
72
ADMIN_SVI_DETACH_UDD_SUCCEEDED 22 ADMIN_SVI_REBALANCE_VM_FAILED 22 ADMIN_SVI_REBALANCE_VM_SUCCEEDED 22 ADMIN_SVI_REFRESH_VM_FAILED 22 ADMIN_SVI_REFRESH_VM_SUCCEEDED 22 ADMIN_SVI_RESYNC_VM_FAILED 22 ADMIN_SVI_RESYNC_VM_SUCCEEDED 22 ADMIN_SVI_UPDATE_POOL_DEPLOYMENT_ GROUP_FAILED 22 ADMIN_SVI_UPDATE_POOL_DEPLOYMENT_ GROUP_SUCCEEDED 22 ADMIN_SVI_UPDATE_UDD_FAILED 22 ADMIN_SVI_UPDATE_UDD_SUCCEEDED 22 ADMIN_THINAPP_ADD_FAILED 22 ADMIN_THINAPP_ADDED 22 ADMIN_THINAPP_DESKTOP_AVAILABLE 23 ADMIN_THINAPP_DESKTOP_REMOVED 23 ADMIN_THINAPP_EDITED 23 ADMIN_THINAPP_FAILED_DESKTOP_ DELIVERY 23 ADMIN_THINAPP_FAILED_DESKTOP_ REMOVAL 23 ADMIN_THINAPP_GROUP_ADD_FAILED 23 ADMIN_THINAPP_GROUP_ADDED 23 ADMIN_THINAPP_GROUP_EDIT_FAILED 23 ADMIN_THINAPP_GROUP_EDITED 23 ADMIN_THINAPP_GROUP_REMOVE_FAILED 23 ADMIN_THINAPP_GROUP_REMOVED 23 ADMIN_THINAPP_REMOVE_FAILED 23 ADMIN_THINAPP_REMOVED 23 ADMIN_THINAPP_REPO_ADD_FAILED 23 ADMIN_THINAPP_REPO_ADDED 23 ADMIN_THINAPP_REPO_EDIT_FAILED 23 ADMIN_THINAPP_REPO_EDITED 23 ADMIN_THINAPP_REPO_REMOVED 23 ADMIN_TRANSFER_SERVER_ADDED 23 ADMIN_TRANSFER_SERVER_ENTER_ MAINTENANCE 24 ADMIN_TRANSFER_SERVER_EXIT_ MAINTENANCE 24 ADMIN_TRANSFER_SERVER_REMOVED 24 ADMIN_UNREGISTER_PM 24 ADMIN_UNREGISTER_PM_FAILED 24 ADMIN_USER_INFO_UPDATE_FAILED 24 ADMIN_USER_INFO_UPDATED 24 ADMIN_USER_POLICY_DELETE_FAILED 24 ADMIN_USER_POLICY_DELETED 24 ADMIN_USER_POLICY_UPDATE_FAILED 24 ADMIN_USER_POLICY_UPDATED 24 ADMIN_USERLOGGEDIN 24 ADMIN_USERLOGGEDOUT 24 ADMIN_VC_ADD_FAILED 24 ADMIN_VC_ADDED 24
VMware, Inc.
Index
ADMIN_VC_EDITED 24 ADMIN_VC_LICINV_ALARM_DISABLED 24 ADMIN_VC_REMOVE_FAILED 24 ADMIN_VC_REMOVED 24 AdminFolderName attribute 25 AdminPermissionEntity attribute 25 AdminPrivilegeName attribute 25 AdminRoleName attribute 25 AdminRoleNewName attribute 25 AGENT_CONNECTED 17 AGENT_DISCONNECTED 17 AGENT_ENDED 17 AGENT_PENDING 17 AGENT_PENDING_EXPIRED 17 AGENT_RECONFIGURED 17 AGENT_RECONNECTED 17 AGENT_RESUME 17 AGENT_SHUTDOWN 17 AGENT_STARTUP 17 AGENT_SUSPEND 17 alerts closing 61 displaying information about 60 excluding domains from SCOM monitoring 60 AttrChangeType attribute 25 attributes, event database 25 AttrName attribute 25 AttrValue attribute 25 AudioBytesReceived statistic 66 AudioBytesSent statistic 66 AudioTXBWLimitkbitPersec statistic 67
B
BooleanValue column 11 BROKER_AGENT_OFFLINE 11 BROKER_AGENT_ONLINE 11 BROKER_DAILY_MAX_USERS 11 BROKER_DESKTOP_LAUNCH_FAILURE 11 BROKER_DESKTOP_NOT_ENTITLED 11 BROKER_DESKTOP_PROTOCOL_NOT_ SUPPORTED 12 BROKER_DESKTOP_REQUEST 12 BROKER_EVENT_HANDLING_STARTED 12 BROKER_EVENT_HANDLING_STOPPED 12 BROKER_LOCALMODE_OLD_ANCHOR_ DELETE_FAILURE 12 BROKER_LOCALMODE_OPERATION_AUDIT_ FAILURE 12 BROKER_LOCALMODE_OPERATION_ FAILURE 12 BROKER_LOCALMODE_OPERATION_ SUCCESS 12 BROKER_MACHINE_ALLOCATED 12
BROKER_MACHINE_ASSIGNED_ UNAVAILABLE 12 BROKER_MACHINE_CANNOT_CONNECT 12 BROKER_MACHINE_CHECKEDOUT 12 BROKER_MACHINE_CONFIGURED_VIDEO_ SETTINGS 12 BROKER_MACHINE_NOT_READY 12 BROKER_MACHINE_OPERATION_DELETED 12 BROKER_MACHINE_PROTOCOL_NOT_ SUPPORTED 12 BROKER_MACHINE_PROTOCOL_ UNAVAILABLE 12 BROKER_MACHINE_REJECTED_SESSION 13 BROKER_MACHINE_SESSION_TIMEDOUT 13 BROKER_MULTIPLE_DESKTOPS_FOR_KIOSK_ USER 13 BROKER_POOL_CANNOT_ASSIGN 13 BROKER_POOL_COMANAGER_REQUIRED 13 BROKER_POOL_EMPTY 13 BROKER_POOL_NO_MACHINE_ASSIGNED 13 BROKER_POOL_NO_RESPONSES 13 BROKER_POOL_OVERLOADED 13 BROKER_POOL_POLICY_VIOLATION 13 BROKER_POOL_PROTOCOL_NOT_ SUPPORTED 13 BROKER_POOL_PROTOCOL_UNAVAILABLE 13 BROKER_POOL_TUNNEL_NOT_ SUPPORTED 13 BROKER_PROVISIONING_ERROR_CONFIG_ CLEARED 13 BROKER_PROVISIONING_ERROR_CONFIG_ SET 13 BROKER_PROVISIONING_ERROR_DISK_ CLEARED 13 BROKER_PROVISIONING_ERROR_DISK_LC_ RESERVATION_CLEARED 13 BROKER_PROVISIONING_ERROR_DISK_LC_ RESERVATION_SET 14 BROKER_PROVISIONING_ERROR_DISK_ SET 14 BROKER_PROVISIONING_ERROR_LICENCE_ CLEARED 14 BROKER_PROVISIONING_ERROR_LICENCE_ SET 14 BROKER_PROVISIONING_ERROR_ NETWORKING_CLEARED 14 BROKER_PROVISIONING_ERROR_ NETWORKING_SET 14 BROKER_PROVISIONING_ERROR_ RESOURCE_CLEARED 14 BROKER_PROVISIONING_ERROR_ RESOURCE_SET 14 BROKER_PROVISIONING_ERROR_TIMEOUT_ CUSTOMIZATION_CLEARED 14 BROKER_PROVISIONING_ERROR_TIMEOUT_ CUSTOMIZATION_SET 14
73
VMware, Inc.
BROKER_PROVISIONING_ERROR_VM_ CLONING 14 BROKER_PROVISIONING_ERROR_VM_ CUSTOMIZATION_ERROR 14 BROKER_PROVISIONING_ERROR_VM_ CUSTOMIZATION_NETWORKING 14 BROKER_PROVISIONING_ERROR_VM_ CUSTOMIZATION_TIMEOUT 14 BROKER_PROVISIONING_SVI_ERROR_ COMPOSER_AGENT_INIT_FAILED 14 BROKER_PROVISIONING_SVI_ERROR_ RECONFIG_FAILED 14 BROKER_PROVISIONING_SVI_ERROR_REFIT_ FAILED 14 BROKER_PROVISIONING_SVI_ERROR_ REMOVING_VM 14 BROKER_PROVISIONING_VERIFICATION_ FAILED_USER_ASSIGNED 15 BROKER_PROVISIONING_VERIFICATION_ FAILED_USER_CANNOT_BE_ ASSIGNED 15 BROKER_PROVISIONING_VERIFICATION_ FAILED_VMNAME_IN_USE 15 BROKER_SECURITY_SERVER_ADD_FAILED 15 BROKER_SECURITY_SERVER_ADD_FAILED_ PASSWORD_EXPIRED 15 BROKER_SECURITY_SERVER_ADD_FAILED_ PASSWORD_INCORRECT 15 BROKER_SECURITY_SERVER_ADD_FAILED_ PASSWORD_NOT_SET 15 BROKER_SECURITY_SERVER_ADDED 15 BROKER_SVI_ARCHIVE_UDD_FAILED 15 BROKER_SVI_ARCHIVE_UDD_SUCCEEDED 15 BROKER_SVI_ATTACH_UDD_FAILED 15 BROKER_SVI_ATTACH_UDD_SUCCEEDED 15 BROKER_SVI_DETACH_UDD_FAILED 15 BROKER_SVI_DETACH_UDD_SUCCEEDED 15 BROKER_USER_AUTHFAILED_ACCOUNT_ DISABLED 15 BROKER_USER_AUTHFAILED_ACCOUNT_ EXPIRED 15 BROKER_USER_AUTHFAILED_ACCOUNT_ LOCKED_OUT 15 BROKER_USER_AUTHFAILED_ACCOUNT_ RESTRICTION 15 BROKER_USER_AUTHFAILED_BAD_USER_ PASSWORD 15 BROKER_USER_AUTHFAILED_GENERAL 15 BROKER_USER_AUTHFAILED_NO_LOGON_ SERVERS 16 BROKER_USER_AUTHFAILED_PASSWORD_ EXPIRED 16 BROKER_USER_AUTHFAILED_PASSWORD_ MUST_CHANGE 16 BROKER_USER_AUTHFAILED_SECUREID_ ACCESS_DENIED 16
BROKER_USER_AUTHFAILED_SECUREID_ NEWPIN_REJECTED 16 BROKER_USER_AUTHFAILED_SECUREID_ WRONG_NEXTTOKEN 16 BROKER_USER_AUTHFAILED_SECUREID_ WRONG_STATE 16 BROKER_USER_AUTHFAILED_TIME_ RESTRICTION 16 BROKER_USER_NOT_AUTHORIZED 16 BROKER_USER_NOT_ENTITLED 16 BROKER_USERCHANGEDPASSWORD 16 BROKER_USERLOGGEDIN 16 BROKER_USERLOGGEDOUT 16 BROKER_VC_DISABLED 11, 16 BROKER_VC_ENABLED 11, 16 BROKER_VC_STATUS_CHANGED_CANNOT_ LOGIN 16 BROKER_VC_STATUS_CHANGED_DOWN 16 BROKER_VC_STATUS_CHANGED_INVALID_ CREDENTIALS 16 BROKER_VC_STATUS_CHANGED_NOT_YET_ CONNECTED 16 BROKER_VC_STATUS_CHANGED_ RECONNECTING 16 BROKER_VC_STATUS_CHANGED_ UNKNOWN 16 BROKER_VC_STATUS_CHANGED_UP 16 BrokerId attribute 25 BrokerName attribute 25 BytesReceived statistic 66 BytesSent statistic 66
C
class definitions in View MPs 61 cmdlets 29 columns in event database tables 10 -composerTask parameter 38 configuration changes, displaying for VMware View 43 configuration settings displaying for View Connection Server 39 updating for View Connection Server 39 connection broker events 11 Connection Server Role Performance Data view 58 ConnectionServerServiceCheck monitor 58
D
data disks, displaying for virtual machines 43 datastore objects determining paths to 47 datastores adding or removing 47 -defaultProtocol parameter 35 -deletePolicy parameter 35
74
VMware, Inc.
Index
deletion policy, setting default 35 desktop entitlements adding 42 displaying information about 42 removing 42 desktop pools 39 adding provisioned by terminal servers 41 creating 40 displaying information about virtual machines in 42 removing 40 resetting virtual machines in 43 resizing 45 setting type of 37 updating 40 updating provisioned by terminal servers 41 DesktopDisplayName attribute 25 DesktopId attribute 25 column 10 desktops creating manually provisioned 41 creating manually unmanaged 41 updating manually provisioned 41 updating manually unmanaged 41 DirectoryServiceCheck monitor 59 discovery script displaying discovered objects 57 operation of 56 running 57 DiskPath attribute 25 display protocol, setting default 35 displaying discovered objects for SCOM 57 information about alerts in SCOM 60 managed objects for SCOM 58 View performance data in SCOM 60 displaying help for View PowerCLI cmdlets 30 displaying information about 39 domain connectivity monitor 59 DomainName attribute 25 domains displaying information about users and groups 41 excluding from SCOM monitoring 60 DomainUser attribute 25
removing 42 error handling, View PowerCLI cmdlets 30 errors when using View PowerCLI cmdlets 30 escape character sequences 31 escaping special characters 31 event database attributes 25 columns 10 integrating with 9 sample queries and views 27 tables 9 event database connectivity monitor 59 event database schema 10 event table 9 event_data table 9 event_data_historical table 9 event_historical table 9 EventID column 10, 11 events connection broker 11 displaying available views for reporting 43 displaying configuration changes 43 displaying user events 43 View Administrator 17 View Agent 17 EventType column 10 execution policy, setting to unrestricted for View PowerCLIcmdlets 30 exporting LDAP configuration data 50
F
Flash setting default quality 36 setting default throttling 36 -flashQuality parameter 36 -flashThrottling parameter 36 FolderPath column 10 FrameworkServiceCheck monitor 58, 59
G
Get-ComposerDomain cmdlet 31 Get-ConnectionBroker cmdlet 31 Get-DesktopPhysicalMachine cmdlet 31 Get-DesktopVM cmdlet 31 Get-EventReport cmdlet 31 Get-EventReportList cmdlet 32 Get-GlobalSetting cmdlet 32 Get-Help cmdlet 30 Get-License cmdlet 32 Get-LocalSession cmdlet 32 Get-Monitor cmdlet 32 Get-Pool cmdlet 32 Get-PoolEntitlement cmdlet 32
75
E
enabling proxy agent for SCOM 60 EntitlementDisplay attribute 25 entitlements adding 42 displaying information about 42
VMware, Inc.
Get-ProfileDisk cmdlet 32 Get-RemoteSession cmdlet 32 Get-TerminalServer cmdlet 32 Get-User cmdlet 32 Get-ViewVC cmdlet 32 global configuration, displaying for VMware View 43 Group Node State view 58 Group State view 58 GroupId column 10 Groups view 58 groups, displaying information about 41
displaying information about 42 LocalModeMessage attribute 25 LocalModeOperation attribute 25 logout delay period, setting global value for VMware View 44 logout warning message, setting global value for VMware View 44 LUNId column 10
M
MachineId attribute 26 MachineId column 10 MachineName attribute 26 MaintenanceMode attribute 26 managed objects, displaying 58 management packs 55 MessageBusServiceCheck monitor 59 modifying LDAP configuration data 50 Module column 10 ModuleAndEventText column 10 monitors, available with SCOM 58
H
help, displaying for View PowerCLI cmdlets 30
I
ImagingActiveMinimumQuality statistic 67, 69 ImagingBytesReceived statistic 67 ImagingBytesSent statistic 67 ImagingDecoderCapabilitykbitPersec statistic 67 ImagingEncodedFramesPersec statistic 67 importing LDAP configuration data using LDIFDE 54 LDAP configuration data using vdmimport 53 View MPs 56 integration interfaces, introduced 8 IntValue column 11 inventory objects determining paths to 46
N
Name column 11 naming View Connection Server groups 56 Node column 10
O
ObjectID attribute 26 ObjectType attribute 26
L
LDAP backup frequency, setting default 36 LDAP configuration data 49 exporting using vdmexport 50 importing using LDIFDE 54 importing using vdmimport 53 modifying 50 LDAP Data Interchange Format (LDIF) 49 -ldapBackupFrequency parameter 36 LDIF files 49 LDIFDE command 54 licenses adding 44 displaying 44 linked-clone desktop pools creating 40 rebalancing 40 recomposing 41 refreshing 41 updating 40 listing, View PowerCLI cmdlets 30 loading, View PowerCLI cmdlets 30 local desktops
76
P
PackageName attribute 26 PacketsReceived statistic 66 PacketsSent statistic 66 parameters, for View PowerCLI cmdlets 35 PathName attribute 26 PCoIP audio statistics 66 general session statistics 66 imaging statistics 67 network statistics 68 USB statistics 69 WMI namespace 65 PCoIP statistics 65 performance counter settings 59 performance data, displaying for View in SCOM 60 performance monitor 58 physical computers, displaying information about 43 PolicyDisplayName attribute 26 PolicyObject attribute 26 PolicyValue attribute 26 pool type, setting default 37
VMware, Inc.
Index
-poolType parameter 37 power policy, setting default 37 -powerPolicy parameter 37 PowerShell cmdlets 29 PowerShell console, starting 30 prelogin message, setting global value for VMware View 44 primary key 10 ProtocolId attribute 26 proxy agent, enabling for SCOM 60
R
ramp factor, changing for vCenter servers 39 rebalancing linked-clone desktop pools 40 recomposing linked-clone desktop pools 41 refresh policy, setting default 38 refreshing linked-clone desktop pools 41 -refreshPolicyType parameter 38 relationship definitions in View MPs 61 remote sessions disconnecting 42 displaying information about 42 logging out 42 Remove-Pool cmdlet 32 Remove-PoolEntitlement cmdlet 32 Remove-UserOwnership cmdlet 32 Remove-ViewVC cmdlet 32 removing desktop pools 40 resizing desktop pools 45 RoundTripLatencyms statistic 68 running discovery script for SCOM 57 RXBWPeakkbitPersec statistic 68 RXPacketsLost statistic 66
S
schema, event database 10 SCOM class and relationship definitions for View 61 closing alerts 61 displaying information about alerts 60 displaying View performance data 60 enabling a proxy agent 60 excluding domains from monitoring 60 integrating with VMware View 55 performance monitor 58 restarting View component services 60 service component monitors 58 SCOM views and monitors 58 Secure Gateway Role Performance Data view 58 SecureGatewayCheck monitor 59 SecureGatewayServerServiceCheck monitor 59 SecurityServerId attribute 26 Send-LinkedCloneRebalance cmdlet 32
VMware, Inc.
Send-LinkedCloneRecompose cmdlet 32 Send-LinkedCloneRefresh cmdlet 32 Send-LocalSessionRollback cmdlet 32 Send-SessionDisconnect cmdlet 32 Send-SessionLogoff cmdlet 32 Send-VMReset cmdlet 32 service component monitors 58 services, restarting from SCOM 60 session timeout, setting global value for VMware View 44 SessionDurationSeconds statistic 66 Set-ExecutionPolicy cmdlet 30 Set-License cmdlet 32 setting default display protocol 35 deletion policy 35 Flash quality 36 Flash throttling 36 LDAP backup frequency 36 pool type 37 power policy 37 refresh policy 38 smartt card authentication 38 unrestricted execution policy 30 Severity column 10 smart card authentication, setting 38 -smartCardSetting parameter 38 Source column 10 special characters 31 SSL, setting global value for View Client 44 starting PowerShell console 30 statistics audio 66 general session 66 imaging 67 network 68 USB 69 StrValue column 11 SVIAdminFqdn attribute 26 SVIAdminID attribute 26 SVIAdminName attribute 26 SVIDeploymentGroupID attribute 26 SVIOperation attribute 26 SVIParentVM attribute 26 SVIPath attribute 26 SVISnapshot attribute 26 SVIVMID attribute 26 System Center Operations Manager (SCOM) 55
T
tables, event database 9 terminal servers adding desktop pools provisioned by 41
77
displaying information about 41 updating desktop pools provisioned by 41 The input object cannot be bound 30 ThinAppDisplayName attribute 26 ThinAppId attribute 26 column 10 ThinAppRepositoryName attribute 26 ThinAppRepositoryPath attribute 26 Time attribute 26 column 10 timeout, setting global value for VMware View 44 TimeValue column 11 TRANSFER_SERVER_PACKAGE_ DISPLACEMENT 25 TRANSFER_SERVER_PACKAGE_MISSING 25 TRANSFER_SERVER_PACKAGE_ RECOVERY 25 TRANSFER_SERVER_PUBLISH_PACKAGE_ FAILURE 25 TRANSFER_SERVER_REAPER_FAILED 25 TRANSFER_SERVER_STATE_CHANGED 25 TransferServerDisplay attribute 26 TransferServerNewState attribute 26 TransferServerOldState attribute 26 TransferServerStateInput attribute 26 TXBWActiveLimitkbitPersec statistic 68 TXBWLimitkbitPersec statistic 68 TXPacketsLost statistic 66 Type column 11
displaying information about 41 removing entitlements to desktop pools 42 removing ownership of virtual machines 43 UserSID column 10
V
VCAddress attribute 26 vCenter pathnames,escape sequences 31 vCenter Server 7 vCenter server connectivity monitor 59 vCenter servers adding to View Connection Server 39 changing ramp factor for 39 displaying for View Connection Server 39 displaying information about virtual machines configured on 42 removing from View Connection Server 39 vdmexport command 50 vdmimport command 53 View Administrator 7 View Administrator events 17 View Agent 7 View Agent events 17 View Client 7 setting SSL for connections 44 with Local Mode 7 View Composer 7 View Composer maintenance task types 38 View Connection Server 7 adding vCenter servers to configuration 39 checking if running 44 displaying configuration settings for 39 displaying configured vCenter servers 39 removing vCenter servers from configuration 39 updating configuration settings for 39 View Connection Server groups, naming 56 View discovery script 56 View MPs class and relationship definitions 61 importing 56 introduction to 55 View PowerCLI cmdlets 29 displaying help 30 error handling 30 error using pipe with View PowerCLI cmdlets 30 introduction to 29 listing 30 loading 30 parameters 35 setting unrestricted execution policy for 30 View Transfer Server 7
U
Update-AutomaticLinkedClonePool cmdlet 31 Update-AutomaticPool cmdlet 31 Update-ConnectionBroker cmdlet 31 Update-GlobalSetting cmdlet 32 Update-ManualPool cmdlet 32 Update-ManualUnmanagedPool cmdlet 32 Update-TerminalServerPool cmdlet 32 Update-UserOwnership cmdlet 32 Update-ViewVC cmdlet 32 USBBytesReceived statistic 69 USBBytesSent statistic 69 user events, displaying for VMware View 43 UserCount attribute 26 UserDiskPathId column 10 UserDisplayName attribute 26 UserName attribute 26 users adding entitlements to desktop pools 42 changing ownership of virtual machines 43 displaying entitlements to desktop pools 42
78
VMware, Inc.
Index
views available with SCOM 58 displaying those available for reporting events 43 virtual machines displaying active data disks for 43 displaying information about 42 removing ownership of 43 resetting 43 updating ownership of 43 VMware View adding licenses 44 displaying configuration changes 43 displaying global configuration of 43 displaying licenses 44 displaying user events 43 event database 9 integrating with SCOM 55 overview 7 setting global value of logout delay period 44 setting global value of logout warning message 44 setting global value of prelogin message 44 setting global value of session timeout 44 setting global value of SSL use by View Client 44 VMware.View.Cluster class 61 VMware.View.Cluster.Node class 61 VMware.View.Cluster.Node.V0405 class 62 VMware.View.Clusters class 61 VMware.View.Component class 61 VMware.View.Component.ConnectionServer class 61 VMware.View.Component.ConnectionServer.V0405 class 62 VMware.View.Component.Directory class 61 VMware.View.Component.Directory.V0405 class 62 VMware.View.Component.Framework class 62 VMware.View.Component.Framework.V0405 class 62 VMware.View.Component.MessageBus class 62 VMware.View.Component.MessageBus.V0405 class 63 VMware.View.Component.Security Server.V0405 class 63 VMware.View.Component.SecurityGateway class 62 VMware.View.Component.SecurityGateway.V0405 class 63 VMware.View.Component.SecurityServer class 62 VMware.View.Component.Web class 62 VMware.View.Component.Web.V0405 class 63 VMware.View.ConnectionServerRole class 62
VMware.View.ConnectionServerRole.V0405 class 63 VMware.View.Discovery.mp 55 VMware.View.Image.Library.mp 56 VMware.View.Library.mp 56 VMware.View.Monitoring.mp 55 VMware.View.NodeRole class 62 VMware.View.SecurityServerRole class 62 VMware.View.SecurityServerRole.V0405 class 63
W
WebServiceCheck monitor 59 WMI namespace for PCoIP statistics 65
VMware, Inc.
79
80
VMware, Inc.