Unsolved
This post is more than 5 years old
1 Rookie
•
84 Posts
0
520
May 6th, 2015 01:00
Schedule report when group completed
Does anyone has any idea how to schedule a group backup status immediately after the group completed? Instead of set at certain time I would like to send out the report after the group completed.
I couldn't find anything on schedule part so far.. maybe someone has done this before?
No Events found!



ble1
2 Intern
•
14.3K Posts
0
May 6th, 2015 01:00
a) you could capture savegrp event and parse output and send it via email (requires some scripting)
b) you could use NSR client owner notification (this would be at client level)
Aegh
1 Rookie
•
84 Posts
0
May 6th, 2015 03:00
What I meant is in DPA..
I already have those scripts to send out notification via email, but I'm trying to have one in DPA
ble1
2 Intern
•
14.3K Posts
0
May 6th, 2015 03:00
Ah sorry... I didn't see this was in DPA forum (I just clicked on email notification). I don't know exactly for DPA, but I plan to explore that space soon too.
DavidRussell1
141 Posts
0
May 7th, 2015 00:00
Hi,
You could create a scheduled report in DPA that is set to run at the same time that the group is scheduled to start. Within the scheduled report definition you can specify a pre-processing script. In this section you could specify a script that runs to see if the group has completed and return/finish when it has. At that point the scheduled report will run and you will get the output.
HTH
David
Aegh
1 Rookie
•
84 Posts
0
May 13th, 2015 20:00
Hey David,
Thanks for the answer.. Do you know what kind of script I can use here?
I'm not really good in scripting so not sure what should I put in there..
DavidRussell1
141 Posts
0
May 14th, 2015 02:00
Hi,
The format of the script would be dependent on the OS you are running the DPA server on. I am not a scripting expert however I would imagine you would create a loop where you run the NW command to find out the status of the group job. If it is still active then it would use a sleep command to wait for a few seconds before looping back round and trying again. When the NW command returns that the job is completed, the script would break out of the loop and finish, allowing the DPA scheduled report to finish. There are probably a few good examples on the web you could reference of a script doing a similar thing.
Thanks
David