PowerShell script exchange
Post Reply
sfaits
Influencer
Posts: 10
Liked: 2 times
Joined: Apr 07, 2017 7:08 pm
Full Name: William Croft
Contact:

Finding what proxies are in use with running job

Post by sfaits »

I am attempting to write a script that can help our patching team quickly ID veeam Proxy servers that are in use so they do not get restarted when they are backing something up.

I can easily find names of jobs that are running and say hey this job is using the repo server, this storage, and the veeam master server (we only have one of each of those).
I cannot find anything that shows what proxies are in use for that job though. Our jobs are configured to use any proxy that is available.

Is there method beyond scouring the running backup job logs? I have been searching on this for a while and have not found anything that fits.

Given audit restrictions I am not able to install the PowershellCookbook, just gotta stick with plain Powershell 5.1 for the moment and veeam v11.

Thanks!

jhoughes
Veeam Software
Posts: 279
Liked: 112 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Austin, TX
Contact:

Re: Finding what proxies are in use with running job

Post by jhoughes »

You only need the Get-VBRJobProxy cmdlet.
Husband, Father, Solutions Architect, Geek Extraordinaire | @AustinVMUG & @ATXPowerShell leader | VMware vExpert | Cisco Champion

sfaits
Influencer
Posts: 10
Liked: 2 times
Joined: Apr 07, 2017 7:08 pm
Full Name: William Croft
Contact:

Re: Finding what proxies are in use with running job

Post by sfaits »

That just returns a list of proxies available to the job not the ones that are actually being used by the job.

I have 4 proxies, A, B, C, D, and a job named test with 3 Virtual machines with two disks each.
Test has the Backup Proxy (in the Storage section of the setup) set to Automatic so it can use any or all of the 4 proxies during a job run.

When I run the test job and I look at it in the GUI console I am seeing information like "Using backup proxy A for Hard Disk 1 [hotadd], Using backup proxy A for Hard Disk 2 [hotadd] and so forth for each of the six disks. In this run of test it choose to use proxies A, B, and D.

I ran my powershell script with the Get-VBRJobProxy -Job "Test" and it returns a list of all four proxies, A, B, C, D, not the A,B,D that are actually being used.

jhoughes
Veeam Software
Posts: 279
Liked: 112 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Austin, TX
Contact:

Re: Finding what proxies are in use with running job

Post by jhoughes »

If you have the proxy selection set to automatic, then you would have to look through the logs to determine which are actually in use during a running job.
Husband, Father, Solutions Architect, Geek Extraordinaire | @AustinVMUG & @ATXPowerShell leader | VMware vExpert | Cisco Champion

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests