-
- Service Provider
- Posts: 252
- Liked: 20 times
- Joined: Aug 02, 2011 9:30 pm
- Full Name: Matjaž Antloga
- Location: Celje, Slovenia
- Contact:
get-vbrepjob feature request
Hi There
get-vbrepjob returns some basic info but not close to -get-vbrjob
Can you add at least LatestRunLocal?
we are monitoring agent jobs and some are green (because last status is Success) altough they haven't been run for a week or month etc?
Thanks!
get-vbrepjob returns some basic info but not close to -get-vbrjob
Can you add at least LatestRunLocal?
we are monitoring agent jobs and some are green (because last status is Success) altough they haven't been run for a week or month etc?
Thanks!
-
- Product Manager
- Posts: 20413
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: get-vbrepjob feature request
What you're using this cmdlet for? I'm wondering because we have an extensive PS model for agent management backup and backup copy jobs, and those objects (VBRComputerBackupJob, VBRComputerBackupCopyJob) should have the properties you're after. Thanks!
-
- Service Provider
- Posts: 252
- Liked: 20 times
- Joined: Aug 02, 2011 9:30 pm
- Full Name: Matjaž Antloga
- Location: Celje, Slovenia
- Contact:
Re: get-vbrepjob feature request
can we get info about (VBRComputerBackupJob, VBRComputerBackupCopyJob) with Get-????? command when connected to VBR?
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: get-vbrepjob feature request
You can get the details that you are looking for between the 'Get-VBRComputerBackupJob' and 'Get-VBRComputerBackupJobSession' cmdlets.
I'll write up a simple script which will display all VBRComputerBackup jobs and their status/last run details shortly.
I'll write up a simple script which will display all VBRComputerBackup jobs and their status/last run details shortly.
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Service Provider
- Posts: 252
- Liked: 20 times
- Joined: Aug 02, 2011 9:30 pm
- Full Name: Matjaž Antloga
- Location: Celje, Slovenia
- Contact:
Re: get-vbrepjob feature request
Many thanks!
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: get-vbrepjob feature request
Apologies for the delay, my kids didn't cooperate with bedtime last night to give me time to get to this after hours.
This should help you out, I left the code to output to the console as well as export to CSV file.
This should help you out, I left the code to output to the console as well as export to CSV file.
Code: Select all
$ComputerJobs = Get-VBRComputerBackupJob
foreach ($EachJob in $ComputerJobs) {
$Sessions = Get-VBRComputerBackupJobSession -Name "*$($EachJob.Name)*"
[System.Collections.ArrayList]$AllComputerSessionsObject = @()
foreach ($IndividualSession in $Sessions) {
$SessionOutput = [PSCustomObject][Ordered] @{
'JobName' = $($EachJob.Name)
'CreationTime' = $IndividualSession.CreationTime
'EndTime' = $IndividualSession.EndTime
'Result' = $IndividualSession.Result
'State' = $IndividualSession.State
'JobEnabled' = $EachJob.JobEnabled
'JobId' = $IndividualSession.JobId
'SessionId' = $IndividualSession.Id
}
$null = $AllComputerSessionsObject.Add($SessionOutput)
Remove-Variable -Name SessionOutput | Out-Null
}
}
Write-Output $AllComputerSessionsObject
$AllComputerSessionsObject | Export-Csv -Path ./ComputerJobSessionReport.csv -NoTypeInformation
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
Who is online
Users browsing this forum: No registered users and 9 guests