powershell script to show the jobs thats runs long Time

PowerShell script exchange

powershell script to show the jobs thats runs long Time

Veeam Logoby jehad » Thu Aug 27, 2015 9:54 am

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
jehad
Novice
 
Posts: 4
Liked: never
Joined: Thu Aug 27, 2015 9:26 am
Full Name: jehad Twati

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

Veeam Logoby v.Eremin » Thu Aug 27, 2015 10:39 am 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby jehad » Thu Aug 27, 2015 10:45 am

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) .
jehad
Novice
 
Posts: 4
Liked: never
Joined: Thu Aug 27, 2015 9:26 am
Full Name: jehad Twati

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

Veeam Logoby v.Eremin » Thu Aug 27, 2015 11:06 am 1 person likes this post

Then, alarm suppression might do the trick for you. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby jehad » Thu Aug 27, 2015 11:19 am

Thank you for your solution . But we need script to do action, I mean for our request . if you can help us , thanks again .
jehad
Novice
 
Posts: 4
Liked: never
Joined: Thu Aug 27, 2015 9:26 am
Full Name: jehad Twati

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

Veeam Logoby v.Eremin » Thu Aug 27, 2015 11:27 am 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby jehad » Thu Aug 27, 2015 11:38 am

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.
jehad
Novice
 
Posts: 4
Liked: never
Joined: Thu Aug 27, 2015 9:26 am
Full Name: jehad Twati

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

Veeam Logoby v.Eremin » Thu Aug 27, 2015 12:17 pm

Then, check this script. Just replace 8 with whatever number you want to. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests