Retreive VM failure or warning info via Powershell

PowerShell script exchange

Retreive VM failure or warning info via Powershell

Veeam Logoby pizzim13 » Thu Aug 11, 2011 10:54 pm

Using powershell, is it possible to pull VM failure or warning info from a job? See screenshot for an example:

Image
pizzim13
Enthusiast
 
Posts: 86
Liked: 6 times
Joined: Thu Apr 21, 2011 7:37 pm

Re: Retreive VM failure or warning info via Powershell

Veeam Logoby Gostev » Thu Aug 11, 2011 11:55 pm

Hi, no I don't believe this is possible with PowerShell cmdlets we have. Thanks.
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Retreive VM failure or warning info via Powershell

Veeam Logoby Sethbartlett » Fri Aug 12, 2011 3:05 am

Once again, another non-supported method. But if you really need this data:

Code: Select all
$Info = [Veeam.Backup.Core.CBackupTaskSession]::GetByJobSession($session.id)
$Info[0].Reason


You get $Session by doing Get-VBRBackupSession. This will allow you what you need. You can do $info |Gm and then if you want to do any of the methods/properties, you will want to do $info[0] as it is an array of objects.
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


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests