Splunk AppDynamics

Powershell Official Cmdlets Return Unexpected Result

CommunityUser
Splunk Employee
Splunk Employee

Greetings. I am testing the appdynamics.psm1 official module, attempting to poll my servers for the presence and version of the AppD agent. Module sourced from:

https://www.appdynamics.com/community/exchange/extension/dotnet-agent-installation-with-remote-manag...

Using the Get-Agent cmdlet on

1) A live server with an appd agent, and

2) A live server without an appd agent

I get the same answer: Version 0.0.0.0.

The reason is that the function Get-Agent *assumes* that any server that can be pinged (Test-ComputerConnection) must therefore have a valid AppD registry entry. However, the test server I used actually both has a working AppD agent AND does not have a valid registry entry. The code does not account for this, and returns a 0.0.0.0 value. I am going to have to change the official code to get any use out of it. Could an AppD developer please add further resilience to their official cmdlet?

Thanks. 

Labels (1)
0 Karma

Thiru_Chidambar
Explorer

Hi David,

Thanks for contacting AppDynamics. Please let us know which agent version is installed in your servers. The commandlet is looking for the registry key 

HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall with a Displayname value equals to AppDynamics .Net Agent. If it can't find that entry, 0.0.0.0 is returned, which means no agent is installed. 

 

So, in a machine where no agent is installed, the response you got is expected. However, in the machine where the agent is installed, these registry entries must be present. So, we have to understand why those registry entries are not created. If the registry entries are corrupt, they can be fixed by launching the Appdynamics configuration wizard (from start menu).

 

-Thiru

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...