Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to read the number of assigned CALs?

Is there any way to read the number of assigned CALs from the server?

The SDK is not a great help at all. I found some postings here in the forum, e.g. http://community.qlik.com/message/117660#117660 which is mentioning a working sample.

Can anyone provide an example in C# how to access this information?

Thanks in advance.

3 Replies
Miguel_Angel_Baeyens

Hi,

If you have access to the server, go to the Enterprise Management Console, System, Setup, and click on "Management Service". There is a link to the documentation where some examples can be found.

By default, the URL to the help file is

http://serveraddress:4780/QMS/QMSAPIDocumentation.chm

Download the file, unlock it (right click on the file, Properties).

To get the actual files you have to install tha SDK when installing the server (clik on advanced installation). If you did, by default files are in

C:\Program Files\QlikViewServer10\QlikView SDK\samples

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

Not applicable
Author

This seems to be related to version 10 because on our server I can't access the URL http://serveraddress:4780/QMS/QMSAPIDocumentation.chm
even though I replaced "serveraddress" with the address of our server.

And the SDK is not a great help at all due to the fact that it is not very well written.

Regards

bknol
Partner - Contributor III
Partner - Contributor III

I hope this will answer the questions of the orginal post

C# example QMS QlikView Server version 10:

QMSBackendClient qmsClient = new QMSBackendClient();

//Set time limited service key

ServiceKeyClientMessageInspector.ServiceKey = qmsClient.GetTimeLimitedServiceKey();

//Get QVS guid

List<ServiceInfo> serviceList = qmsClient.GetServices(ServiceTypes.QlikViewServer);

Guid qvsGuid = serviceList[0].ID;

//Get CAL configuration

CALConfiguration calConfig = qmsClient.GetCALConfiguration(qvsGuid, CALConfigurationScope.All);

//Get assigned CALs

int assignedNamedCALs = calConfig.NamedCALs.Assigned;

int assignedDocumentCALs = calConfig.DocumentCALs.Assigned;