PowerShell script exchange
Post Reply
rdixon01
Influencer
Posts: 24
Liked: 2 times
Joined: Oct 09, 2013 2:30 pm
Full Name: Rick
Contact:

Powershell to show all Gateway (Proxy) Servers configured for a Repository

Post by rdixon01 »

With Veeam B&R version 12, we can now add multiple Gateway (Proxy) servers as Gateway server in the repositories. In version 11 we use to be able to view the list of repositories in the console and it would list the individual proxy servers. Now in V12 it just list the name Gateway. Does anyone know of a powershell script command that can be run to list all of the Gateway (Proxy) server that are configured for each repository. The Get-VBRBackupRepository -Name "RepositoryName" command only list the first proxy server in the repository. I have the same problem trying to list all of the "Backup Proxies" configured for our Backups jobs.
Any help would be greatly appreciated.
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Powershell to show all Gateway (Proxy) Servers configured for a Repository

Post by david.domask »

Hi @rdixon01,

Right now I don't know if there's a supported method, but CBackupRepository objects have an unsupported method GetActualGateways():

Code: Select all

PS C:\Program Files (x86)\Veeam\Backup Tape> $repo.GetActualGateways()


Info               : This server (Microsoft Windows server)
ParentId           : 00000000-0000-0000-0000-000000000000
Id                 : 6745a759-2205-4cd2-b172-8ec8f7e60ef8
Uid                : 6745a75922054cd2b1728ec8f7e60ef8
Name               : ddom-veeam-rb4
Reference          :
Description        : Backup server
IsUnavailable      : False
Type               : Local
ApiVersion         : Unknown
PhysHostId         : d7c4ff97-b99b-4d1f-884d-283b7b6b9ee3
ProxyServicesCreds :

Info               : ddom-log-box (Microsoft Windows server)
ParentId           : 00000000-0000-0000-0000-000000000000
Id                 : 987d12db-9666-49dc-bce2-5356c8c92ca6
Uid                : 987d12db966649dcbce25356c8c92ca6
Name               : ddom-log-box
Reference          :
Description        : Created by DDOM-VEEAM-RB4\Administrator at 12/27/2022 6:55 PM.
IsUnavailable      : False
Type               : Windows
ApiVersion         : Unknown
PhysHostId         : 26f48393-7974-472f-bdde-a010a4b2f33a
ProxyServicesCreds : Veeam.Backup.Common.CCredentials
I suppose this is what you're wanting :)
David Domask | Product Management: Principal Analyst
rdixon01
Influencer
Posts: 24
Liked: 2 times
Joined: Oct 09, 2013 2:30 pm
Full Name: Rick
Contact:

Re: Powershell to show all Gateway (Proxy) Servers configured for a Repository

Post by rdixon01 »

That worked great for Identifying the Gateway server (proxies) that are associated to the repositories.
How would we find that same info for finding the Backup Proxies that are configured for a backup job.
Sorry, My PowerShell skills are very limited.
Thank you
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Powershell to show all Gateway (Proxy) Servers configured for a Repository

Post by david.domask »

Hi @rdixon01, I'm really glad it helped, and no worries on the follow up.

I am _99.9%_ sure there is a way that is supported for it, but while I look there is this other unsupported method:

Code: Select all

PS C:\Users\Administrator> $job.GetSourceViProxies()

Name                      Type         Host            IsDisabled      Description
----                      ----         ----            ----------      -----------
some-server            Vi          some-server  False           Created by some-dude
VMware Backup Proxy       Vi           ddom-veeam-r... False           Created by Veeam Backup & Replication
This should be stable to use. I will look for a supported way though, and maybe someone else can chime in I just don't remember off the top of my head.
David Domask | Product Management: Principal Analyst
rdixon01
Influencer
Posts: 24
Liked: 2 times
Joined: Oct 09, 2013 2:30 pm
Full Name: Rick
Contact:

Re: Powershell to show all Gateway (Proxy) Servers configured for a Repository

Post by rdixon01 »

Thank You. This worked for me
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests