Set Guest Interaction Proxy server

PowerShell script exchange

Set Guest Interaction Proxy server

Veeam Logoby Steen » Thu May 12, 2016 9:08 pm 1 person likes this post

Its possible to enable/disabled Guest interaction Proxy (VssOptions.GuestProxyAutoDetect)

Is it possible to set specific Guest interaction proxy servers?
Regards Steen
Steen
Enthusiast
 
Posts: 45
Liked: 3 times
Joined: Fri Mar 13, 2015 1:20 pm
Full Name: Steen

Re: Set Guest Interaction Proxy server

Veeam Logoby PTide » Fri May 13, 2016 3:11 pm 1 person likes this post

Hi,

No, it's not possible to set a specific guest interaction proxy via Powershell. Could you please explain your use case?

Thank you.
PTide
Veeam Software
 
Posts: 3889
Liked: 328 times
Joined: Tue May 19, 2015 1:46 pm

Re: Set Guest Interaction Proxy server

Veeam Logoby Steen » Mon May 16, 2016 7:39 am 2 people like this post

I want to change many jobs
Regards Steen
Steen
Enthusiast
 
Posts: 45
Liked: 3 times
Joined: Fri Mar 13, 2015 1:20 pm
Full Name: Steen

[MERGED] : Put the Guest Interaction Proxy using Powershell

Veeam Logoby kbov » Tue May 24, 2016 6:03 pm

Hi,

I'm creating my jobs using Powershell. I would like put the Guest Interaction Proxy in manual mode, and specify the proxy server.

I'm able to put the manual mode with :

$VSSOptions = (Get-VBRJob -name "job").VSSOptions
$VSSOptions.GuestProxyAutoDetect = $false
Set-VBRJobVSSOptions -Job $Job -Options $VSSOptions

But I don't know how to put the correct Proxy server. If I execute this, the proxy textbox is empty :/

Any idea? :oops:

Thanks ^^
kbov
Novice
 
Posts: 7
Liked: 1 time
Joined: Tue Apr 19, 2016 7:54 am

Re: Set Guest Interaction Proxy server

Veeam Logoby v.Eremin » Wed May 25, 2016 8:48 am

You're not missing anything. Currently, this functionality is not available in PowerShell. Thanks.
v.Eremin
Veeam Software
 
Posts: 14704
Liked: 1100 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Set Guest Interaction Proxy server

Veeam Logoby kbov » Wed May 25, 2016 10:04 am 1 person likes this post

Thanks for the quick reply v.Eremin
kbov
Novice
 
Posts: 7
Liked: 1 time
Joined: Tue Apr 19, 2016 7:54 am

Re: Set Guest Interaction Proxy server

Veeam Logoby stehardy » Thu Sep 01, 2016 8:57 am

