Everything you need to know about Citrix Licensing. Take a deep breath and jump in !
More from the Lab!
- Building a Dual-Xeon Citrix Lab: Part 1 – Considerations
- Building a Dual-Xeon Citrix Lab: Part 2 – Hardware
- Building a Dual-Xeon Citrix Lab: Part 3 – Windows and Hyper-V installation
- Lab: Part 4 – Hyper-V Networking
- Lab: Part 5 – NetScaler 11 Architecture and Installation
- Lab: Part 6 – Configure NetScaler 11 High Availability (HA Pair)
- Lab: Part 7 – Upgrade NetScalers in HA
- Lab: Part 8 – Save, Backup and Restore NetScaler 11 configuration
- Lab: Part 9 – Install Microsoft SQL Server 2014 (Dedicated)
- Lab: Part 10 – Citrix Licensing demystified
- Lab: Part 11 – Install XenDesktop 7.6
- Lab: Part 12 – Setup NetScaler 11 Clustering (TriScale)
- Lab: Part 13 – Configure Published Applications with XenDesktop 7.6
- Lab: Part 14 – Citrix StoreFront 3.x
- Lab: Part 15 – Configure SSL in StoreFront
- Lab: Part 16 – StoreFront load balancing with NetScaler (Internal)
- Lab: Part 17 – Optimize and secure StoreFront load balancing with NetScaler (Internal)
- Lab: Part 18 – Secure LDAP (LDAPS) load balancing with Citrix NetScaler 11
- Lab: Part 19 – Configure Active Directory authentication(LDAP) with Citrix NetScaler 11
- Lab: Part 20 – RDP Proxy with NetScaler Unified Gateway 11
- Lab: Part 21 – Secure SSH Authentication with NetScaler (public-private key pair)
- Lab: Part 22 – Ultimate StoreFront 3 customization guide
- Lab: Part 23 – Securing Citrix StoreFront DMZ deployment
- Lab: Part 25 – Upgrade to Citrix StoreFront 3.7
- Lab: Part 26 – Install/Upgrade Citrix XenDesktop 7.11
- Lab: Part 27 – Getting started with Microsoft Azure
- Lab: Part 28 – Getting started with Citrix Cloud
- Lab: Part 29 – Configure XenDesktop And XenApp Service with Microsoft Azure and Citrix Cloud
- Lab: Part 30 – Configure Identity and Access Management in Citrix Cloud with Microsoft Azure AD
- Lab: Part 31 – Configure NetScaler Gateway Service for XenApp and XenDesktop Service in Citrix Cloud
- Lab: Part 32 – Configure MCS with XenDesktop and XenApp Service in Citrix Cloud
- Lab: Part 33 – Configure Azure Quick Deploy with XenDesktop and XenApp Service in Citrix Cloud
- Lab: Part 34 – Configure Site Aggregation for Citrix Workspace in Citrix Cloud with XenDesktop 7.x located on-premises
- Lab: Part 35 – Configure a Hybrid NetScaler MA Service environment in Citrix Cloud
- Lab: Part 36 – Configure ShareFile in Citrix Cloud with StorageZones on-premises
- Lab: Part 37 – Upgrade NetScaler HA pair with NetScaler MA Service in Citrix Cloud
- Lab: Part 38 – How to Configure Full VPN Setup with Citrix NetScaler in CLI
- Lab: Part 39 – Configure Multi-Factor Authentication with Azure MFA Service and Citrix Workspace
- Lab: Part 40 – Getting Started with Citrix App Layering
- Lab: Part 41 – Configure Citrix App Layering
- Lab: Part 42 – OS Layer with Citrix App Layering
- Lab: Part 43 – Platform Layer with Citrix App Layering
- Lab: Part 44 – Application Layers with Citrix App Layering
- Lab: Part 45 – Layered Image Deployment with Citrix App Layering
- Lab: Part 46 – Elastic deployment with Citrix App Layering
- Lab: Part 47 – User Layers with Citrix App Layering
- Lab: Part 48 – Windows 10 and PVS with Citrix App Layering
Before being able to use most of Citrix products, you need to install Citrix licensing.
How does it work?
Citrix Licensing is a system of components that function together. This system includes:
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 (Citrix_startup.lic)
The startup license is free and is added when you install Citrix license server. This license is used by servers to initialize and maintain the communication with the license server. With the startup license, you can view the servers connected to the license server.

