-
- Influencer
- Posts: 13
- Liked: 8 times
- Joined: Feb 18, 2019 6:34 pm
- Full Name: Scott Driver
- Contact:
Interesting results from Get-VBRBackupSession
Curious if anyone else has odd results from this cmdlet. When I run it against a daily job, I get a single session returned, from a year ago.
When I go into the VBR console, and click the report button I get a valid report, so I know the data is out there.
Anyone running into similar? Does anyone know what the Report in VBR console uses on the backend? I'm guessing they are private API's, but if there's another cmdlet...
When I go into the VBR console, and click the report button I get a valid report, so I know the data is out there.
Anyone running into similar? Does anyone know what the Report in VBR console uses on the backend? I'm guessing they are private API's, but if there's another cmdlet...
Vanguard** | vExpert**** | VCP-DCV***** | VirtualVT.wordpress.com | @VTsnowboarder42
Lover of my family, snowboarding, community and bullet points.
Lover of my family, snowboarding, community and bullet points.
-
- Influencer
- Posts: 13
- Liked: 8 times
- Joined: Feb 18, 2019 6:34 pm
- Full Name: Scott Driver
- Contact:
Re: Interesting results from Get-VBRBackupSession
My friend Craig shared this KB with me, but now I no longer get even the single session that I shared in the original response.
https://www.veeam.com/kb1995
https://www.veeam.com/kb1995
Vanguard** | vExpert**** | VCP-DCV***** | VirtualVT.wordpress.com | @VTsnowboarder42
Lover of my family, snowboarding, community and bullet points.
Lover of my family, snowboarding, community and bullet points.
-
- Influencer
- Posts: 13
- Liked: 8 times
- Joined: Feb 18, 2019 6:34 pm
- Full Name: Scott Driver
- Contact:
Re: Interesting results from Get-VBRBackupSession
Anyone who may come across this thread, I've found a workaround.
My particular issue appears to come from use of the -name parameter. By approaching the problem slightly differently, I was able to get the desired results. Please note if you take this approach, your script will run slower, as it will pull in an entire result set AND THEN parse the results.
My particular issue appears to come from use of the -name parameter. By approaching the problem slightly differently, I was able to get the desired results. Please note if you take this approach, your script will run slower, as it will pull in an entire result set AND THEN parse the results.
Vanguard** | vExpert**** | VCP-DCV***** | VirtualVT.wordpress.com | @VTsnowboarder42
Lover of my family, snowboarding, community and bullet points.
Lover of my family, snowboarding, community and bullet points.
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Interesting results from Get-VBRBackupSession
Parameter Name is not refering to job name. Very missleading. See examples.
https://helpcenter.veeam.com/docs/backu ... l?ver=95u4
\Masonit
https://helpcenter.veeam.com/docs/backu ... l?ver=95u4
\Masonit
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Interesting results from Get-VBRBackupSession
The parameter name defines name of entity the cmdlet returns.
* Get-VBRJob -name defines name of job
* Get-VBRBackupSession -name defines name of backup session
To get all sessions of particular job use slightly different approach:
OR
Thanks!
* Get-VBRJob -name defines name of job
* Get-VBRBackupSession -name defines name of backup session
To get all sessions of particular job use slightly different approach:
Code: Select all
Asnp VeeamPSSNapin
$Job = Get-VBRJob -name "Name of your Job"
Get-VBRBackupSession | where {$_.Info.JobId -eq $Job.Id}
Code: Select all
Asnp VeeamPSSNapin
$Job = Get-VBRJob -name "Name of your Job"
Get-VBRBackupSession | where {$_.Info.JobName -eq $Job.Name}
Who is online
Users browsing this forum: No registered users and 5 guests