5.2
Table Of Contents
- VMware Horizon View Integration
- Contents
- Introduction
- Integrating with the Event Database
- Using View PowerCLI
- Introduction to View PowerCLI
- View PowerCLI Cmdlets
- View Administrator, View PowerCLI Cmdlet, and vdmadmin Operations
- View PowerCLI Cmdlet Parameters
- Examples of Using View PowerCLI Cmdlets
- Displaying Information About a View Connection Server Instance
- Updating the Configuration of a View Connection Server Instance
- Managing the Configuration of vCenter Servers 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 Manual Unmanaged Desktop Pools
- Creating and Updating Desktops Provisioned by Terminal Servers
- Obtaining Information About Users and Groups from Active Directory
- Managing Desktop Entitlements
- Managing Local Desktops
- Managing Remote Sessions
- Managing Virtual Machines
- Displaying Information About Physical Computers
- Updating the Ownership of Machines
- Displaying Information About Events
- Managing the Global Configuration of View
- Managing View Licenses
- Examples of Using View PowerCLI for Enhanced Functionality
- Assign Multiple Network Labels to a Desktop Pool
- Customizing LDAP Data
- Integrating with SCOM
- View Management Packs
- Name a View Connection Server Group
- Import the View MPs
- View Discovery Script
- Run the Discovery Script
- Display Discovered Objects
- Display Managed Objects
- Views and Monitors
- Enable a Proxy Agent on a Server
- Display Performance Data
- Display Information About an Alert
- Restart a Service
- Exclude a Domain from Connectivity Monitoring
- Close Alerts
- Class and Relationship Definitions
- Examining PCoIP Session Statistics
- Dynamically Setting Desktop Policies with Start Session Scripts
- Index
VMware Horizon View Integration
58 VMware, Inc.
Displaying Network Label Assignments Made for a Virtual Machine in vCenter Server
The netLabelAutoAssigns output displays the network label assignments that View Connection Server
reserves for the virtual machine. Additional network label assignments to other virtual machines can be made
in vCenter Server that are outside the control of View.
To see the network labels that are actually assigned to the virtual machine in vCenter Server, use the
-getNetworkLabel parameter with the Get-DesktopVM cmdlet.
In the command line, you must type a Boolean value of $true to enable the -getNetworkLabel parameter.
For example: -getNetworkLabel $true
The output of the Get-DesktopVM cmdlet displays the networkLabels parameter, which shows the NICs and
network label assignments that were made for the virtual machine.
N
OTE As a best practice, run the Get-DesktopVM cmdlet with the -getNetworkLabel parameter during
off-peak periods of vSphere utilization. The parameter is long-running.
The following example displays network label assignments made in vCenter Server for the virtual machine
1849 in the pool pool2.
> get-desktopvm -pool_id pool2 -getnetworklabel $true
...
vm : 1849
ps_object_type : vc_vm
id : VirtualMachine-vm-46148
vc_id : 2162aa44-e99c-4f1a-875d-dd295681d2ca
Name : pool2-85
UnescapedName : pool2-85
Path : /resource/vm/Discovered virtual machine/pool2/pool2-85
GuestFullName : Microsoft Windows 7 (32-bit)
GuestID : windows7Guest
HostName : POOL2-85.vdi3.net
IPAddress : 192.168.1.10
networkLabels : {Network adapter 1=desktop-auto01-230}
machine_id : be14deda-ec1b-4dd1-834a-915fcc7d51a0
user_sid :
user_displayname :
isInPool : true
pool_id : pool2
isLinkedClone : true
composerTask :
localState :
netLabelAutoAssigns : {Network adapter 1=desktop-auto01-230} ...
Disable Automatic Network Label Assigments
To disable network label assignments on an existing pool that uses automatic assigments
1 Open the network label configuration file and set the enabled flag to enabled=false.
2 Save the file.
3Run the Update-AutomaticLinkedClonePool or Update-AutomaticPool cmdlet with the
-NetworkLabelConfigFile parameter pointing to the updated configuration file.
Result:
When View provisions new virtual machines in the pool, View uses the network labels on the parent virtual
machine or template.