PowerShell script exchange
Post Reply
ghilou
Influencer
Posts: 15
Liked: 1 time
Joined: Feb 13, 2017 3:28 pm
Contact:

VBR list ALL jobs (including managed agents)

Post by ghilou » 1 person likes this post

I'm slowly moving my 100ish veeam agents to be managed by the VBR.

I used to rely on 'veeamconfig session' to get the state of the last backup for monitoring purposes. Now the agent are managed, the command is unavaillable.

It's all good though, i'd rather monitor the backups from the VBR. Except the "get-vbrjob" comandlet doesn't list managed agent jobs. There is a special comandlet for agents (get-vbrepjob) but it lists only non-managed jobs.

How can i list managed jobs in powershell?
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: VBR list ALL jobs (including managed agents)

Post by nielsengelen »

Currently this is not possible via Powershell as described in our userguide, we will add this in an upcoming release.
Veeam Agent for Microsoft Windows cmdlets will not work for jobs that were created using Veeam Agent management functionality. The ability to manage Veeam Agent management jobs will be provided in future versions of Veeam PowerShell.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
Vek17
Service Provider
Posts: 49
Liked: 15 times
Joined: May 29, 2018 8:42 pm
Contact:

Re: VBR list ALL jobs (including managed agents)

Post by Vek17 »

I believe that calling [Veeam.Backup.Core.CBackupJob]::GetAll() will grab all jobs including the agent jobs. I believe the jobtype you are going to want to look for is "EndpointBackup".

There is a bit of weirdness involved with interacting with agents currently and you are going to have to work with unsupported implementations to do it but it is possible.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests