AppD Archive

Run powershell script in response to health policy violation

CommunityUser
Splunk Employee
Splunk Employee

I'm new to appdynamics but I understand you can run scripts with runbook automation in response to health policy violations. Are only cmd scripts allowed, or can you run powershell? 

0 Karma

Arun_Dasetty
Super Champion

Hi,

As we see parameters can be directory passed powershell main command, we can either call powershell in batch file and then issue target command Or directory pass the command to powershell, check if you face issues, we do not have documentation for this, but you can give a try as this is like any command, Hope that information helps

As per my understanding we just issue the command in target script that is triggered on violation of rule in UI, whether it custom script from machine agent or custom action , hope it is clear

image.png

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...