Follow these steps to trigger a Data Mover job and Job execution logs in a non-workflow environment. Use this method with Data Mover 15.00 and lower and when the Data Mover REST component is not installed on the Data Mover server.
To configure Data Mover job execution triggers and logs, ensure the following packages are installed and configured:
- Data Mover dmDameon
- dmAgent
- dmCommandline
Also, make sure the Ecosystem Manager Publisher and Agent packages are installed and configured on the Data Mover server.
-
Write a script on the Data Mover server.
Ensure the script contains datamove commands to interface with Data Mover. Datamove is an executable from Data Mover.
In this example, note how datamove is used. The Data Mover job 'Spaces_Table_test_212_142829216634' uses 10.25.191.225 as a source TDPID.
#!/bin/sh uowid='datamove start -job_name Spaces_Table_test_212_142829216634 | tao; - 1| cut - f2 -d':' | cut -f2 -d ' ' ` echo $uowid count=1 while [$count -eq 1] do count=`datamover status -jobname Spaces_table_test_212_142829216634 | tail - 1| grep RUNNING | wc-1` echco $count sleep 1 done echo "Checking status: logfile="/root/em/$uowid.log" echo "$logile" datamove status -job_name Spaces_table_test_212_142829216634 -output_level 4 >$ logfile sendevent --et END --jid Spaces_table_test_212_142829216634 - t DM_PROCESS_SOURCE -w $uowide --tds 10.25.191.225 --log "dm-agent4:$logfile"
-
In the Ecosystem Configuration portlet, click Actions and follow the steps to add a new script.
- Click .
- Select Execute Script.
- Enter an Action Name. For example, TestScript.
- Complete the fields as needed, and then click OK.
-
In the Ecosystem Configuration portlet, click Jobs and add a new job.
- Click .
- Enter the Job Name. For example, TestJob.
- Complete the fields as needed, and then click OK.
-
Associate the script with the job you created.
- Click the Action Rules tab.
- Click .
- Select a response. For example, If a START event type Normal severity occurs on 10.25.191.225, execute TestScript.
- Complete the fields as needed, and then click OK.
- Issue a START event for the configured job. For example, the START event can be issued from the Ecosystem Manager server: sendevent --et START --tds 10.25.191.225 -t DM_PROCESS --sc DM --jid TestJob -w TestJobUOWID
- After the action completes, in the Ecosystem Explorer portlet, click the Jobs tab.
- In the summary table, locate the job that executed and in the Log column, click the log file name. You can open or save the log file.