Professional Documents
Culture Documents
Lab - Part 10 - Citrix Licensing Demystified - Nicolas Ignoto, CTP PDF
Lab - Part 10 - Citrix Licensing Demystified - Nicolas Ignoto, CTP PDF
Everything you need to know about Citrix Licensing. Take a deep breath and jump in !
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 1/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
License server
Server hosting the Citrix license software and the licenses. Can be dedicated or shared
depending of the size of your infrastructure.
Daemon
Licenses are granted via the Citrix vendor daemon which is a process (Citrix.exe) running
on the license server.
Console
The interface you use to manage the license files and the license server. You can connect
to that console by typing: http://localhost:8082 locally on the license server.
Startup License
This license allows 10000 clients to connect to the Citrix license server.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 2/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Citrix.opt
The options file (Citrix.opt) gives or restricts access to licenses.The Citrix vendor daemon
reads this configuration file every time it starts. Documented
here: http://support.citrix.com/article/CTX108661.
License le explained
License format
1 #FILE FORMAT#
2 SERVER XXX_XX HOSTNAME=XXX:PORT
3 CITRIX VENDOR
4 USE_SERVER
5 INCREMENT feature vendor SA_expiry_date exp_date num_lic \
6 VENDOR_STRING=XXX;LT=XX;GP=XX;GP=XX;SA=X;LP=XX;ODP=X;NUDURMIN=XX;NUDURMAX=XX; \
7 OVERDRAFT=XX;DUP_GROUP=X;ISSUED=X;NOTICE="XXX"; \
8
SN=XX-XXXXXXXXXX-XXXXX:LICENSE_FILE_NAME \
9
START=DD-M-YYYY SIGN="XXXX XXXX XXXX XXXX \
10
11 XXXX XXXX XXXX XXXX XXXX \
12 XXXX XXXX XXXX XXXX XXXX"
13
14 INCREMENT..
15 INCREMENT..
16 ..
#DESCRIPTION#
License details
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 3/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
1. HOSTNAME
Server hosting Citrix licensing. No port number after the host name means it is using
the default port number, 27000.
SERVER this_host HOSTNAME=license_server1 27110
2. Vendor
The VENDOR line specifies the Citrix vendor daemon name, path, options file path,
and port number. Vendor Citrix is the default configuration.
VENDOR CITRIX options=”C:\Program Files\Citrix\Licensing\MyFiles\CITRIX.opt”
Port=27900
3. Use Server
This element tells the product to rely on the Citrix vendor daemon to validate license
check outs
4. INCREMENT
New license pool in the license console
5. XDT_PLT_UD
Product version and edition, in this example XenDesktop platinum User/Device
6. SA_expiry_date
SA expiration date. This date is checked by most Citrix software.
7. exp_date
License expiration date. Most of them are permanent and don’t expire. However
keep in mind that new software will require your SA to be up to date.
8. Num_lic
Number of licenses
9. LT
Pretty much all of the time Retail license.
10. SA
11. OVERDRAFT
Number of licenses you are allowed to allocate when all the licenses you paid are in
use. When all your licenses and all your overdraft licenses are used, the license
server will reject new license requests.
12. DUP_GROUP
The value V allows license sharing for the same client device.
13. ISSUED
Date the license was downloaded from MyCitrix.com.
14. NOTICE
Your company name
15. SN
License serial number
16. START
Date the license was purchased
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 4/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
17. SIGN
License signature
Documented here.
License process
Schema
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 5/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Startup
#1 – When a Citrix product starts, it retrieves the license server location from its
configuration (local or remote datastore).
#2 – The Citrix product connects to the Citrix license server (default port 27000).
#3 – The product checks out a startup license (citrix_startup.lic) using the Vendor
daemon (default port 7279).
Startup license
Startup license
New connection
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 6/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
The Citrix vendor daemon checks to see if any licenses are available and grants or
denies the product’s request. The user checks out a license.
#7 – The license module in the product grants or denies the use of the product
based on the response from the Citrix vendor daemon. When using Concurrent license,
there is also communication with the license server using the vendor daemon to release
the license. With User/Device, such communication does not occur.
Admin connection
#A1 – An admin connects to the license administration console using the following
address:
http://localhost:8082
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 7/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Grace Period
The grace period is by default 30 days. This only applies if the Citrix product was able to
communicate at least once with the license server. Once the communication is re-
established, the grace period will be reseted. If the grace period runs out, the product
stops accepting connections. f a Citrix product server loses its connection to the license
server, the product enters a grace period and uses its local record of the licenses to
continue licensing the product during the grace period. Citrix products update this record
every hour.
Licensing models
Users/Devices
Cheapest model available. Licenses are assigned either to unique users or to shared
devices. If assigned to a unique user, it allows unlimited Citrix sessions for this user from
unlimited devices. If assigned to a shared device, it allows unlimited users to open
unlimited Citrix sessions from this device only.
Concurrent
Each user connected uses one license. As soon as he disconnects, the license is
released and can be use by another user. Expensive but easy to manage.
VPX or Windows
There are two options to install Citrix License server:
1. Virtual Appliance
The virtual appliance is only available for XenServer hypervisor. There is few tutorials
to convert that image to be compatible with Microsoft Hyper-V or VMware vSphere,
however that is not supported by Citrix and should not be installed in a production
environment.
2. Windows Software
It is the easiest way to install Citrix License server as it can be use on the same
server as the Remote Desktop Services License server which is mandatory in any
XenApp deployment.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 8/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
In the following article, we will discuss how to install and configure Citrix License server
running on Windows Server 2012 R2.
Download
To download Citrix License Server binaries, go
to https://www.citrix.com/downloads/licensing.html.
The latest version available at this time for Windows is the version 11.12.1.
Requirements
Citrix supports the following Microsoft OS:
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 9/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Con guration
In the Citrix Guru lab, I’ve created a dedicated VM with the following configuration:
Name: LIC01
IP address: 10.0.0.9
Subnet mask: 255.0.0.0
Domain: CITRIXGURU
1024 MB of RAM
1 vCPU
Network adapter: 1 – LAN (vLAN ID 2)
50 GB HDD
Windows Server 2012 R2 Datacenter edition
Select CitrixLicensing.exe
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 10/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
The license server port is 27000. The port is used by the Citrix license manager.
Vendor Deamon port is 7279. The port is used for core operations.
Management Console web port is 8082. The port is used to connect to the License
Administration Console.
Web Services for licensing port is 8083. The port used to connect to the Simple
License Service.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 11/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Most of customers configure the license server with the default ports.
By default, the account you are using to install Citrix License server will be the default
administrator for the License Administration console.
Installation in progress.
Installation in progress
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 12/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Successfully installed
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 13/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
1. Citrix licensing
This service provides licensing services for Citrix products.
2. Citrix licensing support service
3. Citrix licensing WMI
This service provides access to Citrix Licensing WMI classes.
4. Citrix Web services for licensing
This is service that automates the allocation and installation of licenses on the Citrix
License Server.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 14/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Licenses are attached to server IDs. Please note that the name of the host(Host ID) is
case sensitive in the configuration.
MyCitrix is not the most user-friendly website, but to reuse licenses that you already have
you need to reallocate them.
Select Reallocate, find the license you want to reallocate and select Continue.
MyCitrix Licenses
Then enter the name of your new host (LIC01 in the lab):
MyCitrix Reallocation
You can also select the number of licenses that you want to reallocate, in our case, we
want to reallocate all the licenses (200).
MyCitrix Confirmation
Select Confirm. Then the website will ask you if you want to download to license.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 15/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Download
The last step here is to transfer that file to the virtual machine.
Administration console
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 16/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Select Administration and enter your credentials. The same you’ve used to install the
software.
The first step is to configure the administrators of the license server. By default it is only
the local admins of the server and the admin who installed the software for the first time.
Default admins
In our lab, we have a dedicated AD group for administrators of the license server
(CITRIXGURU\LicensingAdmins).
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 17/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Group added
Import License
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 18/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Import successful
Select OK. The license file will appear in the following default directory:
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 19/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
New license
The dashboard is now updated with the new license. Here we have added 200
XenDesktop Platinum User/Device licenses with SA valid until mid-april 2015.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 20/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
New license
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 21/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Once the session is open, go back to the License console and check your license usage.
License usage
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 22/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Hosts
UDAdmin GUI
UDAdmin GUI is a tool showing the users and the devices using the licenses. Download
UDadmin GUI 1.6 or go to the website.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 23/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
UDadminGUI
On this example you can see that, there is one license in use in that lab and the name of
the user is user1.
Note: this tool also allows you to release User/Device licenses, it could be useful if you
want to release licenses of people who left the firm.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 24/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Licensing Tools
LMUTIL
The lmutil utility displays a list of licensing utilities when used standalone. When you
specify lmutil with another command, it executes that command.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 25/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
LMUTIL
LMSTAT
1 .\LMUTIL.EXE LMSTAT -a –c “Path to license file”.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 26/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
LMSTAT
UDADMIN
1 .\UDADMIN.EXE -list
UDADMIN
To release a license in command line, you can type the following command:
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 27/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
UDADMIN – REMOVE
LMDIAG
1 .\LMUTIL.EXE lmdiag -c "Path to the license file"
LMDIAG
LMHOSTID
1 .\LMUTIL.EXE lmhostid
LMHOSTID
LSQUERY
Tool provided by Citrix to quickly get all the information about the license server.
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 28/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
LSQUERY
LSQuery creates a zip file in the same location you run the LSQuery.exe :
LSQUERY Export
The ZIP file contains data about the server configuration (Network, Ports, Services, OS,
etc) and Citrix license configuration (Licenses files, details, etc).
WMI
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 29/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
You can query the license server using WMI via PowerShell to get information about your
licenses.
Note: you don’t need to have the Citrix Licensing WMI service started to run WMI queries.
1 #Region Settings
2 #Your License Server
3 $CitrixLicenseServer = "ctxlic"
4
5 #Do you want to report on licenses with 0 users?
6 $ShowUnusedLicenses = $true
7
8
#Toggle an alert above this percentage of licenses used
9
10 $UsageAlertThreshold = 80
11
12 #EndRegion Settings
13
14 #Region CollectData
15 #retrieve license information from the license server
$LicenseData = Get-WmiObject -class "Citrix_GT_License_Pool" -namespace "ROOT\CitrixLicensing"
16 -ComputerName $CitrixLicenseServer
17
18 $usageReport = @()
19 $LicenseData | select-object pld -unique | foreach {
20 $CurrentLicenseInfo = "" | Select-Object License, Count, Usage, pctUsed, Alert
21 $CurrentLicenseInfo.License = $_.pld
$CurrentLicenseInfo.Count = ($LicenseData | where-object {$_.PLD -eq $CurrentLicenseInf
22 o.License } | measure-object -property Count -sum).sum
$CurrentLicenseInfo.Usage = ($LicenseData | where-object {$_.PLD -eq $CurrentLicenseInf
23
o.License } | measure-object -property InUseCount -sum).sum
$CurrentLicenseInfo.pctUsed = [Math]::Round($CurrentLicenseInfo.Usage / $CurrentLicenseInf
24
o.Count * 100,2)
$CurrentLicenseInfo.Alert = ($CurrentLicenseInfo.pctUsed -gt $UsageAlertThreshold)
25
26 if ($ShowUnusedLicenses -and $CurrentLicenseInfo.Usage -eq 0) {
27 $usageReport += $CurrentLicenseInfo
28 } elseif ($CurrentLicenseInfo.Usage -ne 0) {
29 $usageReport += $CurrentLicenseInfo
30 }
31 }
32 #EndRegion CollectData
33 $usageReport | Format-Table -AutoSize
34 #$usageReport | Format-Table -AutoSize | out-file "c:\temp\usagereport.txt"
35
36 # If any record raises an alert, send an email.
37 if (($usagereport | where {$_.alert -eq "True"}) -ne $null) {
38
#Send Email Here
}
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 30/31
8/9/2019 Lab: Part 10 - Citrix Licensing demystified - Nicolas Ignoto, CTP
Nicolas Ignoto
https://www.citrixguru.com
https://www.citrixguru.com/2015/11/12/lab-part-10-citrix-licensing-demystified/ 31/31