Powershell script to get Tape job report

PowerShell script exchange

Powershell script to get Tape job report

Veeam Logoby lmark » Wed Aug 12, 2015 11:10 pm

Hi,
I'm trying to figure out how to mimic the GUI action of right clicking a tape job -> Report.
We get the report emails already, but I'd like to have a powershell script that executes with the following information for tape tracking.

Job Name:
Date of report:
Start Time:
End Time:
Duration:
Total Size:
Used Tape(s):

Please assist if you can.
I've tried get-VBRtapejob, but I don't see the details I'd like in there.
I've searched as much as I could, but am coming up empty.
I found there are Powershell Veeam classes [Veeam.Backup.*] in Powershell, but there are so many options I wouldn't know what to use.
From what I've searched there are no lists of the classes and functions online.

Also, I've found this option in another post, but it doesn't seem to work for tape jobs: .\veeam.backup.validator.exe /backup:$job.name /format:html /report:$VeeamOutputFile

Thank you
lmark
Lurker
 
Posts: 2
Liked: never
Joined: Wed Aug 12, 2015 9:58 pm

Re: Powershell script to get Tape job report

Veeam Logoby v.Eremin » Thu Aug 13, 2015 10:15 am 1 person likes this post

To get information session specific information you should use Get-VBRSession commandlet. As to tapes used during the latest job run, take a look at this script. 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 get Tape job report

Veeam Logoby lmark » Thu Aug 13, 2015 5:43 pm

Thanks v.Eremin. That linked page got me what I needed to gather the information.
lmark
Lurker
 
Posts: 2
Liked: never
Joined: Wed Aug 12, 2015 9:58 pm

Re: Powershell script to get Tape job report

Veeam Logoby v.Eremin » Thu Aug 13, 2015 8:29 pm

You're welcome. Feel free to ask, if other questions arise. 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 2 guests