VMware VS4-ENT-PL-A - vSphere Enterprise Plus Setup Manual page 172

Setup guide
Table of Contents

Advertisement

vSphere Installation and Setup
Assigning license keys through the vSphere Web Client and assigning licensing by using PowerCLI cmdlets
function differently.
Assign license keys
with the
vSphere Web Client
Assign license keys
with
LicenseDataManager
PowerCLI
Procedure
1
Connect to the vCenter Server system you want to use and bind the associated license manager to a
variable.
Connect-VIServer -Server 192.XXX.X.XX -User username -Password password
$licenseDataManager = Get-LicenseDataManager
2
Run a cmdlet that retrieves the datacenter in which the hosts for which you want to use the bulk
licensing feature are located.
$hostContainer = Get-Datacenter -Name Datacenter-X
You can also run a cmdlet that retrieves a cluster to use bulk licensing for all hosts in a cluster, or
retrieves a folder to use bulk licensing for all hosts in a folder.
3
Create a new
$licenseData = New-Object VMware.VimAutomation.License.Types.LicenseData
$licenseKeyEntry = New-Object Vmware.VimAutomation.License.Types.LicenseKeyEntry
$licenseKeyEntry.TypeId = "vmware-vsphere"
$licenseKeyEntry.LicenseKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
4
Associate the
LicenseKeyEntry
$licenseData.LicenseKeys += $licenseKeyEntry
5
Update the license data for the data center with the
associated with the host container.
$licenseDataManager.UpdateAssociatedLicenseData($hostContainer.Uid, $licenseData)
$licenseDataManager.QueryAssociatedLicenseData($hostContainer.Uid)
6
Provision one or more hosts with Auto Deploy and assign them to the data center or to the cluster that
you assigned the license data to.
7
You can use the vSphere Web Client to verify that the host is successfully assigned to the default license
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
All hosts that you assigned to the data center are now licensed automatically.
172
You can assign license keys to a host when you add the host to the vCenter
Server system or when the host is managed by a vCenter Server system.
You can specify a set of license keys to be added to a set of hosts. The license
keys are added to the vCenter Server database. Each time a host is added to
the vCenter Server system or reconnects to the vCenter Server system, the
host is assigned a license key. A license key that is assigned through the
PowerCLI is treated as a default license key. When an unlicensed host is
added or reconnected, it is assigned the default license key. If a host is
already licensed, it keeps its license key.
object and a
LicenseData
LicenseKeyEntry
attribute of the
LicenseKeys
object.
.
object with associated type ID and license key.
object you created in step 3 with the
LicenseData
object and verify that the license is
LicenseData
VMware, Inc.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VS4-ENT-PL-A - vSphere Enterprise Plus and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Vsphere 5.5

Table of Contents