Splunk AppDynamics

GET All Agents by Rest API

CommunityUser
Splunk Employee
Splunk Employee

Is there a Rest API that lists all the agents running in the controller? (Mainly the machine agents.)

Can I just see the agents by the nodes?

Labels (3)
0 Karma
1 Solution

Thomas_Miller
Engager

after you access the node and get the nodeid you can execute this rest call:

https://<your-appd-controller>/controller/rest/applications/<nodeid>/nodes

In the output you get a description of the nodes and there is a field 

<machineAgentPresent>false</machineAgentPresent>

that tells you if there is a machine agent on that node.

But it doesn't give you any more details on the machineagent than whether or not it is installed and reporting into the controller.

Thomas

View solution in original post

Thomas_Miller
Engager

yes, take a look at this link.

https://docs.appdynamics.com/display/PRO45/AppDynamics+APIs

I use Postman with Basic Auth (my login details) to get the info, but you can build a Python or Java client to do it also.

CommunityUser
Splunk Employee
Splunk Employee

Hello Thomas, I am making use of these APIs, however, I have not found any that I can see the agents in use or a list of them that are in use by the controller. The limit I found was to access each node. But that would exclude me from the machine agents.

Thanks

0 Karma

Thomas_Miller
Engager

after you access the node and get the nodeid you can execute this rest call:

https://<your-appd-controller>/controller/rest/applications/<nodeid>/nodes

In the output you get a description of the nodes and there is a field 

<machineAgentPresent>false</machineAgentPresent>

that tells you if there is a machine agent on that node.

But it doesn't give you any more details on the machineagent than whether or not it is installed and reporting into the controller.

Thomas

CommunityUser
Splunk Employee
Splunk Employee

Ok. Thank you very much.

😃

0 Karma
Get Updates on the Splunk Community!

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...

AI Adoption Hub Launch | Curated Resources to Get Started with AI in Splunk

Hey Splunk Practitioners and AI Enthusiasts! It’s no secret (or surprise) that AI is at the forefront of ...