-
- Expert
- Posts: 129
- Liked: 34 times
- Joined: Mar 31, 2018 10:20 am
- Contact:
Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
Hello,
Me again ... last one for today lol
Any way to grab backup status of Solaris agent backups from VBR thru powershell ?
This, to achieve automated backup control, other than jumping to each Solaris server ?
Thanks and have a nice week-end !
Take care of you and your loved ones.
Cheers from Brussels,
Th
Me again ... last one for today lol
Any way to grab backup status of Solaris agent backups from VBR thru powershell ?
This, to achieve automated backup control, other than jumping to each Solaris server ?
Thanks and have a nice week-end !
Take care of you and your loved ones.
Cheers from Brussels,
Th
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
Hi : )
I moved your post to the forum that fits better.
@oleg.feoktistov,
Any ideas?
Thanks!
I moved your post to the forum that fits better.
@oleg.feoktistov,
Any ideas?
Thanks!
-
- Veeam Software
- Posts: 2010
- Liked: 669 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
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:
For task sessions and status of each backup taken:
Note, though, that an implementation of .NET methods may differ from release to release. Thus, they are not officially supported.
Thanks,
Oleg
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
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
Thanks,
Oleg
-
- Expert
- Posts: 129
- Liked: 34 times
- Joined: Mar 31, 2018 10:20 am
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
Hello Oleg,
Gave a try to your suggestion but Solaris agent backups are not retrieved ...
Thanks anyway
Th
Gave a try to your suggestion but Solaris agent backups are not retrieved ...
Thanks anyway
Th
-
- Veeam Software
- Posts: 2010
- Liked: 669 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
Hi,
Just to clarify - are your solaris jobs reflected in VBR console? Does their type read 'Solaris x86 Agent Backup' ?
Thanks,
Oleg
Just to clarify - are your solaris jobs reflected in VBR console? Does their type read 'Solaris x86 Agent Backup' ?
Thanks,
Oleg
-
- Expert
- Posts: 129
- Liked: 34 times
- Joined: Mar 31, 2018 10:20 am
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
No, they are as 'Solaris SPARC Agent Backup'.
I did not retrieve them at first test. I am trying to script a ssh-based collect...
Thanks,
TH
I did not retrieve them at first test. I am trying to script a ssh-based collect...
Thanks,
TH
-
- Veeam Software
- Posts: 2010
- Liked: 669 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
@ThierryF, try replacing first line of the code I shared with the line below:
Thanks!
Code: Select all
$jobs = [Veeam.Backup.Core.CBackupJob]::GetAll() | where {$_.TypeToString -eq 'Solaris SPARC Agent Backup'}
-
- Expert
- Posts: 129
- Liked: 34 times
- Joined: Mar 31, 2018 10:20 am
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
Had a try but just realized I put 2 consecutive spaces in sting, resulting in failing matching ...
Thanks!
TH
Thanks!
TH
-
- Expert
- Posts: 129
- Liked: 34 times
- Joined: Mar 31, 2018 10:20 am
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
Another workaround is to filter on [Veeam.Backup.Core.CBackupJob]::GetAll() | {$_.jobtype -eq 'EndpointBackup'} ....
-
- Veeam Software
- Posts: 2010
- Liked: 669 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Solaris agent 2.0.0.0126-sparc : Collect backup status thru powershell from vbr ?
Well, Solaris agent shares job type with many other platforms like Linux, Windows, IBM AIX etc.
So, it makes sense if you have Solaris agent jobs solely. That's why I use TypeToString property. Thanks!
So, it makes sense if you have Solaris agent jobs solely. That's why I use TypeToString property. Thanks!
Who is online
Users browsing this forum: Google [Bot] and 17 guests