7.0
Table Of Contents
- View Integration
- Contents
- View Integration
- Introduction to View Integration
- Integrating View with the Event Database
- Using View PowerCLI
- Getting Started with View PowerCLI
- View Administrator, PowerCLI Cmdlets, and View Command-Line Interfaces Compared
- View PowerCLI cmdlet Reference
- View PowerCLI cmdlet Parameters
- Examples of Using View PowerCLI cmdlets
- Managing View Connection Server Instances
- Managing vCenter Server Instances in View
- Managing Desktop Pools
- Creating and Updating Automatically Provisioned Desktop Pools
- Creating and Updating Linked-Clone Desktop Pools
- Creating and Updating Manually Provisioned Desktop Pools
- Creating and Updating Manual Unmanaged Desktop Pools
- Displaying Information About Users and Groups
- Managing Desktop Entitlements
- Managing Remote Sessions
- Managing Virtual Machines
- Displaying Information About Physical Machines
- Updating Virtual Machine Ownership
- Displaying Event Reports
- Displaying and Updating Global Settings
- Displaying and Adding License Keys
- Examples of Using View PowerCLI to Perform Advanced Tasks
- Assigning Multiple Network Labels to a Desktop Pool
- Network Label Configuration File Format
- Example Network Label Configuration File
- Obtain and Export NIC and Network Label Information
- Verify and Edit a Network Label Configuration File
- Deploy a Desktop Pool That Uses Multiple Network Labels
- Displaying Network Label Assignments for a Pool
- Displaying Network Label Assignments for a Virtual Machine
- Displaying vCenter Server Network Label Assignments for a Virtual Machine
- Disable Automatic Network Label Assignments
- Customizing LDAP Data
- Integrating View with Microsoft SCOM
- Setting Up a SCOM Integration
- Assign a Name to the View Connection Server Group
- View Management Packs
- Import the View Management Packs on the SCOM Server
- Enable a Proxy Agent on a View Connection Server Host or Security Server
- Run the Discovery Script in the Operations Manager Console
- View Connection Server and Security Server Managed Objects
- View Object Classes and Relationships
- Monitoring View in the Operations Manager Console
- Setting Up a SCOM Integration
- Examining PCoIP Session Statistics with WMI
- Setting Desktop Policies with Start Session Scripts
- Index
Because the datastores specified in the -datastorePaths parameter override the previous setting, you must
specify any existing datastores in the parameter for the desktop pool to continue to use those datastores.
Creating and Updating Linked-Clone Desktop Pools
You can use the Get-ViewVC and Get-DesktopVM cmdlets to create and update linked-clone desktop pools.
In the following example, the Get-ViewVC cmdlet adds a linked-cloned desktop pool named lcdpool_1. The
pool is managed by View Composer on a vCenter Server instanced named vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM |
Add-AutomaticLinkedClonePool -pool_id lcdpool_1 -displayName "LCD Pool 1"
-namePrefix "lcp1-{n}-dt" -parentVMPath /AutoPoolVMs/parent
-parentSnapshotPath /AutoPoolSnapshots/parent1_snapshot -vmFolderPath /AutoConfig/VM_folder
-resourcePoolPath /AutoConfig/host/Resources
-datastoreSpecs [Aggressive,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16
-dataDiskLetter "D" -dataDiskSize 100 -minimumCount 4 -maximumCount 10
You can provision all the desktops in advance by setting the -minimumCount and -maximumCount parameters
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 a letter that conflicts
with a network-mounted drive.
In the following example, the Get-ViewVC cmdlet updates the configuration of a linked-clone desktop pool
named 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
Because the datastores specified in the -datastoreSpecs parameter override the previous setting, you must
specify any existing datastores in the parameter for the pool to continue to use those datastores.
You can use the Get-DesktopVM cmdlet to perform rebalance, refresh, and recompose operations.
Table 3‑18. Examples of Rebalance, Refresh and Recompose Operations
Task Example View PowerCLI cmdlet Syntax
Rebalance desktops among the available
datastores in a linked-clone desktop pool
Get-DesktopVM -pool_id lcdpool_2 | Send-
LinkedCloneRebalance -schedule 2011-05-10:01:00:00 -
forceLogoff $false -stopOnError $true
Refresh the operating system disk in each
linked-clone desktop by restoring 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 the 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
View Integration
42 VMware, Inc.