Use the tacmd executeAction command to execute the system command provided in the given Take Action command. You must log in by using the tacmd login command before running the tacmd executeAction command. If the following options are specified, certain Take Actions fail:
For more information, see ’The tacmd executeaction command fails for certain Take Actions’ entry in the IBM Tivoli Monitoring Troubleshooting Guide.
where:
To use this option, the hub monitoring server, the targeted monitoring agents, and any remote monitoring servers to which the targeted agents are connected must be at IBM Tivoli Monitoring v6.2.2 Fix Pack 2 or later. Otherwise, the option is ignored. This option is ignored if the specified system is an i5/OS or z/OS monitoring agent.
To use this option, the hub monitoring server, the targeted monitoring agents, and any remote monitoring servers to which the targeted agents are connected must be at IBM Tivoli Monitoring v6.2.2 Fix Pack 2 or later. Otherwise, the option is ignored. This option is ignored if the specified system is an i5/OS or z/OS monitoring agent.
To use this option, the hub monitoring server, the targeted monitoring agents, and any remote monitoring servers to which the targeted agents are connected must be at IBM Tivoli Monitoring v6.2.2 Fix Pack 2 or later. Otherwise, the option is ignored. This option is ignored if the specified system is an i5/OS or z/OS monitoring agent.
To use this option, the hub monitoring server, the targeted monitoring agents, and any remote monitoring servers to which the targeted agents are connected must be at IBM Tivoli Monitoring v6.2.2 Fix Pack 2 or later. Otherwise, the option is ignored. This option is ignored if the specified system is an i5/OS or z/OS monitoring agent.
For section separators, use the -l|--layout option. If the specified directory does not exist, then it is created. If the -p|--path option is not specified, but if any of the following options is defined, then a default directory is created where the command issued:
The default directory name has the following format:
TACMD_CXA_ActionName_Timestamp_RND8Char
In this directory, one file for each managed system is created by using the following format:
TACMD_CXA_ExecutedAction_ManagedSystemName_Timestamp_SEQChar.log
Where:
To use this option, the hub monitoring server, the targeted monitoring agents, and any remote monitoring servers to which the targeted agents are connected must be at IBM Tivoli Monitoring v6.2.2 Fix Pack 2 or later. Otherwise, the option is ignored. This option is ignored if the specified system is an i5/OS or z/OS monitoring agent.
To use this option, the hub monitoring server, the targeted monitoring agents, and any remote monitoring servers to which the targeted agents are connected must be at IBM Tivoli Monitoring v6.2.2 Fix Pack 2 or later. Otherwise, the option is ignored. This option is ignored if the specified system is an i5/OS or z/OS monitoring agent.
value=inputvalue1,inputvalue2,inputvalue3
Certain input values are optional. You can provide a value for those inputs. You can also specify a comma for those that you do not want to provide a value. For example:
value=inputvalue1,,inputvalue3
The viewaction command helps to identify the input value. Checking for the number of ampersand characters under the column command tells you exactly the number of input values that have to be provided to execute the Take Action command.
This example executes the action command named "URL Add" of type UM on the managed system LSC334ASFSdp:UAGENT00. -c provides the input values required by the action command to execute.
tacmd executeaction -n "URL Add" -t um -m LSC334ASFSdp:UAGENT00 -c value=http://w3.ibm.com,w3,1000,105,object
This example executes the action command named "Sample Linux Kill Process" from a Windows environment to terminate running process 6383 on a Linux endpoint. This command also requests that the standard output, standard error, and return code be captured with the response file having section separators added, and the file saved in the c:\temp directory:
tacmd executeaction -m LINUX:LZ -n "Sample Linux Kill Process"
-t lz -c value="6383" -e -o -r -l -p c:\temp
See Table 6.
Return to Table 1.
[ Top of Page | Previous Page | Next Page ]