A customer recently started to get not enough license errors while connecting to their XenDesktop environment. The customer uses a Citrix License Appliance, hosted in their XenServer pool. I verified they were out of licenses by going to the web interface of the license appliance. I then went to the console of the license appliance and quickly verified there are users listed as having a license but do not exist anymore. So, instead of trying to go through each user line by line through the console, I wanted to export that information so the client could review the list and then we could take the appropriate steps. Trying to copy almost 500 users listed did not work. So, instead, I needed to enable SSH access so I could then copy the output file generated and send it off for review. Below are the steps are taken to enable SSH access on the Citrix License Appliance:
Connect to the console of the Citrix License Appliance through XenCenter.
Login with root access.
Open the following file with a text editor like vi: vi /etc/sysconfig/iptables
Add the following line: -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Save the file and exit the text editor.
Run the following command: service iptables restart
To make the SSH service start every time you boot the appliance, run the following command: chkconfig sshd on
To start the SSH service, run the following command: service sshd start
To verify the license appliance is listening on port 22, run the following command: netstat -tulpn
After performing the above, you should be able to access your license appliance through SSH. At this point, I ran the udadmin -list -a > liclist.txt command to save the list of users with licenses to a text file. Then, I used WinSCP to copy that text file over to send it to the client.
Comments