This license allows 10000 clients to connect to the Citrix license server.

Do not remove that file !
Citrix Licenses (.lic)
License files created by Citrix and available on MyCitrix.com.
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 file explained
License format
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#FILE FORMAT# SERVER XXX_XX HOSTNAME=XXX:PORT CITRIX VENDOR USE_SERVER INCREMENT feature vendor SA_expiry_date exp_date num_lic \ VENDOR_STRING=XXX;LT=XX;GP=XX;GP=XX;SA=X;LP=XX;ODP=X;NUDURMIN=XX;NUDURMAX=XX; \ OVERDRAFT=XX;DUP_GROUP=X;ISSUED=X;NOTICE="XXX"; \ SN=XX-XXXXXXXXXX-XXXXX:LICENSE_FILE_NAME \ START=DD-M-YYYY SIGN="XXXX XXXX XXXX XXXX \ XXXX XXXX XXXX XXXX XXXX \ XXXX XXXX XXXX XXXX XXXX" INCREMENT.. INCREMENT.. .. #DESCRIPTION# |
License details
- 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
- 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
- Use Server
- This element tells the product to rely on the Citrix vendor daemon to validate license check outs
- INCREMENT
- New license pool in the license console
- XDT_PLT_UD
- Product version and edition, in this example XenDesktop platinum User/Device
- SA_expiry_date
- SA expiration date. This date is checked by most Citrix software.
- 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.
- Num_lic
- Number of licenses
- LT
- Pretty much all of the time Retail license.
- SA
- 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.
- DUP_GROUP
- The value V allows license sharing for the same client device.
- ISSUED
- Date the license was downloaded from MyCitrix.com.
- NOTICE
- Your company name
- SN
- License serial number
- START
- Date the license was purchased
- SIGN
- License signature
Example (most important elements are highlighted):

Documented here.
License process
Schema

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).
Startup communication on port 27000 - #3 – The product checks out a startup license (citrix_startup.lic) using the Vendor daemon (default port 7279).
Allocating Startup license Startup license Startup license
New connection
- #4 – A new user start a Citrix session.
- #4A – VDI session
- #4B – XenApp Session
- #5 – The server/desktop hosting the session requests a license from the license server by connecting to the vendor daemon (default port 7279). In the case of XenDesktop 7.6, the query comes from one of the controllers and not the server hosting the application.
New user session communication 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- #A2 – The console reads the licenses located in C:\Program files (x86)\Citrix\Licensing\MyFiles using the vendor daemon
- #B1 – An admin connects to the simple license console using the following address:
http://localhost:8083- #B2 – The console connects to MyCitrix.com.
What is the simple license service ?
The Citrix Simple License Service enables you to allocate and install license files on a license server using a web page interface. This allows you to not have to go on MyCitrix.com to allocate your licenses. Internet access is required to gather information from Citrix website. In a secure environment, the license server does not have access to internet, therefore you will not use that feature.
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:
- 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.
- 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.
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:
- Windows 8.1 (32/64bit)
- Windows 8 (32/64bit)
- Windows 7 (32/64bit)
- Windows Server 2012 R2
- Windows Server 2012
- Windows Server 2008 R2
- Windows Server 2008 (32/64bit)
Configuration
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
Install Citrix License server
To make it easier, I’ve create an .iso file with the .zip file downloaded from Citrix website and mounted that .iso file on my virtual machine.
Select CitrixLicensing.exe to start the installation.

Accept the Software License Agreement.

Specify the location of the installation.

Configure the Ports:
- 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.
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.

Citrix license server is installed.

Citrix licensing Ports

Citrix licensing Services
There are four windows services created after the installation:
- Citrix licensing
- This service provides licensing services for Citrix products.
- Citrix licensing support service
- Citrix licensing WMI
- This service provides access to Citrix Licensing WMI classes.
- Citrix Web services for licensing
- This is service that automates the allocation and installation of licenses on the Citrix License Server.
Get the license file
Logon to mycitrix.com and go to https://www.citrix.com/account/toolbox/manage-licenses/overview.html.
You should see the following on the screen:

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.

