6.2

Table Of Contents
VMware, Inc. 41
Chapter 3 Using View PowerCLI
Examples of Using View PowerCLI Cmdlets
The View PowerCLI cmdlets allow you to perform View operations from the command line or from scripts
instead of using View Administrator. The following sections contain examples that you can adapt and apply
to your own systems.
Displaying Information About a View Connection Server Instance
Display the configuration settings of a View Connection Server instance.
Get-ConnectionBroker -broker_id CONNSVR1
Updating the Configuration of a View Connection Server Instance
Update the settings for direct connections and secureID on a View Connection Server instance.
Update-ConnectionBroker -broker_id CONNSVR1 -directConnect $false -secureIdEnabled $true
-ldapBackupFrequency EveryWeek
Configure a View Connection Server for secure PCoIP connections.
Update-ConnectionBroker -broker_id CS-VSG -directPCoIP $FALSE
Set the PCoIP external URL for a View Connection Server.
Update-ConnectionBroker -broker_id CS-VSG -externalPCoIPURL 10.18.133.34:4172
Set the PCoIP external URL for a security server.
Update-ConnectionBroker -broker_id SECSVR-03 -externalPCoIPURL 10.116.32.136:4172
Managing the Configuration of vCenter Servers in View
Add an entry for a vCenter Server to the View configuration.
Add-ViewVC -serverName vc01.mydom.int -username Administrator -password clydenw
-createRampFactor 5 -deleteRampFactor 5
Return information about a vCenter Server.
Get-ViewVC -serverName vc01.mydom.int
Return information about all vCenter Servers in a specified DNS domain.
Get-ViewVC -serverName *.mycorp.com
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
Remove an entry for a vCenter Server from the configuration.
Get-ViewVC -serverName vc02.mydom.int | Remove-ViewVC
mkChkPoint Specifies a scheduled task to create a checkpoint snapshot.
rebalance Specifies a scheduled task to rebalance a linked-clone machine.
refresh Specifies a scheduled task to refresh a linked-clone machine.
replaceUdd Specifies a scheduled task to replace a persistent disk.
resync Specifies a scheduled task to recompose a linked-clone machine.
Table 3-14. View Composer Maintenance Task Types
Task Type Description