cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

Passing a command line argument while executing script through a remediation action

SOLVED
Shubham.Jain
Voyager

Passing a command line argument while executing script through a remediation action

Hi,

 

I need to execute a script using AppDynamics. While executing the script, I need to pass a command line argument. Could you please let me know if this is possible? If yes, could you please let me know how to achieve this?

Like, in below example, I need to execute the script AppdDiagnosticDisk.sh passing the argument "/opt".

 

remediation.PNG

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Passing a command line argument while executing script through a remediation action
3 REPLIES 3
Eric.Miller
Architect

Yep, should be possible depending on what you're doing, this document may help: https://docs.appdynamics.com/display/PRO45/Remediation+Actions#RemediationActions-Configuration

 





Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Shubham.Jain
Voyager

Hi,

 

I tried to pass a command line variable, the remediation action is failing with below error. Could you please suggest further.

 

remAction.PNG

Jitender.Mankotia
Discoverer

I don't think its feasible to pass command command line argument in the remediation action. If AppDynamics team can share that it we would be more than happy to use this functionality.