Hi
@ThierryF,
There is no native way to do that through Powershell, but you can try .NET methods.
For backup sessions and job result overall:
Code: Select all
$jobs = [Veeam.Backup.Core.CBackupJob]::GetAll() | where {$_.TypeToString -eq 'Solaris x86 Agent Backup'}
$sessionsSum = @()
foreach ($job in $jobs) {
$sessions = [Veeam.Backup.Core.CBackupSession]::GetByJob($job.Id)
$sessionsSum += $sessions
}
$sessionsSum | select Name, JobId, Result
For task sessions and status of each backup taken:
Code: Select all
$jobs = [Veeam.Backup.Core.CBackupJob]::GetAll() | where {$_.TypeToString -eq 'Solaris x86 Agent Backup'}
$sessionsSum = @()
foreach ($job in $jobs) {
$sessions = [Veeam.Backup.Core.CBackupSession]::GetByJob($job.Id)
foreach($session in $sessions) {
$taskSessions = [Veeam.Backup.Core.CBackupTaskSession]::GetByJobSession($session.Id)
$sessionsSum += $taskSessions
}
}
$sessionsSum | select ObjectName, SessionId, Status
Note, though, that an implementation of .NET methods may differ from release to release. Thus, they are not officially supported.
Thanks,
Oleg