10-03-2013 03:45 PM
Hello Symantec world!
Just got done meeting with one of our SQL DBAs. We are well on our way to refining certain automations involving Netbackup routines against prod database instances. At the end, we were left with a simple question:
What is the programatic return that tells the master server, "this backup is finished"?
The reason for being finished is irrelevant. It failed; It succeeded; It pranced amongst the flowers in a field of autumn gold. All not important.
Another way to phrase it:
What return could I extract programmatically to tell some other program somewhere else, "Hey, this backup has finished"?
I'm not looking for 'is it still running'. Nor am I looking for 'has it started'. I am simply looking for whatever variable or boolean or whatever that will tell me that, for whatever reason, it is done.
Let me know if you have any questions, and thank you so much in advance.
10-03-2013 04:18 PM
10-05-2013 01:25 PM
Martin,
HUGE help.
I see at the very end of XXX.t that there is an "ended" call. Pretty fantastic. Then there's a giant integer. That seems to relate back to an integer assigned at the beginning of the process described in the trylog.
Here's my next question: we have to try to find the trylog using only the server name, or so little as the instance name of the database being backed up. Is this possible? If so, how?
10-06-2013 10:09 AM
OK, I had a look on my system.
The integer is just a ctime, NBUs way of displaying time/ date
From a trylog on my system
10-06-2013 10:17 AM
You can use the parent end notify script that runs on the master server to log when a job has finish.
The script can be useful to you, as passes the policy, schedule, time and other information of a job.
10-19-2013 06:47 AM
I found a document on using this in a different context. You know of any specific documentation for using this script generally?
10-19-2013 06:56 AM
Another question, Martin:
I need to programatically retrieve the job number using only the name of the server and the instance being backed up for some SQL servers. Any tools there?
10-19-2013 11:03 AM