Get-VBRComputerBackupJob is working. Can I fetch the each client backup statistics?
i need details "Name","Jobname","Status","StartTime","EndTime","TransferedSizeinMB"
Try using $.JobType -eq “EpAgentBackup”
But this deprecated as far as I know, have a look at the Get-VBRComputerBackupJob cmdlet.
Thanks
Get-VBRComputerBackupJob is working. Can I segregate the each client backup statistics?
i need details "Name","Jobname","Status","StartTime","EndTime","TransferedSizeinMB"
You can do this with Get-VBRComputerBackupJoB | select Name,Jobname,Status,StartTime,EndTime,TransferedSizeinMB
Try using $.JobType -eq “EpAgentBackup”
But this deprecated as far as I know, have a look at the Get-VBRComputerBackupJob cmdlet.
Thanks
Get-VBRComputerBackupJob is working. Can I segregate the each client backup statistics?
i need details "Name","Jobname","Status","StartTime","EndTime","TransferedSizeinMB"
You can do this with Get-VBRComputerBackupJoB | select Name,Jobname,Status,StartTime,EndTime,TransferedSizeinMB
Thanks for your reply
it doesnt get me each client backup statistics ( null value is printed on Status, StartTime,EndTime,Size).
I have used below queries for VM backup status.
# Fetch each backup job sessions from VBR for the last 24 hours $vbrsessions = Get-VBRBackupSession | Where-Object {$_.JobType -eq "Backup" -and $_.EndTime -ge (Get-Date).addhours(-24)}
# Fetch each client session details from each backup job $client = foreach ($session in $vbrsessions) {$session.gettasksessions()| Select Name, Jobname, Status, @{n='StartTime';e={$_.Progress.StartTimeLocal}}, @{n='EndTime';e={$_.Progress.StopTimeLocal}},@{n='TransferedSizeinMB';e={Mmath]::Round(($_.Progress.TransferedSize/1048576),2)}}}
This gets you the name of the backed up system and the status. You can get more information from each session, please experiment a little bit with this to get the specific information you need.
I have developed below script by God’s grace and it worked for me
I saw that this forum was closed two years ago, but I'm having a problem searching for information in jobs type "EpAgentBackup", in the "Backup" type I can search for all the information, but in "EpAgentBackup" I can't...
I would like to obtain information as below:
Job = $JobName
Name = $jobObject.Name
Size = $jobObject.ApproxSizeString
PointsOnDisk = $PointsOnDisk
LastResult = $LastResult
LastBackupStart = $LastBackupStart
LastBackupTotalSize = $BackupTotalSize
LastBackupSize = $BackupSize
RepositoryPath = $RepositoryPath
Status = $jobStatus
Today I can't search for information via PowerShell in Agent type jobs.