5.2

Table Of Contents
VMware, Inc. 57
Chapter 3 Using View PowerCLI
usage - Number of virtual machines currently assigned to the network label.
When the usage value equals the max value, View stops assigning that network label and starts making
assignments from the next available label.
The following example displays network label assignments for the pool Pool2.
> get-pool -pool_id Pool2
...
networkLabelSpecs : [nl=desktop-auto01-230;nic=Network adapter 1;enable
d=1;max=239;usage=239];[nl=desktop-auto02-240;nic=N
etwork adapter 1;enabled=1;max=239;usage=239];[nl=vie
wscale-auto03-250;nic=Network adapter 1;enabled=1;max
=239;usage=239];[nl=desktop-auto04-260;nic=Network
adapter 1;enabled=1;max=239;usage=239];[nl=desktop-
auto05-270;nic=Network adapter 1;enabled=1;max=239;us
age=239];[nl=desktop-auto06-280;nic=Network adapter
1;enabled=1;max=239;usage=239];[nl=desktop-auto07-
290;nic=Network adapter 1;enabled=1;max=239;usage=239
];[nl=desktop-auto08-300;nic=Network adapter 1;enab
led=1;max=239;usage=239];[nl=desktop-auto09-310;nic
=Network adapter 1;enabled=1;max=239;usage=88] ...
Displaying Network Label Information for a Virtual Machine
To display the network label assignments for a virtual machine, use the Get-DesktopVM cmdlet. The
netLabelAutoAssigns output parameter shows the NIC names and network labels that View has attempted
to assign to the virtual machine.
You do not have to add a parameter in the command line to display this information. It is displayed
automatically with the Get-DesktopVM cmdlet.
If the Enabled flag in the network label configuration file was set to 0, the netLabelAutoAssigns output
shows this feature is disabled.
N
OTE The netLabelAutoAssigns output displays the network label assignments that View Connection
Server reserves for the virtual machine. 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. See
“Displaying Network Label Assignments Made for a Virtual Machine in vCenter Server on page 58.
The following example displays network label assignments for the virtual machine 918 in the pool pool2.
> get-desktopvm -pool_id pool2
...
vm : 918
ps_object_type : vc_vm
id : VirtualMachine-vm-47878
vc_id : 2162aa44-e99c-4f1a-875d-dd295681d2ca
Name : pool2-1811
UnescapedName : pool2-1811
Path : /resource/vm/Discovered virtual machine/pool2/pool2-1811
GuestFullName : Microsoft Windows 7 (32-bit)
GuestID : windows7Guest
HostName : POOL2-1811.vdi3.net
IPAddress : 10.143.30.205
machine_id : 56496104-bf91-4d69-8bae-fb4493608542
user_sid :
user_displayname :
isInPool : true
pool_id : pool2
isLinkedClone : true
composerTask : refresh
localState :
netLabelAutoAssigns : {Network adapter 1=desktop-auto08-300} ...