PowerShell script exchange
Post Reply
jehad
Novice
Posts: 4
Liked: never
Joined: Aug 27, 2015 9:26 am
Full Name: jehad Twati
Contact:

powershell script to show the jobs thats runs long Time

Post by jehad »

Hello,

I need a PowerShell script to show the jobs that's runs long time or that ran more than 24 hours ago , and send Email noteafction .

Does someone have any ideas.

Thanks
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: powershell script to show the jobs thats runs long Time

Post by veremin » 1 person likes this post

Before we stick to scripting, can I ask you a question? Don't you happen to have Veeam ONE deployed? I'm wondering because it has the alarm you're looking for (it's called "job duration", if I'm not mistaken). Thanks.
jehad
Novice
Posts: 4
Liked: never
Joined: Aug 27, 2015 9:26 am
Full Name: jehad Twati
Contact:

I need powershell script to show the jobs thats runs long Ti

Post by jehad »

Thank you for your reply, Yes We have veeam one installed , But we need script for after work or weekend for example at night.
By the way, Veeam B&R installed is ver (V8) .
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: powershell script to show the jobs thats runs long Time

Post by veremin » 1 person likes this post

Then, alarm suppression might do the trick for you. Thanks.
jehad
Novice
Posts: 4
Liked: never
Joined: Aug 27, 2015 9:26 am
Full Name: jehad Twati
Contact:

Re: powershell script to show the jobs thats runs long Time

Post by jehad »

Thank you for your solution . But we need script to do action, I mean for our request . if you can help us , thanks again .
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: powershell script to show the jobs thats runs long Time

Post by veremin » 1 person likes this post

You mean to make script perform some action in case it finds out a job exceeding allowed backup window? For instance, let script stop a job or something like that? We (me and Vitaliy) have previously combined our expertise to achieve the very same goal. Thanks.
jehad
Novice
Posts: 4
Liked: never
Joined: Aug 27, 2015 9:26 am
Full Name: jehad Twati
Contact:

Re: powershell script to show the jobs thats runs long Time

Post by jehad »

Hi Eremin,
Good day,
I mean about my request for script, just notify us any job that's runs more than 24 hours ago, just notify .
Thanks.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: powershell script to show the jobs thats runs long Time

Post by veremin »

Then, check this script. Just replace 8 with whatever number you want to. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests