PowerShell script exchange
Post Reply
lmark
Lurker
Posts: 2
Liked: never
Joined: Aug 12, 2015 9:58 pm
Contact:

Powershell script to get Tape job report

Post by lmark »

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
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell script to get Tape job report

Post by veremin » 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.
lmark
Lurker
Posts: 2
Liked: never
Joined: Aug 12, 2015 9:58 pm
Contact:

Re: Powershell script to get Tape job report

Post by lmark »

Thanks v.Eremin. That linked page got me what I needed to gather the information.
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell script to get Tape job report

Post by veremin »

You're welcome. Feel free to ask, if other questions arise. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests