Giter Club home page Giter Club logo

appdlicensecount's Introduction

AppDLicenseCount

The AppDLicenseCount is a solution is can be used to get a license count from an AppDynamics’ controller using the REST service. The solution start by collecting information from all of the applications, nodes and tiers then produced a license usage excel report. The solution counts only active agents and counts a license if it is up. The general active agent count is also provided so that active agents can be compared of the hours of the days.

Requirements:

The AppDLicenseCount solution is dependent on the AppDRESTAPI-SDK (https://github.com/Appdynamics/AppDRESTAPI-SDK.git) this should be cloned and built before cloning this package. It is recommended that both packages share a base directory, this will make the dependency checking easier. Compile and package the AppDRESTAPI-SDK to insure files that are needed are present. Once this package has been cloned edit the file called ‘one_time_git.properties’, insure the location of AppDRESTAPI-SDK and the version of the jar file are correct. The file ‘one_time_git.properties’ should not be synced with the git repository after it has been edited because the settings only apply to your environment.

The file contains two variables please insure that they are correct (insure that no extra spaces are present):

appd_rest_base=../AppDRESTAPI-SDK

appd_rest_jar=RESTAPI_1.0.9.jar

Building:

To build the package run the following command within the appdLicenseCount directory ant -f AppD_build.xml

This will create a directory called execLib with all of the necessary libraries to run the tool.

Usage

java -cp "execLib/*" org.appdynamics.licensecount.CountLicenses -c <FQDN-For-Controller> -P <PORT> -u<USER-NAME> -p <PASSWORD> -a <ACCOUNT-NAME> [-s] [-n] [-i] [-A <Apps>] [-d 1|2]

 -a,--account <a>    :   If controller is multi-tenant add the account

 -c,--controller <c> :   This is going to be the FQDN of the controller, for example: appdyn.saas.appdynamics.com

 -s,--ssl            :   Use SSL with connection

 -P,--port <P>       :   The is going to be the port that is used by the controller.

 -u,--username <u>   :   The user name to use for the connection

 -p,--passwd <p>     :   The password to use for the connection

 -f,--file <f>       :   Optional : This is going to be the file name that is going to be created. Default is <AccountName>_LicenseCount.xlsx.

 -i,--interval <i>   :   Optional : This is going to be the number of days we go back and run. Default is going back 7 days from midnight to midnight.

 -A,--apps           :   Optional : Comma separated list of Application names with no extra spaces that should be included in the report.

 -g,--granular       :   How granular you want the text.

 -U,--uptime <U>     :   Optional : The amount of uptime necessary for an agent to be up so that it is counted. Default value is .70 (70%) 

 -d,--debug <d>      :   Debug level to set the calls at.

Example:

java -Xmx512m -cp "execLib/*" org.appdynamics.licensecount.CountLicenses -cACME-CONTROLLER.saas.appdynamics.com -P443 -uACMEUSERNAME -pACMEPASSWORD -aACME -s

Support:

For support and feature requests please email [email protected]

appdlicensecount's People

Contributors

gilbertsolorzanofs avatar

Watchers

James Cloos avatar ranjan kumar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.