Splunk AppDynamics

License count per application

CommunityUser
Splunk Employee
Splunk Employee

With a SAAS controler, how can i get a clear report of how many licences are consumed by application ? I dont need the speed dials that tell me how many licenses are consumed total.

What i need is the license count per actual application that i have created in appDynamics. We need this to figure out what is the cost per application.

Any ideas ?

Labels (1)
Tags (2)
0 Karma
1 Solution

Brian_Wheeldon
Contributor

There's a very nice license report generator on Github that produces an Excel spreadsheet that meets your needs and more.

Attaching an example of the output report, generated using a script like this:

#!/bin/bash

_DATE=`date "+%Y-%m-%d"`
_FILE=demo1_LicenseCount_${_DATE}.xlsx

echo Creating the report ${_FILE}


java -Xmx1024m -cp "execLib/*" org.appdynamics.licensecount.CountLicenses -cdemo1.appdynamics.com -P443 -usome_user -p<not_this_password> -acustomer1 -s -i15 -n -f ${_FILE}

View solution in original post

iamryan
Community Manager
Community Manager

Hi @Simon.Parish,

What kind of raw data are you looking to get out of the SaaS Controller? 

0 Karma

Simon_Parish
Explorer

Hi @Ryan.Paredez 
We'd like to get account usage for each access key we have in our SaaS controllers over time as we need to do some analysis work and the display of the information in the licensing screen doesn't really allow that.

Also in the documentation for getting the information via the API, it all shows username and password.  does this also work with api clients and secrets as the documentation and examples don't sow this.

Thanks,
Simon

0 Karma

Aaron_Schifman
Path Finder

@Simon.Parish Are you familiar with setting up rules to understand account usage and only needing support for the second question around API? 

For account usage, you can setup a rule with a set number of allowed units, to see who is consuming what. You can refer to our license doc on the subject for more info.

As for the API part...I assume you can, though I have not personally tried, use something like Postman to leverage auth and variables as you would generally do. Can't see why you should have to clear text passwords but perhaps the docs were to make it easy for users who do not know how to leverage API tools.

0 Karma

Simon_Parish
Explorer

@Aaron.Schifman Yes we have rules set up, but we also want access to the information.  Also we'd like to be able to find which instances/nodes are associated with which license key - again is this also possible?

0 Karma

Aaron_Schifman
Path Finder

@Simon.Parish 

What API reference document are you leveraging?

From what I can see, licensing is not broken down by instances/nodes. Assuming you are talking about infrastructure based licensing, you can get the number and types of agents, and applications, but nothing deeper. 

What is it that you are trying to achieve by getting going down to the node?

0 Karma

Simon_Parish
Explorer

@Aaron.Schifman 
I'm using this document
But it still refers to using username and password - which you can no longer setup and so does this actually work for using secrets and if so then could someone update the documents - when I go tot the URLS it states using postman I keep gettiing 404 errors when trying the 'Returns a Summary of All the License Rules for the Current Account' url.
If I can get the applications linked to a license then that should be enough, but even getting the first piece of information out of the system is proving troublesome

0 Karma

Simon_Parish
Explorer

@Aaron.Schifman 
We are also using the agent based usage model so really there isn't anything of any use that we can get from this API.  Even though the controller clearly shows graphs of the number of licenses used over time, this data isn't available via the API.  WHY?

0 Karma

Aaron_Schifman
Path Finder

I am sorry @Simon.Parish you hare having a hard time with this. Neither @Ryan.Paredez nor myself are experts when it comes to this topic, but we are here to try and help as best as we can.

Have you see this doc which details how to create a client for API? We support OAuth standards...

As for the details, I assumed you were using Infra based, as the agent does not provide the same level of details you seem to be after. There is no way around what is available, other than to create an idea which we can advocate with the product team on your behalf for a future enhancement. With infra, you can Retrieve Usage by Application ID and Retrieve by Application Name.

Simon_Parish
Explorer

@Aaron.Schifman 
Thanks for all your help on this.  I just thought with the graphs that show the usage, even with agent based, that this data would/should be available through the APIs.  Its a real shame that it isn't.

I have created a client for the API and it does work to get the information.  Like I say, its a bit useless in that it doesn't give the licenses used, just the total licenses assigned and no matter whether you pull the summary of licences, licenses by name, ID or Access key for the agent based, they all give you the exact same information.  It really seems that AppDynamics have not bothered with getting the API working to be able to pull all the data that is actually there

0 Karma

Simon_Parish
Explorer

How do we get the raw data out of the SaaS controller.  the screen gives a good overview, but we need to do some digging into our data and would like to be able to get this out and import it into a google sheet

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks, @Brian.Wheeldon @Brian.Wheeldon

Hi @Anonymous and @Anonymous

We also recommend referring to the following KB articles for more information on Licenses:

How does AppDynamics license consumption work?

What are some best practices for license management?

How do I check my license usage at the account level?

Hope it helps.

0 Karma

Umervali_Niyama
Path Finder

I think getting the license usage per application is extremely useful not sure why there is no demand when I spoke to many customer in the conference they did the say the same.

CommunityUser
Splunk Employee
Splunk Employee

Hi,

The report at: https://github.com/Appdynamics/AppDLicenseCount works well with the default options BUT when you generate the report for a period over 7 days then the numbers are no longer accurate.

I asked the developer about it and am awaiting new information

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Are there any plans to incorporate this functionality into the GUI itself?

I'd also be interested in seeing license usage at a Tier level as well as App.

0 Karma

Deena_Shanghavi
Engager

No there has been no huge demand to report License count per application in GUI.  As per seeing license usage at a Tier level, you can actually go to the application flow diagram and see how many java agents etc. are being used for the time span you're interested in.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi 

Did you find out how to do this?

I am also trying to calculate license usage per application.

Thanks

Virender

Brian_Wheeldon
Contributor

There's a very nice license report generator on Github that produces an Excel spreadsheet that meets your needs and more.

Attaching an example of the output report, generated using a script like this:

#!/bin/bash

_DATE=`date "+%Y-%m-%d"`
_FILE=demo1_LicenseCount_${_DATE}.xlsx

echo Creating the report ${_FILE}


java -Xmx1024m -cp "execLib/*" org.appdynamics.licensecount.CountLicenses -cdemo1.appdynamics.com -P443 -usome_user -p<not_this_password> -acustomer1 -s -i15 -n -f ${_FILE}

Rodrigo_Leao
New Member

Do you know any other way to do it. I am trying to do it in 2023 and the provided link is not available anymore.
Does anyone has another alternatives to do this please?
Thank you

0 Karma

Apmosys_IET
Engager

        How can I get same report for on premises controller?   

0 Karma

iamryan
Community Manager
Community Manager
0 Karma
Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...