Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where to read license usage from?

Hi,

I want to create an application for license usage analysis, but I don't know where to read that info from, and I've given up on making the QMS API work. Any help will be appreciated, thanks.

74 Replies
Not applicable
Author

Hi David,

I've added myself to the Qlikview Management API but I'm getting a "Service Key has expired" error. Please see attached image.

Thanks!

dvasseur
Partner - Creator III
Partner - Creator III

Humm, strange ! Service key is valid for 1 min I think, do you have a lot of cals/documents on your server ? Or maybe AD groups resolution is taking some time...

Anyway, here is an updated version with some more calls to retrieve a service key, quick and dirty but should be enough for now !

Not applicable
Author

It works now and it's exactly what I needed, thanks a lot!

One question, is it possible to run the exe file in batch mode? I'd like run it everyday as part of my publisher tasks.

dvasseur
Partner - Creator III
Partner - Creator III

Great !

Right now, it cannot be run in batch mode. I could rewrite it that way but I may prefer to implement it as a web application. That way you could directly extract data into a qlikview application, for example:

CALS:

load * from [http://<server>/qvscalmanager/get_cals];

Docs_info:

load * from [http://<server>/qvscalmanager/get_docsinfo];

...

The only drawback is that it would require IIS support, hummm... Or could it be integrated into QVWebServer ? Or maybe I could write it as a plugin for QVSource (hi Chris ;-))...

Well, as I said, it just a beta/poc right now, I'll be happy to have your feedback on this ! So 'batch exe file' or 'integrated into IIS/webserver' ?

Not applicable
Author

Integrated into webserver is a much better idea.

On Jul 29, 2011, at 6:18 PM, David Vasseur <

Not applicable
Author

David, great example!

At our site there is a need to run this in batch mode, could you possibly make the Server configurable (app.config) & the Retrieve command execute on run perhaps? That would be great. If you lack the time I could do this if you send me the source code. Thanks, Diederik

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Great tool David! Thanks for posting it.

-Rob

dvasseur
Partner - Creator III
Partner - Creator III

Good to see you find it useful !

I'm on vacation right now but I'll be back at the end of august and will do a web and command line version. I will also release the source code after some cleanning!

In the meantime, feel free to create a nice QVW for it

Not applicable
Author

Hi David,

I'm very happy with your application, but i also want to schedule it or want to execute it during the script.

Maby you can change it in a way so you can execute it in a cmd line en add a paramater for the servername.

I hope i triggered you're fingers .

Thanks anyway!

Greetz, Halmar

Not applicable
Author

Hello,

I have just downloaded your program. Unfortunately I just get the message »Connecting to QMS server 'localhost'...failed!«.

Any idea why I can't connect to the server even though I'm executing the program directly on the server.

Thanks & regards