Git Product home page Git Product logo

appdynamics-agent-downloader's Introduction

Automated AppDynamics Agent Download

A simple script that lets you download AppDynamics agents.

./get-agent.sh download sun-java -v 20.10.0 to download agent binaries
or use the --dryrun option to get the download URL
./get-agent.sh download sun-java -v 20.6.0 --dryrun

Supported agent types

You may create an issue if you need an agent that is not in the list

Agent type Description
sun-java or java Agent to monitor Java applications (All Vendors) running on JRE version 1.7 and less
sun-java8 or java8 Agent to monitor Java applications (All Vendors) running on JRE version 1.8 and above
ibm-java Agent to monitor Java applications (All Vendors) running on IBM JRE
dotnet Agent to monitor Full .Net Framework application on Windows
machine 64 Bit Machine agent ZIP bundle with JRE to monitor your Linux servers
machine-win 64 Bit Machine agent ZIP bundle with JRE to monitor your windows servers.
db Agent to monitor Databases
db-win Agent to monitor any combination of DB2, Oracle, SQL Server, Sybase, MySQL, Sybase IQ and PostgreSQL database platforms. Windows Install
dotnet-core Agent to Monitor .NetCore applications on Linux
dotnet-core-win Agent to Monitor .NetCore applications on Windows

Steps:

  1. Clone the repo
  2. Make the script executable chmod +x get-agent.sh
  3. Ensure you have jq installed - https://stedolan.github.io/jq/download/

Examples:

Get Help

use -h or --help to get help

./get-agent.sh -h

  -h, --help, help                 Print this help

  download AGENT                   Agent to download (choices: sun-java | java | sun-java8 | java8 | ibm-java | machine | machine-win | dotnet | dotnet-core | db | db-win)
    -v, --version  version             Version number for the supplied agent
    -d, --dryrun                       Rturns only the download URL if specificed, it is recommended to use this arg for provisioning tools such as ansible, chef, etc

Download the Java Agent

./get-agent.sh download sun-java -v 20.6.0

The above command will dowload the sun-java agent and unzip it's content in a folder in the script's path.

Dry run

It is recommended to use the --dryrun or -d arg if you intend to embed this script into a configuration management and/or provisioning tools like Ansible, Chef, Puppet, Terraform, Pulumi etc.

./get-agent.sh download machine-win -v 20.6.0 --dryrun or

./get-agent.sh download dotnet -v 20.8.0 -d

outputs only the download URL, for example

https://download-files.appdynamics.com/download-file/machine-bundle/20.6.0.2676/machineagent-bundle-64bit-windows-20.6.0.2676.zip

which you can pass to a curl or similar command on the target machine.

Ansible Task Example

getAgent playbook
---
- hosts: all
  tasks:
    - include_role:
        name: appdynamics.agents.java
      vars:
        # Define Agent Type and Version 
        agent_version: 20.9.0
        agent_type: sun-java
        # The applicationName
        application_name: "IoT_API" # ONLY required if agent type is not machine or db
        tier_name: "java_tier" # ONLY required if agent type is not machine or db
        # Your controller details 
        controller_account_access_key: "b0248ceb-c954-4a37-97b5-207e90418cb4" # Please add this to your Vault 
        controller_host_name: "ansible-20100nosshcont-bum4wzwa.appd-cx.com" # Your AppDynamics controller 
        controller_account_name: "customer1" # Please add this to your Vault 
        enable_ssl: "false"
        controller_port: "8090"
        
getAgent task: main.yaml

---
- name: "Get AppDynamics Agent Download URL type"
  command: "{{ role_path }}/files/get-agent.sh download {{ agent_type }} -v {{ agent_version }} --dryrun"
  register: agent_download_url
  delegate_to: localhost
  failed_when:
   (agent_download_url.rc != 0) or 
   (agent_download_url.stdout is not match("https://download-files.appdynamics.com/download-file/"))
  changed_when: False

- debug: 
   msg: "{{ agent_download_url.stdout }}"
   

appdynamics-agent-downloader's People

Contributors

iogbole avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

appdynamics-agent-downloader's Issues

AccessDenied for https://download-files.appdynamics.com/S3

I tried to download Java8 21.6.0, but failed like following.

$ ./get-agent.sh download java8 -v 21.6.0 --dryrun
ERROR: Could not download your request java8. Check the download page to ensure the agent type and version exist
https://download-files.appdynamics.com/S3 path:
processed payload :
https://download.appdynamics.com responded with unexpected reponse. Please ensure you have connectivity to the download page
===========Begin content============
{"count":0,"next":null,"previous":null,"results":[]}===========End content============

Now we cannot access to https://download-files.appdynamics.com/S3. Could you please take a look at this issue.

Thanks

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.