During the weekend I worked on a migration for a customer from MDM 9 to XMS 10.4.
We had problem with licenses count and after making some searches, i found the following article that could help others 😉
After migrating from MDM 9 to XMS 10.X used license count exceeds the expected limit
Symptoms or Error
If you verify the checked out licenses using udadmin tool in licensing server, you should see licenses checked out for Used ID’s as well as usernames.
Steps:
- Â Run the following command to change the directory to the licensing utility path:
- cd /opt/citrix/licensing/LS
- Â Run the udadmin to list checked out licenses.
- udadmin -list –a   ( The output of the preceding command lists all features, versions, counts of licenses, and the users and devices for each feature. )
Solution
Should delete the licenses associated to usernames using udadmin tool.
- Run the following command using udadmin:
udadmin -f <CXM_ENTU_UD/feature> -user <username> –delete (This command releases one user license)
- You can create a Batch file to delete all User License & Device License
- For User License
for /f “tokens=1,2” %%i in (‘udadmin -list ^| find /i “_ud”‘) do @udadmin -f %%j -user %%i -delete
- For Device License
for /f “tokens=1,2” %%i in (‘udadmin -list ^| find /i “_ud”‘) do @udadmin -f %%j -device %%i -delete
Problem Cause
From XM-10 onwards, we use userIDs not usernames for checking out licenses.
Licenses are still associated to usernames which were from MDM 9 .
Licenses are still associated to usernames which were from MDM 9 .