Then enter the name of your new host (LIC01 in the lab):

You can also select the number of licenses that you want to reallocate, in our case, we want to reallocate all the licenses (200).

Select Confirm. Then the website will ask you if you want to download to license.

On the next screen, select Download to get the file.

The last step here is to transfer that file to the virtual machine.
Configure Citrix License server
On the license server, open IE and browse to the administration console, go to http://localhost:8082.

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.

To add new administrators, select New user.

In our lab, we have a dedicated AD group for administrators of the license server (CITRIXGURU\LicensingAdmins).

Select Vendor Daemon configuration, and select Import License.

Browse to your license file.

The license has been uploaded.

Select OK. The license file will appear in the following default directory:
- C:\Program files (x86)\Citrix\Licensing\MyFiles

Select Reread license files to apply the changes.

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.

How to test that the license server is working?
First, connect your XenDesktop infrastructure to the new license server.

Then start a session.
Once the session is open, go back to the License console and check your license usage.

The value has changed to 1 (220). Select Hosts.

Note that there is not a lot of information here.
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.

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.
Command Line 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.

LMSTAT
1 |
.\LMUTIL.EXE LMSTAT -a –c “Path to license file”. |
UDADMIN
1 |
.\UDADMIN.EXE -list |

To release a license in command line, you can type the following command:
1 |
.\UDADMIN.EXE -f <LICENSE_TYPE> -user <USER> -delete |

LMDIAG
1 |
.\LMUTIL.EXE lmdiag -c "Path to the license file" |

LMHOSTID
1 |
.\LMUTIL.EXE lmhostid |

LSQUERY
Tool provided by Citrix to quickly get all the information about the license server.
Download LSQuery or from Citrix.
.NET 3.5 SP1 is required.

LSQuery creates a zip file in the same location you run the LSQuery.exe :

The ZIP file contains data about the server configuration (Network, Ports, Services, OS, etc) and Citrix license configuration (Licenses files, details, etc).
WMI
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.
Below is a script created by zoomar.com:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#Region Settings #Your License Server $CitrixLicenseServer = "ctxlic" #Do you want to report on licenses with 0 users? $ShowUnusedLicenses = $true #Toggle an alert above this percentage of licenses used $UsageAlertThreshold = 80 #EndRegion Settings #Region CollectData #retrieve license information from the license server $LicenseData = Get-WmiObject -class "Citrix_GT_License_Pool" -namespace "ROOT\CitrixLicensing" -ComputerName $CitrixLicenseServer $usageReport = @() $LicenseData | select-object pld -unique | foreach { $CurrentLicenseInfo = "" | Select-Object License, Count, Usage, pctUsed, Alert $CurrentLicenseInfo.License = $_.pld $CurrentLicenseInfo.Count = ($LicenseData | where-object {$_.PLD -eq $CurrentLicenseInfo.License } | measure-object -property Count -sum).sum $CurrentLicenseInfo.Usage = ($LicenseData | where-object {$_.PLD -eq $CurrentLicenseInfo.License } | measure-object -property InUseCount -sum).sum $CurrentLicenseInfo.pctUsed = [Math]::Round($CurrentLicenseInfo.Usage / $CurrentLicenseInfo.Count * 100,2) $CurrentLicenseInfo.Alert = ($CurrentLicenseInfo.pctUsed -gt $UsageAlertThreshold) if ($ShowUnusedLicenses -and $CurrentLicenseInfo.Usage -eq 0) { $usageReport += $CurrentLicenseInfo } elseif ($CurrentLicenseInfo.Usage -ne 0) { $usageReport += $CurrentLicenseInfo } } #EndRegion CollectData $usageReport | Format-Table -AutoSize #$usageReport | Format-Table -AutoSize | out-file "c:\temp\usagereport.txt" # If any record raises an alert, send an email. if (($usagereport | where {$_.alert -eq "True"}) -ne $null) { #Send Email Here } |
More from the Lab!
- Building a Dual-Xeon Citrix Lab: Part 1 – Considerations
- Building a Dual-Xeon Citrix Lab: Part 2 – Hardware
- Building a Dual-Xeon Citrix Lab: Part 3 – Windows and Hyper-V installation
- Lab: Part 4 – Hyper-V Networking
- Lab: Part 5 – NetScaler 11 Architecture and Installation
- Lab: Part 6 – Configure NetScaler 11 High Availability (HA Pair)
- Lab: Part 7 – Upgrade NetScalers in HA
- Lab: Part 8 – Save, Backup and Restore NetScaler 11 configuration
- Lab: Part 9 – Install Microsoft SQL Server 2014 (Dedicated)
- Lab: Part 10 – Citrix Licensing demystified
- Lab: Part 11 – Install XenDesktop 7.6
- Lab: Part 12 – Setup NetScaler 11 Clustering (TriScale)
- Lab: Part 13 – Configure Published Applications with XenDesktop 7.6
- Lab: Part 14 – Citrix StoreFront 3.x
- Lab: Part 15 – Configure SSL in StoreFront
- Lab: Part 16 – StoreFront load balancing with NetScaler (Internal)
- Lab: Part 17 – Optimize and secure StoreFront load balancing with NetScaler (Internal)
- Lab: Part 18 – Secure LDAP (LDAPS) load balancing with Citrix NetScaler 11
- Lab: Part 19 – Configure Active Directory authentication(LDAP) with Citrix NetScaler 11
- Lab: Part 20 – RDP Proxy with NetScaler Unified Gateway 11
- Lab: Part 21 – Secure SSH Authentication with NetScaler (public-private key pair)
- Lab: Part 22 – Ultimate StoreFront 3 customization guide
- Lab: Part 23 – Securing Citrix StoreFront DMZ deployment
- Lab: Part 25 – Upgrade to Citrix StoreFront 3.7
- Lab: Part 26 – Install/Upgrade Citrix XenDesktop 7.11
- Lab: Part 27 – Getting started with Microsoft Azure
- Lab: Part 28 – Getting started with Citrix Cloud
- Lab: Part 29 – Configure XenDesktop And XenApp Service with Microsoft Azure and Citrix Cloud
- Lab: Part 30 – Configure Identity and Access Management in Citrix Cloud with Microsoft Azure AD
- Lab: Part 31 – Configure NetScaler Gateway Service for XenApp and XenDesktop Service in Citrix Cloud
- Lab: Part 32 – Configure MCS with XenDesktop and XenApp Service in Citrix Cloud
- Lab: Part 33 – Configure Azure Quick Deploy with XenDesktop and XenApp Service in Citrix Cloud
- Lab: Part 34 – Configure Site Aggregation for Citrix Workspace in Citrix Cloud with XenDesktop 7.x located on-premises
- Lab: Part 35 – Configure a Hybrid NetScaler MA Service environment in Citrix Cloud
- Lab: Part 36 – Configure ShareFile in Citrix Cloud with StorageZones on-premises
- Lab: Part 37 – Upgrade NetScaler HA pair with NetScaler MA Service in Citrix Cloud
- Lab: Part 38 – How to Configure Full VPN Setup with Citrix NetScaler in CLI
- Lab: Part 39 – Configure Multi-Factor Authentication with Azure MFA Service and Citrix Workspace
- Lab: Part 40 – Getting Started with Citrix App Layering
- Lab: Part 41 – Configure Citrix App Layering
- Lab: Part 42 – OS Layer with Citrix App Layering
- Lab: Part 43 – Platform Layer with Citrix App Layering
- Lab: Part 44 – Application Layers with Citrix App Layering
- Lab: Part 45 – Layered Image Deployment with Citrix App Layering
- Lab: Part 46 – Elastic deployment with Citrix App Layering
- Lab: Part 47 – User Layers with Citrix App Layering
- Lab: Part 48 – Windows 10 and PVS with Citrix App Layering
Very good article. just had glance but it looks pretty nice and will read it thoroughly soon
Hi,
Very good information. Is it possible to reduce the lease of a licence ? I have a huge gap between sessions (From Director) and consumed licences.
excellent sir..thank you very much for the post ..appriciated.
Thank you very much for the post… I had an doubt here when servers enter into grace period which component is responsible for updating the grace period value saying like 600 hrs or 500 hrs of grace period left