Manage Custom Actions for Splunk AppDynamics 自己ホスト型仮想アプライアンス
- 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:CODE
appdcli controller actions_add <directory_name> <script_name>Example:
CODEappdcli 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 custom.xmlファイルのコンテンツ on how to create contents in the XML file.
-
Run the following command:CODE
appdcli controller actions_add <directory_name> --bulk=trueExample:CODEappdcli controller actions_add /home/appduser/custom_action --bulk=true
-
- To delete custom actions, run the following commands:
- One Action
-
CODE
appdcli controller actions_delete <action_name>Example:CODEappdcli controller actions_delete Jira - Multiple Actions
-
CODE
appdcli controller actions_delete --all=true
- To verify the custom actions, run the following commands:
- One Action
-
CODE
appdcli controller actions_verify - Multiple Actions
-
CODE
appdcli controller actions_verify --directory=<directory_path>Example:CODEappdcli 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
-
CODE
appdcli controller actions_run <action_name> - Multiple Actions
-
CODE
appdcli controller actions_run --all=true
- Print the custom.xml file in the table format:
CODE
appdcli controller actions_run --print_xml=true - Print an action name in the Controller:
CODE
appdcli controller actions_run --print_actions=true
- Run the following commands:
- (Optional) Reset the Controller the with custom actions:
CODE
appdcli controller actions_sync