Recently I ran into an issue no Citrix XenDesktop or XenApp admin wants to face – license exhaustion. Users were having trouble logging in. At first glance, it wasn’t quite clear why, either. We had 45 Virtual desktops powered on and ‘ready’, only 22 were ‘In use’, and only 16 XenApp users. Despite all this, our 100 concurrent XenDesktop licenses were exhausted. Checking in XenDesktop Desktop Studio confirmed — 100 licenses used, somehow. In rapid response mode, I mentioned the issue in #Citrix and went about troubleshooting with the help of the excellent contributors in IRC.
The initial triage searches led to ‘lmstat‘ which is located on the licensing server to determine the exact license count. Upon receiving the output, I saw, clearly, there were 100 licenses issued. In the mean time, I tried shutting down unused VMs and logging on the 4 users who were stranded in the immediate and looked at Edgesight.
To compound the problem, I also had an additional 45 licenses to install, but that one day Citrix License portal was down, as confirmed by support when I called them they could not even issue licenses via e-mail. Tough break…