Get backup status for individual VM's

PowerShell script exchange

Get backup status for individual VM's

Veeam Logoby Manfriday » Fri Jun 08, 2012 3:45 pm

Hi,

Some of the admin's want to be able to pull a list of the individual VM's backup status.
They don't want to dig thru the job reports.. they just want to be able to run a script and find out whether a specified VM was backed up properly or not.

Is there a way to do this with powershell?
Manfriday
Novice
 
Posts: 9
Liked: never
Joined: Tue Sep 15, 2009 6:03 pm
Full Name: Jason Morris

Re: Get backup status for individual VM's

Veeam Logoby Vitaliy S. » Fri Jun 08, 2012 4:09 pm

Hi Jason,

You may want to take a look at this existing post, that has a script example that you're looking for:
PowerShell Veeam backup status report

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19546
Liked: 1100 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Get backup status for individual VM's

Veeam Logoby Manfriday » Fri Jun 08, 2012 10:04 pm

Thanks!

I had seen that thread actually, but the script doesn't seem to work with version 6.


Jason
Manfriday
Novice
 
Posts: 9
Liked: never
Joined: Tue Sep 15, 2009 6:03 pm
Full Name: Jason Morris

Re: Get backup status for individual VM's

Veeam Logoby Sethbartlett » Mon Jun 11, 2012 4:19 am 1 person likes this post

Code: Select all
$VMName = "Name of your VM"
foreach($Job in (Get-VBRJob))
{
   $Session = $Job.FindLastSession()
   if(!$Session){continue;}
   $Tasks = $Session.GetTaskSessions()
   $Tasks | ?{$_.Name -eq $VMName} | %{write-host $_.Name ":" $_.Status}
}
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Re: Get backup status for individual VM's

Veeam Logoby Manfriday » Mon Jun 11, 2012 3:22 pm

That worked great!
Thanks!
Manfriday
Novice
 
Posts: 9
Liked: never
Joined: Tue Sep 15, 2009 6:03 pm
Full Name: Jason Morris


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests