I'm investigating the feasibility of your request and will get back to you soon with an answer.
BMC Senior Technical Support Analyst
1 of 1 people found this helpful
Yes, it is possible to execute the native action category using command line utility "./run_action.pl"
./run_action.pl <manager_url> <exec_id> <action_fqn> <xml_filename>
manager_url = BDA manager URL (e.x. https://mymanager:8087 )
exec_ID= any random no or string as execution ID (e.x. 5 or run_native_action)
action_fqn= Container and action name (e.x. /QA-node)
xml_filename= its a xml which contains parameters required for action "/QA-node" to run and list of candidates. Please provide full path of xml file.(e.x./root/params_files/native_action_candidate.xml)
Pre-requisite :- Set the credentials of your manager as below before you run the cmdutil command.
export GA_USERNAME=<username>; export GA_PASSWORD=<password>;
E.X. = ./run_action.pl "https://mymanager:8087" run_native_action /QA-node /root/params_files/native_action_candidate.xml
native_action_candidate.xml File contents :-
<job_title>Execute Action QA-Reboot-Windows-Node</job_title>
Couple of questions:
1) is there a simple means to list the native actions like there is with the REST API? Since the Action exists in the native categories, I don't know how to build the FQN for the Action.
a) what is the base reference point? The REST API starts at /1.0/ from the base of https://<server FQDN:port>/bda/rest/api
2) Does the GUI build this XML file each time it runs a command, such as Reboot Node?
a) is there no way to pass in a candidate dynamically? I'm thinking of how to make this into a scriptable solution for my DBAs to be able to do a reboot-patch apply-reboot process.
b) I would think that I could take a copy of an XML that is generated by this native command from the GUI and make the required XML file being passed into the command line call, substituting the necessary candidates, correct?
3) what is the "gui_template" that you are referencing?