Manage Custom Actions for Splunk AppDynamics Self Hosted Virtual Appliance
- To add custom actions, run the following command:
- One Action
Create a custom action folder in the /home/appduser/ with its script. For example, Jira folder with script1.sh.
- Run the following command:
appdcli controller actions_add <directory_name> <script_name>Example:
appdcli controller actions_add /home/appduser/Jira script1.shIn this example, the command copies the Jira folder to /var/appd/data/custom-actions/actions and updates the custom.xml file in the same path.
- Multiple Actions
Create the custom_action folder in /home/appduser.
Create the actions folder. In this folder, create action folders with their scripts.
For example, you may create Jira and Bugzilla folders with scripts in the actions folder.
In the actions folder, create the custom.xml file. See Contents of the custom.xml File on how to create contents in the XML file.
- Run the following command:
appdcli controller actions_add <directory_name> --bulk=trueExample:appdcli controller actions_add /home/appduser/custom_action --bulk=true
- To delete custom actions, run the following commands:
- One Action
appdcli controller actions_delete <action_name>Example:appdcli controller actions_delete Jira- Multiple Actions
appdcli controller actions_delete --all=true
- To verify the custom actions, run the following commands:
- One Action
appdcli controller actions_verify- Multiple Actions
appdcli controller actions_verify --directory=<directory_path>Example:appdcli controller actions_verify --directory=/home/appduser/<custom_action_folder>
- To dry run the custom actions, perform the following commands:
- Run the following commands:
- One Action
appdcli controller actions_run <action_name>- Multiple Actions
appdcli controller actions_run --all=true
- Print the custom.xml file in the table format:
appdcli controller actions_run --print_xml=true - Print an action name in the Controller:
appdcli controller actions_run --print_actions=true
- Run the following commands:
- (Optional) Reset the Controller the with custom actions:
appdcli controller actions_sync