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-001913-00
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:
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
2 VMware, Inc.
Contents
View Integration5
Introduction to View Integration7
1
View Components 7
Integration Interfaces to View 8
Integrating View with the Event Database9
2
Event Database Tables and Schemas 9
Connection Broker Events 11
View Agent Events 16
View Administrator Events 17
Event Message Attributes 24
Sample Database Queries and Views 25
Using View PowerCLI27
3
Getting Started with View PowerCLI 27
View Administrator, View PowerCLI, and vdmadmin Compared 30
View PowerCLI cmdlet Reference 32
View PowerCLI cmdlet Parameters 34
Examples of Using View PowerCLI cmdlets 38
Examples of Using View PowerCLI to Perform Advanced Tasks 45
Assigning Multiple Network Labels to a Desktop Pool 50
VMware, Inc.
Customizing LDAP Data59
4
Introduction to LDAP Configuration Data 59
Modifying LDAP Configuration Data 60
Integrating View with Microsoft SCOM65
5
Setting Up a SCOM Integration 65
Monitoring View in the Operations Manager Console 70
Examining PCoIP Session Statistics with WMI75
6
Using PCoIP Session Statistics 75
General PCoIP Session Statistics 76
PCoIP Audio Statistics 76
PCoIP Imaging Statistics 77
PCoIP Network Statistics 78
PCoIP USB Statistics 79
Examples of Using PowerShell cmdlets to Examine PCoIP Statistics 80
3
View Integration
Setting Desktop Policies with Start Session Scripts81
7
Index87
Obtaining Input Data for a Start Session Script 81
Best Practices for Using Start Session Scripts 81
Preparing a View Desktop to Use a Start Session Script 82
Sample Start Session Scripts 84
4 VMware, Inc.
View Integration
The View Integration document describes how to integrate View™ software with third-party software such
as Windows PowerShell, business intelligence reporting engines, and Microsoft System Center Operations
Manager (SCOM).
Intended Audience
This document is intended for anyone who wants to customize or integrate software to work with View.
The information in this document is written for experienced Windows or Linux system administrators who
are familiar with virtual machine technology and datacenter operations.
VMware, Inc. 5
View Integration
6 VMware, Inc.
Introduction to View Integration1
With View, system administrators can provision desktops and control user access to these desktops. Client
software connects users to virtual machines running in VMware vSphere™, or to physical systems running
within your network environment. In addition, View administrators can configure Remote Desktop Services
(RDS) hosts to provide View desktop and application sessions to client devices.
This chapter includes the following topics:
“View Components,” on page 7
n
“Integration Interfaces to View,” on page 8
n
View Components
You can use View with VMware vCenter Server to create desktops from virtual machines that are running
on VMware ESX® or VMware ESXi™ hosts and deploy these desktops to end users. You can also install
View on RDS hosts to deploy desktops and applications to end users. View uses your existing Active
Directory infrastructure for user authentication and management.
After you create a desktop or application, authorized end users can use Web-based or locally installed client
software to securely connect to centralized virtual machines, back-end physical systems, or RDS hosts.
View consists of the following major components.
View Connection Server
View Agent
Horizon Client
View Administrator
VMware, Inc. 7
A software service that acts as a broker for client connections by
authenticating and then directing incoming user requests to the appropriate
virtual machine, physical system, or RDS host.
A software service that is installed on all guest virtual machines, physical
systems, or RDS hosts to allow them to be managed by View. View Agent
provides features such as connection monitoring, virtual printing, USB
support, and single sign-on.
A software application that communicates with View Connection Server to
enable users to connect to their desktops.
A Web application that enables View administrators to configure View
Connection Server, deploy desktop and application pools, manage machines,
control user authentication, initiate and examine system events, and perform
analytical activities.
View Integration
vCenter Server
View Composer
A server that acts as a central administrator for ESX/ESXi hosts that are
connected on a network. A vCenter Server instance provides the central
point for configuring, provisioning, and managing virtual machines in the
datacenter.
A software service that is installed on a vCenter Server instance to enable
View to rapidly deploy multiple linked-clone desktops from a single
centralized base image.
Integration Interfaces to View
You can use several interfaces to integrate View with external applications.
Event database
View PowerCLI
Lightweight Directory
Access Protocol (LDAP)
Microsoft System
Center Operations
Manager (SCOM)
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.
You can use the PowerShell interface to perform a wide variety of
administration tasks on View components.
You can export and import LDAP configuration data from and into View.
You can create scripts that update this configuration data without accessing
View Administrator directly.
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.
8 VMware, Inc.
Integrating View with the Event
Database2
You can configure View to record events to a Microsoft SQL Server or Oracle database. View records events
such as end-user actions, administrator actions, alerts that report system failures and errors, and statistical
sampling.
End-user actions include logging and starting desktop and application sessions. Administrator actions
include adding entitlements and creating desktop and application pools. An example of statistical sampling
is 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
n
“Connection Broker Events,” on page 11
n
“View Agent Events,” on page 16
n
“View Administrator Events,” on page 17
n
“Event Message Attributes,” on page 24
n
“Sample Database Queries and Views,” on page 25
n
Event Database Tables and Schemas
View uses database tables to implement the event database. The event database prepends the names of these
tables with a prefix that you define when you set up the database.
Event Database Tables
The following table shows the database tables that implement the event database in View.
Table 2‑1. Event Database Tables
Table NameDescription
eventMetadata and search optimization data for recent events.
event_dataData values for recent events.
event_data_historicalData values for all events.
event_historicalMetadata and search optimization data for all events.
VMware, Inc. 9
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.
IMPORTANT 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.
A unique primary key, EventID, identifies each event that View records in the event and event_historical
tables. 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.
For information about setting up the event database, see the View Installation document.
NOTE Events might 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.
Event Database Schemas
The following table shows the schema for the event and event_historical database tables.
Table 2‑2. Schema for the event and event_historical Tables
Column NameOracle Data TypeSQL Server Data TypeDescription
AcknowledgedSMALLINTtinyintWhether View acknowledged the event.
0 = false
n
1 = true
n
DesktopIdNVARCHAR2(512)nvarchar(512)Desktop ID of the associated pool.
EventIDINTEGERintUnique primary key for the event.
EventTypeNVARCHAR2(512)nvarchar(512)Event name that corresponds to an item
in the message catalog. For example,
BROKER_USERLOGGEDIN.
FolderPathNVARCHAR2(512)nvarchar(512)Full path of the folder that contains the
associated object.
GroupIdNVARCHAR2(512)nvarchar(512)SID of the associated group in Active
Directory.
LUNIdNVARCHAR2(512)nvarchar(512)ID of the LUN that stores the associated
object.
MachineIdNVARCHAR2(512)nvarchar(512)ID of the associated physical or virtual
machine.
ModuleNVARCHAR2(512)nvarchar(512)View component that raised the event.
For example, Admin, Broker, Tunnel,
Framework, Client, or Agent.
ModuleAndEventTextNVARCHAR2(512)nvarchar(512)Event message with values substituted
for attribute parameters.
NodeNVARCHAR2(512)nvarchar(512)Name of the virtual device node.
SeverityNVARCHAR2(512)nvarchar(512)Severity level. For example, INFO,
WARNING, ERROR,
AUDIT_SUCCESS, AUDIT_FAIL.
SourceNVARCHAR2(512)nvarchar(512)Identifier for the source of the event.
10 VMware, Inc.
Chapter 2 Integrating View with the Event Database
Table 2‑2. Schema for the event and event_historical Tables (Continued)
Column NameOracle Data TypeSQL Server Data TypeDescription
ThinAppIdNVARCHAR2(512)nvarchar(512)ID of the associated ThinApp™ object.
TimeTIMESTAMPdatetimeTime at which the event occurred,
measured from the epoch (January 1,
1970).
UserDiskPathIdNVARCHAR2(512)nvarchar(512)ID of the user disk.
UserSIDNVARCHAR2(512)nvarchar(512)SID of the associated user in Active
Directory.
The following table shows the schema for the event_data and event_data_historical database tables.
Table 2‑3. Schema for the event_data and event_data_historical Tables
Column NameOracle Data TypeSQL Server Data TypeDescription
BooleanValueSMALLINTtinyintValue of a Boolean attribute.
0 = false
n
1 = true
n
EventIDINTEGERintUnique primary key for the event.
IntValueINTEGERintValue of an integer attribute.
NameNVARCHAR2(512)nvarchar(512)Attribute name (for example,
UserDisplayName).
StrValueNVARCHAR2(512)nvarchar(512)Value of a string attribute. For other
types of attributes, this column
contains an interpretation of the data
type as a string.
TimeValueTIMESTAMPdatetimeValue of a date and time attribute.
TypeSMALLINTtinyintThe data type of the attribute.
0 = StrValue
n
1 = IntValue
n
2 = TimeValue
n
3 = BooleanValue
n
Connection Broker Events
Connection broker events report View Connection Server-related information, such as desktop and
application sessions, user authentication failures, and provisioning errors.
The BROKER_DAILY_MAX_DESKTOP_SESSIONS event reports the maximum number of concurrent
desktop sessions over a 24-hour period. If a user runs multiple desktop sessions concurrently, each desktop
session is counted separately.
The BROKER_DAILY_MAX_APP_USERS event reports the maximum number of concurrent application
users over a 24-hour period. If a user runs multiple applications concurrently, the user is counted only once.
Short-lived sessions might not be included in the count because the sampling is performed every five
minutes.
The BROKER_VC_DISABLED and BROKER_VC_ENABLED events report the state of the vCenter driver
that View uses to track a vCenter Server instance.
The BROKER_VC_STATUS_* events report the state of a vCenter Server instance.
The following table lists all the event types for View Connection Server.
VMware, Inc. 11
View Integration
Table 2‑4. Connection Broker Events
Event TypeSeverityModuleAndEventText
BROKER_AGENT_OFFLINEBROKER_AGENT_OFF
LINE WARNING
The agent running on machine ${MachineName} has not
responded to queries, marking it as offline
BROKER_AGENT_ONLINEWARNINGThe agent running on machine ${MachineName} is
responding again, but did not send a startup message
BROKER_APPLICATION_LAUNCH_FAILUREERRORUnable to launch from Pool ${PoolId} for user $
{UserDisplayName}: The broker encountered an error while
processing the request, please contact support for assistance
BROKER_APPLICATION_MISSINGWARNINGAt least ${ApplicationMissingCount} applications, including
${ApplicationExecutable}, are not installed on $
{MachineName} in Pool ${PoolId}
BROKER_APPLICATION_NOT_ENTITLEDAUDIT_FAILUnable to launch from Pool ${PoolId} for user $
{UserDisplayName}: User is not entitled to this Pool
BROKER_APPLICATION_PROTOCOL_NOT_SUPP
ORTED
AUDIT_FAILUnable to launch from Pool ${PoolId} for user $
{UserDisplayName}: Requested protocol ${ProtocolId} is not
supported
AUDIT_FAILFailed to add security server ${SecurityServerId}, pairing
password not set
BROKER_SECURITY_SERVER_ADDEDAUDIT_SUCCESSSecurity server ${SecurityServerId} added
BROKER_SVI_ARCHIVE_UDD_FAILEDAUDIT_FAILFailed to archive user data disk ${UserDiskName} to location
${SVIPath}
BROKER_SVI_ARCHIVE_UDD_SUCCEEDEDAUDIT_SUCCESSArchived user data disk ${UserDiskName} to location $
{SVIPath}
BROKER_SVI_ATTACH_UDD_FAILEDAUDIT_FAILFailed to attach user data disk ${UserDiskName} to VM $
{SVIVMID}
BROKER_SVI_ATTACH_UDD_SUCCEEDEDAUDIT_SUCCESSAttached user data disk ${UserDiskName} to VM $
{SVIVMID}
BROKER_SVI_DETACH_UDD_FAILEDAUDIT_FAILFailed to detach user data disk ${UserDiskName} from VM $
{SVIVMID}
BROKER_SVI_DETACH_UDD_SUCCEEDEDAUDIT_SUCCESSDetached user data disk ${UserDiskName} from VM $
{SVIVMID}
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
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because the
account is disabled
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because the
account has expired
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because the
account is locked out
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because of
an account restriction
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because of a
bad username or password
BROKER_USER_AUTHFAILED_GENERALAUDIT_FAILUser ${UserDisplayName} failed to authenticate
BROKER_USER_AUTHFAILED_NO_LOGON_
SERVERS
BROKER_USER_AUTHFAILED_PASSWORD_
EXPIRED
BROKER_USER_AUTHFAILED_PASSWORD_
MUST_CHANGE
BROKER_USER_AUTHFAILED_SECUREID_
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because
there are no logon servers
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because the
password has expired
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because the
password must change
AUDIT_FAILSecurID access denied for user ${UserDisplayName}
ACCESS_DENIED
BROKER_USER_AUTHFAILED_SECUREID_
NEWPIN_REJECTED
BROKER_USER_AUTHFAILED_SECUREID_
WRONG_NEXTTOKEN
BROKER_USER_AUTHFAILED_SECUREID_
WRONG_STATE
BROKER_USER_AUTHFAILED_TIME_
RESTRICTION
AUDIT_FAILSecurID access denied for user ${UserDisplayName} because
new pin was rejected
AUDIT_FAILSecurID access denied for user ${UserDisplayName} because
wrong next token entered
AUDIT_FAILSecurID access denied for user ${UserDisplayName} because
of incorrect state
AUDIT_FAILUser ${UserDisplayName} failed to authenticate because of a
time restriction
BROKER_USER_NOT_AUTHORIZEDAUDIT_FAILUser ${UserDisplayName} has authenticated, but is not
authorized to perform the operation
BROKER_USER_NOT_ENTITLEDAUDIT_FAILUser ${UserDisplayName} has authenticated, but is not
entitled to any Pools
VMware, Inc. 15
View Integration
Table 2‑4. Connection Broker Events (Continued)
Event TypeSeverityModuleAndEventText
BROKER_USERCHANGEDPASSWORDAUDIT_SUCCESSPassword for ${UserDisplayName} has been changed by the
user
BROKER_USERLOGGEDINAUDIT_SUCCESSUser ${UserDisplayName} has logged in
BROKER_USERLOGGEDOUTAUDIT_SUCCESSUser ${UserDisplayName} has logged out
BROKER_VC_DISABLEDINFOvCenter at address ${VCAddress} has been temporarily
disabled
BROKER_VC_ENABLEDINFOvCenter at address ${VCAddress} has been enabled
BROKER_VC_STATUS_CHANGED_CANNOT_
LOGIN
BROKER_VC_STATUS_CHANGED_DOWNINFOvCenter at address ${VCAddress} is down
BROKER_VC_STATUS_CHANGED_INVALID_
CREDENTIALS
BROKER_VC_STATUS_CHANGED_NOT_YET_
CONNECTED
BROKER_VC_STATUS_CHANGED_
RECONNECTING
BROKER_VC_STATUS_CHANGED_UNKNOWNWARNINGThe status of vCenter at address ${VCAddress} is unknown
BROKER_VC_STATUS_CHANGED_UPINFOvCenter at address ${VCAddress} is up
WARNINGCannot log in to vCenter at address ${VCAddress}
WARNINGvCenter at address ${VCAddress} has invalid credentials
INFONot yet connected to vCenter at address ${VCAddress}
INFOReconnecting to vCenter at address ${VCAddress}
View Agent Events
View Agent events report View Agent-related information, such as the users who have logged in to or
disconnected from a specific machine, whether View Agent has shut down on a specific machine, and
whether View Agent has sent a start up message from a specific machine to View Connection Server.
Table 2‑5. View Agent Events
Event TypeSeverityModuleAndEventText
AGENT_CONNECTEDINFOUser ${UserDisplayName} has logged in to a new session on machine $
{MachineName}
AGENT_DISCONNECTEDINFOUser ${UserDisplayName} has disconnected from machine $
{MachineName}
AGENT_ENDEDINFOUser ${UserDisplayName} has logged off machine ${MachineName}
AGENT_PENDINGINFOThe agent running on machine ${MachineName} has accepted an
allocated session for user ${UserDisplayName}
AGENT_PENDING_ EXPIREDWARNINGThe pending session on machine ${MachineName} for user $
{UserDisplayName} has expired
AGENT_RECONFIGUREDINFOMachine ${MachineName} has been successfully reconfigured
AGENT_RECONNECTEDINFOUser ${UserDisplayName} has reconnected to machine ${MachineName}
AGENT_RESUMEINFOThe agent on machine ${MachineName} sent a resume message
AGENT_SHUTDOWNINFOThe agent running on machine ${MachineName} has shut down, this
machine will be unavailable
AGENT_STARTUPINFOThe agent running on machine ${MachineName} has contacted the
connection server and sent a startup message
AGENT_SUSPENDINFOThe agent on machine ${MachineName} sent a suspend message
16 VMware, Inc.
Chapter 2 Integrating View with the Event Database
View Administrator Events
View Administrator events report information about actions that users initiate in View Administrator.
Table 2‑6. View Administrator Events
EventTypeSeverityModuleAndEventText
ADMIN_ADD_DESKTOP_ENTITLEMENTAUDIT_SUCCESS${EntitlementDisplay} was entitled to Pool $
ADMIN_VC_LICINV_ALARM_DISABLEDAUDIT_SUCCESSAlarm on VC server ${VCAddress} for License
Inventory monitoring was disabled as all
Hosts have desktop licenses
ADMIN_VC_REMOVE_FAILEDAUDIT_FAIL${UserDisplayName} failed to remove VC
server ${VCAddress}
ADMIN_VC_REMOVEDAUDIT_SUCCESS${UserDisplayName} removed VC server $
{VCAddress}
VMware, Inc. 23
View Integration
Event Message Attributes
ModuleAndEventText messages use certain attributes. To determine the data type for an attribute, you can
examine its value in the type column in the event_data or event_data_historical table.
Table 2‑7. Attributes that ModuleAndEventText Messages Use
Attribute NameDescription
AdminFolderNameName of a folder that requries privileged access.
AdminPermissionEntityName of an object that requires privileged access.
AdminPrivilegeNameName of an administrative privilege.
AdminRoleNameName of an administrative role.
AdminRoleNewNameNew name of an administrative role.
AttrChangeTypeType of change that was applied to a generic attribute.
AttrNameName of a generic attribute.
AttrValueValue of a generic attribute.
BrokerIdIdentifier of a View Connection Server instance.
BrokerNameName of a View Connection Server instance.
DesktopDisplayNameDisplay name of a desktop pool.
DesktopIdIdentifier of a desktop pool.
EntitlementDisplayDisplay name of a desktop entitlement.
MachineIdName of a physical or virtual machine.
MachineNameName of a physical or virtual machine.
MaintenanceModeMaintenance mode state.
ObjectIDIdentifier of an inventory object.
ObjectTypeType of an inventory object.
PolicyDisplayNameDisplay name of a policy.
PolicyObjectIdentifier of a policy object.
PolicyValueValue of a policy object.
ProtocolIdIdentifier of a display protocol.
SecurityServerIdIdentifier of a security server.
SVIAdminFqdnFQDN of a QuickPrep domain.
SVIAdminIDIdentifier of a QuickPrep domain.
SVIAdminNameName of a QuickPrep domain.
SVIDeploymentGroupIDIdentifier of a View Composer deployment group.
SVIOperationName of a View Composer operation.
SVIParentVMParent virtual machine in View Composer.
SVIPathPath of an object in View Composer.
SVISnapshotSnapshot in View Composer.
SVIVMIDIdentifier of a virtual machine in View Composer.
ThinAppDisplayNameDisplay name of a ThinApp object.
ThinAppIdIdentifier of a ThinApp object.
24 VMware, Inc.
Table 2‑7. Attributes that ModuleAndEventText Messages Use (Continued)
Attribute NameDescription
ThinAppRepositoryNameName of a ThinApp repository
ThinAppRepositoryPathPath of a ThinApp repository.
TimeDate and time value.
UserCountMaximum number of desktop users over a 24-hour period.
UserDiskNameName of a user data disk.
UserDisplayNameUser name in the form DOMAIN\username.
UserNameName of a user in Active Directory.
VCAddressURL of a vCenter Server.
Sample Database Queries and Views
You can query the event_historical database to display error events, warning events, and specific recent
events.
NOTE Replace the dbo.VE_ prefix in the following examples with the appropriate prefix for your event
database.
Chapter 2 Integrating View with the Event Database
List Error Events
The following query displays 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’
);
List Warning Events
The following query displays all warning events from the event_historical table.
CREATE VIEW warning_events AS
(
SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.ModuleAndEventText
FROM dbo.VE_event_historical AS ev
WHERE ev.Severity = ‘WARNING’
);
List Recent Events
The following query lists 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’
);
VMware, Inc. 25
View Integration
The following query lists 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’
);
The following query lists 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’
);
The following query lists all recent events where an administrator removed a desktop pool.
CREATE VIEW desktop_pool_removed_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 = ‘ADMIN_DESKTOP_REMOVED’ AND
ed1.Name = ‘UserDisplayName’ AND ed2.Name = ‘DesktopId’
);
The following query lists 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.EventType = ‘ADMIN_THINAPP_REPO_ADDED’ AND
ed1.Name = ‘UserDisplayName’ AND ed2.Name = ‘ThinAppRepositoryName’ AND
ed3.Name = ‘ThinAppRepositoryPath’
);
26 VMware, Inc.
Using View PowerCLI3
View PowerCLI provides an easy-to-use PowerShell interface to View. You can use View PowerCLI cmdlets
to perform various administration tasks on View components.
This chapter includes the following topics:
“Getting Started with View PowerCLI,” on page 27
n
“View Administrator, View PowerCLI, and vdmadmin Compared,” on page 30
n
“View PowerCLI cmdlet Reference,” on page 32
n
“View PowerCLI cmdlet Parameters,” on page 34
n
“Examples of Using View PowerCLI cmdlets,” on page 38
n
“Examples of Using View PowerCLI to Perform Advanced Tasks,” on page 45
n
“Assigning Multiple Network Labels to a Desktop Pool,” on page 50
n
Getting Started with View PowerCLI
PowerShell is a command line and scripting environment designed for Microsoft Windows. PowerShell uses
the .NET object model and provides administrators with management and automation capabilities. You
work with PowerShell by running commands, which are called cmdlets in PowerShell. The command line
syntax for View PowerCLI cmdlets is the same as generic PowerShell syntax.
VMware, Inc.
The View PowerCLI cmdlets are defined in the PowershellServiceCmdlets.dll file, which is installed in the
C:\Program Files\VMware\VMware View\Server\bin directory. The PowershellServiceCmdlets.dll file
constitutes the VMware.View.Broker snapin.
You can edit and extend the View PowerCLI cmdlets script configuration file, InitViewCmdlets.ps1, to
define cmdlet aliases, configure the environment, and set startup actions. InitViewCmdlets.ps1 is in the
Extras folder in the View installation directory.
You can use View PowerCLI cmdlets in conjunction with vSphere PowerCLI cmdlets. vSphere PowerCLI
cmdlets provide an administrative interface to VMware vSphere. If vSphere PowerCLI is installed on a View
Connection Server instance, the vSphere PowerCLI cmdlets load when you launch View PowerCLI.
You can refer to virtual machines and vCenter Server instances by ID in View PowerCLI, but you cannot
pass these entities as objects. For other vSphere objects, such as resource pools and folders, you must
provide a full path. You can use View PowerCLI cmdlets to examine the configuration of vCenter Server
instances within View.
For general information about using PowerShell, see the Microsoft documentation.
27
Loading...
+ 61 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.