Agent-based backup of Windows, Linux, Max, AIX and Solaris machines.
Post Reply
cswalker
Novice
Posts: 3
Liked: never
Joined: Oct 25, 2016 2:47 pm
Full Name: Christopher S. Walker
Contact:

Cannot locate Veeam Agent Job with Powershell cmdlet

Post by cswalker »

I have 2 protection groups. Protection group 1 contains 4 2012r2 database servers with Veeam Agent for windows. Protection Group 2 contains a physical server.
The servers in both protection groups are part of 2 different Windows Agent Backup job reflecting each protection group. Running the powershell commands get-vbrjob or get-vbrrepjob does not return either of these jobs. Am i missing a different command that i'm supposed to be using?
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Cannot locate Veeam Agent Job with Powershell cmdlet

Post by Vitaliy S. »

Hi Christopher,

I guess the main reason for this behavior is this one, taken from our PS guide:
User Guide wrote: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.
As far as I know PS coverage for agent management is coming in our next release. Hope this helps!
cswalker
Novice
Posts: 3
Liked: never
Joined: Oct 25, 2016 2:47 pm
Full Name: Christopher S. Walker
Contact:

Re: Cannot locate Veeam Agent Job with Powershell cmdlet

Post by cswalker »

That is much appreciated, thank you.
cswalker
Novice
Posts: 3
Liked: never
Joined: Oct 25, 2016 2:47 pm
Full Name: Christopher S. Walker
Contact:

Re: Cannot locate Veeam Agent Job with Powershell cmdlet

Post by cswalker »

So, after playing around for a bit, this is possible...

Code: Select all

Import-Module Veeam.Exchange.PowerShell
Add-PSSnapin -Name VeeamPSSnapin
$Job = [Veeam.Backup.Core.CBackupJob]::Get("VeeamAgentJobName")
$Job | Enable-VBRJob
Dima P.
Product Manager
Posts: 14726
Liked: 1706 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Cannot locate Veeam Agent Job with Powershell cmdlet

Post by Dima P. »

Glad you nailed it and thanks for sharing!

Moving this topic to Veeam B&R Physical and Cloud sub forum as we don't have PS support it standalone agents - only when agents are managed by Veeam B&R server.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests