Integration

Table Of Contents
Procedure
n
To obtain and export NIC and network label information to create a full-clone pool, use the Export-
NetworkLabelSpecForFullClone cmdlet.
For example:
Export-NetworkLabelSpecForFullClone -vc_id id -clusterPath "cluster-path"
-TemplatePath "template-path" -maxVMsPerNetworkLabel nn
-networkLabelConfigFile "config-file-path"
n
To obtain and export NIC and network label information to create a linked-clone pool, use the Export-
NetworkLabelSpecForLinkedClone cmdlet.
For example:
Export-NetworkLabelSpecForLinkedClone -vc_id id -clusterPath "cluster-path"
-parentVMPath "parent-vm-path" -parentSnapshotPath "snapshot-path"
-maxVMsPerNetworkLabel nn -networkLabelConfigFile "config-file-path"
The network label cmdlet obtains the network labels configured in vCenter Server for all the ESXi hosts in
the specified cluster, sets the maximum number of virtual machines that can be provisioned with IP
addresses from each network label, and exports the list of NICs and network labels to the network label
configuration file.
Example: Obtaining NIC and Network Label Information
In this example, the Export-NetworkLabelSpecForLinkedClone cmdlet obtains NICs from the Win7-Parent
virtual machine and Snapshot1, and network label information from Cluster1. A maximum of 244 virtual
machines can be provisioned with IP addresses from each network label. The information is exported to a
network label configuration file named C:/label.txt.
Export-NetworkLabelSpecForLinkedClone -vc_id 1a2b3c4d-5e6f
-clusterPath "/myresourcepool/host/Cluster1/"
-parentVMPath "/myresourcepool/vm/Win7-Parent" -parentSnapshotPath "/snapshot1"
-maxVMsPerNetworkLabel 244 -networkLabelConfigFile "C:/label.txt"
What to do next
Verify and edit the network label configuration file. See “Verify and Edit a Network Label Configuration
File,” on page 53.
Verify and Edit a Network Label Configuration File
After you generate a network label configuration file, you must verify its contents and edit it to specify the
NIC and network label pairings to assign to the pool.
Prerequisites
n
Generate a network label configuration file. See “Obtain and Export NIC and Network Label
Information,” on page 52.
n
Become familiar with the network label configuration file format. See “Network Label Configuration
File Format,” on page 50.
Procedure
1 In a text editor, open the network label configuration file.
2 For each NIC and network label pairing that you want to assign to the pool, remove the comments (###
marks).
3 Verify that each network label is assigned to only one NIC.
Chapter 3 Using View PowerCLI
VMware, Inc. 53