Are there plans to add this functionality? We've got issues where Auto Select seems to be using the same proxy all of the time (our Backup Repository), rather than spreading the load between our 6 proxy servers (3 at each site). We'd like to be able to set these options quickly (we've got 100s of replication jobs)...
stehardy
Lurker
 
Posts: 1
Liked: never
Joined: Thu Sep 01, 2016 8:54 am
Location: UK
Full Name: Steven Hardy

Re: Set Guest Interaction Proxy server

Veeam Logoby KFM » Sun Dec 11, 2016 11:26 am

I'm guessing this functionality is still not in 9.5? Couldn't see anything obvious from the list of cmdlets from get-vbrcommands.
KFM
Service Provider
 
Posts: 10
Liked: 1 time
Joined: Tue May 14, 2013 1:46 am
Full Name: KFM

Re: Set Guest Interaction Proxy server

Veeam Logoby v.Eremin » Mon Dec 12, 2016 12:31 pm

Correct, no new cmdlets have been added for this matter. Also, I've checked briefly for a potential workaround and unfortunately found nothing.
v.Eremin
Veeam Software
 
Posts: 14704
Liked: 1100 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Set Guest Interaction Proxy server

Veeam Logoby marcseitz » Tue Jan 24, 2017 1:32 pm

Hey Guys,

is there an update with 9.5 U1?
Really missing this feature :-(

In general, I hope to see all "GUI-Actions" as "Powershell-CMDlets" to make it easier to automate things in large environments.

Thanks,
Marc
marcseitz
Influencer
 
Posts: 17
Liked: 5 times
Joined: Wed Apr 04, 2012 11:17 am
Full Name: Marc Seitz

Re: Set Guest Interaction Proxy server

Veeam Logoby v.Eremin » Wed Jan 25, 2017 10:42 am

is there an update with 9.5 U1?

Nope, nothing has been changed in this regard.

In general, I hope to see all "GUI-Actions" as "Powershell-CMDlets" to make it easier to automate things in large environments.

We also do try to stick to this paradigm. However, I have to admit there is still a certain difference in what GUI and PoweShell might propose, which we're trying to cover.

Thanks.
v.Eremin
Veeam Software
 
Posts: 14704
Liked: 1100 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Set Guest Interaction Proxy server

Veeam Logoby olafurh » Tue Mar 28, 2017 9:52 pm

+1 for each job im clicking throug to change this. :cry:
olafurh
Veeam Vanguard
 
Posts: 8
Liked: 11 times
Joined: Wed Oct 29, 2014 9:41 am
Location: Iceland
Full Name: Olafur Helgi Haraldsson

Re: Set Guest Interaction Proxy server

Veeam Logoby poulpreben » Tue Nov 21, 2017 10:13 am

+1 for adding the ability to select which guest proxy to utilize via the VSSOptions object.
poulpreben
Expert
 
Posts: 939
Liked: 399 times
Joined: Mon Jul 23, 2012 8:16 am
Full Name: Preben Berg

Re: Set Guest Interaction Proxy server

Veeam Logoby Marcin_ITM » Fri Feb 16, 2018 1:24 pm

+1 We need this functionality also. It was not added in 9.5 U3. Unfortunately Veeam Support does not know if, or when this functionality will be available in PoweShell.
Marcin_ITM
Lurker
 
Posts: 1
Liked: never
Joined: Fri Feb 16, 2018 1:09 pm
Full Name: Marcin

Re: Set Guest Interaction Proxy server

Veeam Logoby tsightler » Mon Feb 19, 2018 9:28 pm

For a temporary, unsupported workaround, you can use the following code:

Code: Select all
$Job = Get-VBRJob -Name "<Job_Name>"
$Gip = Get-VBRServer -Name "<Name_of_Guest_Interaction_Server>"

if (([Veeam.Backup.Core.CJobProxy]::GetJobProxies($Job.Id) | ?{$_.Type -eq "EGuest"})) {
    write-host $gip.Name "is already a guest interaction proxy for this job!"
} else {
    [Veeam.Backup.Core.CJobProxy]::Create($Job.Id, $Gip.Id, "EGuest")
}


Please not that this code will let you do crazy things, like adding an ESXi host as a guest proxy, which won't work, so make sure you feed it the proper server types. You can of course add multiple guest interaction proxies, and you will need to set VssOptions.GuestProxyAutoDetect to $false using normal methods.

To delete a guest interaction proxy something like this should do it:

Code: Select all
$Job = Get-VBRJob -Name "<Job_Name>"
$Gip = Get-VBRServer -Name "<Name_of_Guest_Interaction_Server>"
$JobGip = [Veeam.Backup.Core.CJobProxy]::GetJobProxies($Job.id) | ?{$_.Type -eq "EGuest" -and $_.ProxyId -eq $Gip.Id}
if ($JobGip) {
    [Veeam.Backup.Core.CJobProxy]::Delete($JobGip.Id)
} else {
    write-host $Gip.Name "is not a guest interaction proxy for this job!"
}


As with all unsupported workarounds, please test in a development environment and don't try to open a support case. These workarounds are generally safe if you understand what you are changing and feed it correct data, however, if you feed it incorrect data, you can get in situations with invalid information in the database, which may cause issues with the GUI so make sure you understand how the code works before testing this in any production environment.
tsightler
Veeam Software
 
Posts: 5064
Liked: 1991 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Next

Return to PowerShell



Who is online

Users browsing this forum: No registered users and 9 guests