-
- Enthusiast
- Posts: 28
- Liked: 3 times
- Joined: Jan 14, 2015 7:01 am
- Contact:
Return codes and messages on pre-job scripts
Hello everyone,
as I recently learned, backup jobs could kill tape jobs
Therefore I wrote a script that is supposed to run pre-job an check if the corresponding tape job is still running and if so wait until this is through (by sleeping for x seconds)
That working I wondered if it would be possible to return different information to the backup job.
e.g. if a tape job supplied to a backup job might not exist generate a warning in the log of the backup job
Is this possible somehow? At best I would like to supply different error levels from the pre script (as well as a message) that is then shown in the backup's log
Best regards
as I recently learned, backup jobs could kill tape jobs
Therefore I wrote a script that is supposed to run pre-job an check if the corresponding tape job is still running and if so wait until this is through (by sleeping for x seconds)
That working I wondered if it would be possible to return different information to the backup job.
e.g. if a tape job supplied to a backup job might not exist generate a warning in the log of the backup job
Is this possible somehow? At best I would like to supply different error levels from the pre script (as well as a message) that is then shown in the backup's log
Best regards
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Return codes and messages on pre-job scripts
You cannot write directly to job logs. However, there is nothing preventing you from creating a custom logs, writing to it whatever information you need and send it to the corresponding email afterwards. Thanks.
-
- Enthusiast
- Posts: 28
- Liked: 3 times
- Joined: Jan 14, 2015 7:01 am
- Contact:
Re: Return codes and messages on pre-job scripts
Hello
custom logs are generated on the VBR host by the script in any case
I'd just like to add a line to the Jobs log
How might that be done? My script is a ps1 called by a cmd
Best regards
custom logs are generated on the VBR host by the script in any case
I'd just like to add a line to the Jobs log
How might that be done? My script is a ps1 called by a cmd
Best regards
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Return codes and messages on pre-job scripts
I've made a typo, while writing the last message. The correct wording should have been - "You cannot write directly to job logs".
There is no way to add information to the job log, so, the custom log seems to be the only way to go.
Thanks.
There is no way to add information to the job log, so, the custom log seems to be the only way to go.
Thanks.
-
- Enthusiast
- Posts: 28
- Liked: 3 times
- Joined: Jan 14, 2015 7:01 am
- Contact:
Re: Return codes and messages on pre-job scripts
Thats sad...I'll add a feature request
Thanks for the infos so far
Thanks for the infos so far
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Return codes and messages on pre-job scripts
Your voice is heard. Though, I don't think that it's going to be a good idea to let customers directly add information to the session's logs. Being incorrectly formatted or badly written, those operations could easily overfill sessions' view and/or make them unreadable. Thanks.
Who is online
Users browsing this forum: No registered users and 17 guests