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:
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?
... View more