Hello,
I am looking for the possibility to check the runtime/duration of a TapeJob. My customer is using a Standard Edition of Veeam to a single drive. And I need to cancel a tapejob, if it is running longer
than 5 hours.
I tried to get this solved on my own, which the code-snippets in this forum, but I had no luck so far.
Any help is appreciated.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Oct 10, 2015 6:09 am
- Full Name: Rene Baumann
- Contact:
-
- Product Manager
- Posts: 20284
- Liked: 2258 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Duration/Run-time of a Tape-Job
Before we proceed to scripting, I have a quick question - do you have Veeam ONE deployed or not? Thanks.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Oct 10, 2015 6:09 am
- Full Name: Rene Baumann
- Contact:
Re: Duration/Run-time of a Tape-Job
Hello Vladimir,
no Veeam ONE is not deployed.
no Veeam ONE is not deployed.
-
- Product Manager
- Posts: 20284
- Liked: 2258 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Duration/Run-time of a Tape-Job
You should get the latest job session, using Get-VBRSession commandlet with -Last parameter. Check whether it's still running. In case of positive answer, compare start and current times of the session. If the gotten value exceeds pre-defined number, stop the job, using Stop-VBRJob commandlet.
Thanks.
Thanks.
Who is online
Users browsing this forum: No registered users and 8 guests