Normally, a session report mail can be received once a job has finished, likes below.
Success 14 Start time 6:00:21 AM Total size 2 TB Backup size 143.6 GB
Warning 0 End time 6:13:39 AM Data read 143.6 GB Dedupe 7.3x
Error 0 Duration 0:13:18 Transferred 143.5 GB Compression 1.0x
I would like generate a job report table, which contains all the backup jobs and tape jobs status as above , like
Site Backup Server Job Name Start Time End Time Duration Rate Size Status
Sydney Veeam1 Veeam Linux with Appliance 15/06/2022 03:00:06 15/06/2022 03:38:54 00.00:38:48 337.63 MB/min 12.80 G Success
Sydney Veeam1 Veeam Linux with Application 15/06/2022 04:08:19 15/06/2022 04:10:58 00.00:02:39 268.69 MB/min 714.73 M Success
Sydney Veeam2 Veeam Linux with Database 15/06/2022 04:11:01 15/06/2022 04:38:43 00.00:27:42 3,304.41 MB/min 89.41 G Success
Sydney Veeam3 Veeam Windows with Application 14/06/2022 23:00:06 14/06/2022 23:40:31 00.00:40:25 1,613.60 MB/min 8.04 G Success
Which command should I use? Thank you in advance.
-
- Enthusiast
- Posts: 26
- Liked: 3 times
- Joined: Jun 04, 2021 12:47 am
- Contact:
-
- Veeam Software
- Posts: 2123
- Liked: 513 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: How to get session report by Powershell
Hi @charles.yang
Well, this is split out over quite a few items like Get-VBRBackupSession and Get-VBRBackup.
To be honest it's a lot of work and maybe you'd like to just use the work of the community on this already done? powershell-f26/my-veeam-report-v9-5-1-t47058-150.html
If you want to build one yourself, play with those objects returned from both and see what you can build, but it is a bit just to warn.
Well, this is split out over quite a few items like Get-VBRBackupSession and Get-VBRBackup.
To be honest it's a lot of work and maybe you'd like to just use the work of the community on this already done? powershell-f26/my-veeam-report-v9-5-1-t47058-150.html
If you want to build one yourself, play with those objects returned from both and see what you can build, but it is a bit just to warn.
David Domask | Product Management: Principal Analyst
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: How to get session report by Powershell
Just a quick hint. Rate corresponds to AvgSpeed property in CBackupSession class. You can get it this way:
As for the Size, I don't know which one of them did you mean (Total, Processed, Read etc.), but you can find them all also in CBackupSession.Progress property.
Thanks!
Code: Select all
$sessions = Get-VBRBackupSession
$sessions[0].Progress.AvgSpeed
Thanks!
Who is online
Users browsing this forum: Amazon [Bot] and 5 guests