-
- Service Provider
- Posts: 51
- Liked: 3 times
- Joined: Mar 13, 2015 1:20 pm
- Full Name: Steen
- Contact:
Set Guest Interaction Proxy server
Its possible to enable/disabled Guest interaction Proxy (VssOptions.GuestProxyAutoDetect)
Is it possible to set specific Guest interaction proxy servers?
Is it possible to set specific Guest interaction proxy servers?
Regards Steen
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Set Guest Interaction Proxy server
Hi,
No, it's not possible to set a specific guest interaction proxy via Powershell. Could you please explain your use case?
Thank you.
No, it's not possible to set a specific guest interaction proxy via Powershell. Could you please explain your use case?
Thank you.
-
- Service Provider
- Posts: 51
- Liked: 3 times
- Joined: Mar 13, 2015 1:20 pm
- Full Name: Steen
- Contact:
-
- Novice
- Posts: 7
- Liked: 1 time
- Joined: Apr 19, 2016 7:54 am
- Contact:
[MERGED] : Put the Guest Interaction Proxy using Powershell
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?
Thanks ^^
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?
Thanks ^^
-
- Product Manager
- Posts: 20397
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Set Guest Interaction Proxy server
You're not missing anything. Currently, this functionality is not available in PowerShell. Thanks.
-
- Novice
- Posts: 7
- Liked: 1 time
- Joined: Apr 19, 2016 7:54 am
- Contact:
Re: Set Guest Interaction Proxy server
Thanks for the quick reply v.Eremin
-
- Lurker
- Posts: 1
- Liked: never
- Joined: Sep 01, 2016 8:54 am
- Full Name: Steven Hardy
- Location: UK
- Contact:
Re: Set Guest Interaction Proxy server
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)...
-
- Service Provider
- Posts: 13
- Liked: 2 times
- Joined: May 14, 2013 1:46 am
- Full Name: KFM
- Contact:
Re: Set Guest Interaction Proxy server
I'm guessing this functionality is still not in 9.5? Couldn't see anything obvious from the list of cmdlets from get-vbrcommands.
-
- Product Manager
- Posts: 20397
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Set Guest Interaction Proxy server
Correct, no new cmdlets have been added for this matter. Also, I've checked briefly for a potential workaround and unfortunately found nothing.
-
- Influencer
- Posts: 18
- Liked: 5 times
- Joined: Apr 04, 2012 11:17 am
- Full Name: Marc Seitz
- Contact:
Re: Set Guest Interaction Proxy server
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
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
-
- Product Manager
- Posts: 20397
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Set Guest Interaction Proxy server
Nope, nothing has been changed in this regard.is there an update with 9.5 U1?
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.In general, I hope to see all "GUI-Actions" as "Powershell-CMDlets" to make it easier to automate things in large environments.
Thanks.
-
- Service Provider
- Posts: 25
- Liked: 16 times
- Joined: Oct 29, 2014 9:41 am
- Full Name: Olafur Helgi Haraldsson
- Location: Iceland
- Contact:
Re: Set Guest Interaction Proxy server
+1 for each job im clicking throug to change this.
-
- Certified Trainer
- Posts: 1025
- Liked: 448 times
- Joined: Jul 23, 2012 8:16 am
- Full Name: Preben Berg
- Contact:
Re: Set Guest Interaction Proxy server
+1 for adding the ability to select which guest proxy to utilize via the VSSOptions object.
-
- Lurker
- Posts: 1
- Liked: never
- Joined: Feb 16, 2018 1:09 pm
- Full Name: Marcin
- Contact:
Re: Set Guest Interaction Proxy server
+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.
-
- VP, Product Management
- Posts: 6035
- Liked: 2860 times
- Joined: Jun 05, 2009 12:57 pm
- Full Name: Tom Sightler
- Contact:
Re: Set Guest Interaction Proxy server
For a temporary, unsupported workaround, you can use the following code:
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:
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.
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")
}
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!"
}
-
- Novice
- Posts: 3
- Liked: never
- Joined: Jun 04, 2018 11:55 am
- Full Name: Markus Wiesecke
- Contact:
Re: Set Guest Interaction Proxy server
We would need this feature "officially" too as we are rolling out a distributed veeam environment with >100 sites and >>400 jobs which are all similar and 200 use a guest interaction proxy on their side.
-
- Service Provider
- Posts: 27
- Liked: 9 times
- Joined: Aug 18, 2016 7:59 pm
- Full Name: Will S
- Contact:
Re: Set Guest Interaction Proxy server
I made this more functional script, this is only tested on 9.5.0.1536. I noticed that when comparing the $GipInJob.Id Property it does not match the (Get-VBRServer).Id Property GUIDs, rather $GipInJob.ProxyId matches (Get-VBRServer).Id objects so this differs from the example provided previously. Your own testing is still recommended.
Code: Select all
$VerbosePreference = "Continue"
$Jobs = Get-VBRJob -Name "<Job name>","<Another Job Name>","<Another Job Name>"
$Gip = Get-VBRServer -Name "Server you want to be GiP"
$AllServers = Get-VBRServer
foreach ($job in $jobs) {
#If there is no GiP assigned to this Job, then assign the one we want
If (!(([Veeam.Backup.Core.CJobProxy]::GetJobProxies($Job.id) | ?{$_.Type -eq "EGuest"}))) {
Write-Verbose "Job Had no Proxy assigned - Adding GiP $($Gip.Name) $($Gip.Id) to Job $($job.Name)"
[Veeam.Backup.Core.CJobProxy]::Create($Job.Id, $Gip.Id, "EGuest")
} else {
#If there are some GiP's assigned to this Job, first add the one you want, then delete all others
Foreach ($GipInJob in ([Veeam.Backup.Core.CJobProxy]::GetJobProxies($Job.id) | ?{$_.Type -eq "EGuest"})) {
If ($GipInJob.ProxyId -eq $GiP.Id) {
Write-Verbose "$($gip.Name) is already a guest interaction proxy for this job!"
} else {
Write-Verbose "Adding GiP $($Gip.Name) $($Gip.Id) to Job $($job.Name)"
[Veeam.Backup.Core.CJobProxy]::Create($Job.Id, $Gip.Id, "EGuest")
} #else
If ($GipInJob.ProxyId -ne $GiP.Id) {
Write-Verbose "Delete $(($AllServers | ? {$_.Id -eq $GipInJob.ProxyId}).Name) $($GipInJob.ProxyId) from $($job.Name)"
[Veeam.Backup.Core.CJobProxy]::Delete($GipInJob.Id)
} #If ($GipInJob.ProxyId -ne $GiP.Id)
} #Foreach ($Proxy in...
} #else
#Check that the job has a Proxy assigned then set autodetect proxy to false
If (!!(([Veeam.Backup.Core.CJobProxy]::GetJobProxies($Job.id) | ?{$_.Type -eq "EGuest"}))) {
Write-Verbose "$($job.Name) has a poxy assigned"
If ($job.GetVssOptions().GuestProxyAutoDetect -eq $True) {
Write-Verbose "$($job.Name) is set to Autodetect so we will disable AutoDetect Proxy"
$opt = $NULL
$opt = $job.GetVssOptions()
$opt.GuestProxyAutoDetect = $FALSE
$job.SetVssOptions($opt)
} else {
Write-Verbose "$($job.Name) AutoDetect Proxy is already $False"
} #else
} #if (!!(([Veeam.Backup.Core.CJobProxy]::GetJobProxies($Job.id) | ?{$_.Type -eq "EGuest"})))
} #foreach ($job in $jobs)
-
- Novice
- Posts: 3
- Liked: never
- Joined: Jun 04, 2018 11:55 am
- Full Name: Markus Wiesecke
- Contact:
Re: Set Guest Interaction Proxy server
We are rolling out about 120 Locations with a veeam backup server, therefore I created a rollout-script in powershell for our needs and settings. Therefore, I was grateful to find this:
..
with $job is the job I am refering too. But the job remains on automatic selection, in the GUI I can change it to "Use the selected gutest interaction servers only" and if I select this, the machine I set via the first line of my code snip and I got it from the post I quote is preselected. So, how to I set the Guest InteractionProxy via Powershell correctly? Or is this a bug in the Powershell API?
As it puts the name of the guest interaction proxz into our VSS jobs, but usingtsightler wrote: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") }
..
Code: Select all
$gip=get-vbrserver -name $locserver
[Veeam.Backup.Core.CJobProxy]::Create($job.Id, $gip.Id, "EGuest")
$vso=get-vbrjobvssoptions -job $job
$vso.guestproxyautodetect=$false
$vso.guestfsindexingtype="EveryFolders"
set-vbrjobvssoptions -job $job -options $vso
-
- Product Manager
- Posts: 20397
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Set Guest Interaction Proxy server
Have you tried this script already?
Thanks.
Code: Select all
$VSSOptions = (Get-VBRJob -name "Name of your Job").VSSOptions
$VSSOptions.GuestProxyAutoDetect = $false
Set-VBRJobVSSOptions -Job $Job -Options $VSSOptions
-
- Expert
- Posts: 100
- Liked: 5 times
- Joined: Jan 14, 2014 10:41 am
- Full Name: Timo Brandt
- Contact:
Re: Set Guest Interaction Proxy server
Hi Vladimir,
unfortunately, I have the same issue as Markus.
Even if setting GuestProxyAutoDetect to false, this setting has no effect.
As soon as the VSSOptions are requested again with Get-VBRJobVSSOptions, I can see that Auto detect is still enabled. This can be confirmed in the GUI.
I know that setting the Guest Interaction Proxies is not supported that way, but changing the VSS options should be supported.
Do you have any idea why it does not work?
Shall I open a support case for that?
I'm running on 9.5.4.2753
Thanks a lot.
unfortunately, I have the same issue as Markus.
Even if setting GuestProxyAutoDetect to false, this setting has no effect.
As soon as the VSSOptions are requested again with Get-VBRJobVSSOptions, I can see that Auto detect is still enabled. This can be confirmed in the GUI.
I know that setting the Guest Interaction Proxies is not supported that way, but changing the VSS options should be supported.
Do you have any idea why it does not work?
Shall I open a support case for that?
I'm running on 9.5.4.2753
Thanks a lot.
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: Set Guest Interaction Proxy server
If you already have the guest interaction proxy set, and it is just disabled due to GuestProxyAutoDetect being set to false, then you can update the job with this:
Here's a snippet of the code that I use to create new "shell" or "template" jobs with VSS enabled.
It's not everything set for the job, but the bits relevant to enabling VSS and both source & guest interaction proxy.
Code: Select all
$VSSJob = Get-VBRJob -Name 'JobName'
$JobVSS = $VSSJob.GetVSSOptions()
$JobVSS.GuestProxyAutoDetect = $False
$VSSJob.SetVssOptions($JobVSS)
It's not everything set for the job, but the bits relevant to enabling VSS and both source & guest interaction proxy.
Code: Select all
#Variables
$VeeamProxyName = 'ausveeampxy01.lab.fullstackgeek.net'
#Get job & proxy objects objects
$VSSJob = Get-VBRJob -Name 'JobName'
$SourceProxy = Get-VBRViProxy -Name $VeeamProxyName
$GuestProxy = Get-VBRServer -Name $VeeamProxyName
#Enable VSS integration for new shell backup job
Enable-VBRJobVSSIntegration -Job $VSSJob
#Enable VSS integration and create VSS options object, set guest interaction proxy to new job
$JobVSS = $VSSJob.GetVSSOptions()
$JobVSS.VssSnapshotOptions.Enabled = $True
$JobVSS.VssSnapshotOptions.IgnoreErrors = $False
$JobVSS.GuestProxyAutoDetect = $False
[Veeam.Backup.Core.CJobProxy]::Create($VSSJob.Id, $GuestProxy.Id, "EGuest")
#Set job VSS options
$VSSJob.SetVssOptions($JobVSS)
#Set job proxy for backup
Set-VBRJobProxy -Job $VSSJob -Proxy $SourceProxy
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Expert
- Posts: 100
- Liked: 5 times
- Joined: Jan 14, 2014 10:41 am
- Full Name: Timo Brandt
- Contact:
Re: Set Guest Interaction Proxy server
Hi Joe,
I appreciate the code you shared.
But still, somehow setting GuestProxyAutoDetect to false does not have any effect at all.
I am able to create new jobs and modify all settings including VSS Options using PowerShell, it is just that I am not able to disable automatic proxy detection (which in most cases does not work for me anyway).
I appreciate the code you shared.
But still, somehow setting GuestProxyAutoDetect to false does not have any effect at all.
I am able to create new jobs and modify all settings including VSS Options using PowerShell, it is just that I am not able to disable automatic proxy detection (which in most cases does not work for me anyway).
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: Set Guest Interaction Proxy server
Do you have a proxy already selected?
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Novice
- Posts: 4
- Liked: never
- Joined: May 15, 2019 7:04 pm
- Full Name: Compmor
- Location: Portugal
- Contact:
Set Guest Interaction Proxy server
This will help.
get-wmiobject -computername server1 -class win32_processor Select Name
I recommend upgrading PowerShell.
get-wmiobject -computername server1 -class win32_processor Select Name
I recommend upgrading PowerShell.
-
- Novice
- Posts: 3
- Liked: never
- Joined: Jun 04, 2018 11:55 am
- Full Name: Markus Wiesecke
- Contact:
Re: Set Guest Interaction Proxy server
Now we god to the phase where we are (mass-) replacing Proxies due to Win2008 -> Win2019 migration. So there is almost all scripted, of course I wanted also to script the change of guest interaction proxy. The normal proxy works fine, but I can add the new one with the code above (not quoted again), but I cannot delete the old like quoted, it gives me atsightler wrote: ↑Feb 19, 2018 9:28 pm
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!" }
Code: Select all
Exception calling "GetJobProxies" with "1" argument(s): "Object reference not set to an instance of an object."
Furthermore, we have a lot of BackupCopyJob using the WAN Accelerator feature. But I could not find a way to replace these, there are only "SET-" command lets for Backup Copy Jobs?
-
- Veeam Software
- Posts: 2010
- Liked: 669 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Set Guest Interaction Proxy server
Hi Markus,
However, you can try the workaround below to set them using methods:
Best regards,
Oleg
Try running these lines solely and check the output:I tried without the .id or .id.guid, both without success.
Code: Select all
$Job = Get-VBRJob -Name "<Job_Name>"
$JobGip = [Veeam.Backup.Core.CJobProxy]::GetJobProxies($Job.id) | ?{$_.Type -eq "EGuest"}
Currently, there is no dedicated cmdlet/attribute to set Wan Accelerators for Backup Copy Jobs.Furthermore, we have a lot of BackupCopyJob using the WAN Accelerator feature. But I could not find a way to replace these, there are only "SET-" command lets for Backup Copy Jobs?
However, you can try the workaround below to set them using methods:
Code: Select all
$wanServers = Get-VBRWanAccelerator
$backupCopy = Get-VBRJob | where {$_.JobType -eq 'BackupSync'}
foreach ($job in $backupCopy) {
$wanAccelerators = [Veeam.Backup.Core.CJobWanAccelerator]::GetJobWanAccelerators($backupCopy.id)
foreach ($wan in $wanAccelerators) {
[Veeam.Backup.Core.CJobWanAccelerator]::Delete($wan.id)
}
[Veeam.Backup.Core.CJobWanAccelerator]::Create($backupCopy.id, $wanServers[0].id, "ESource")
[Veeam.Backup.Core.CJobWanAccelerator]::Create($backupCopy.id, $wanServers[1].id, "ETarget")
}
Oleg
-
- Service Provider
- Posts: 171
- Liked: 26 times
- Joined: Feb 13, 2017 2:56 pm
- Full Name: Henrik Grevelund
- Contact:
Re: Set Guest Interaction Proxy server
Hi,
It seems like this still isn't supported yet ?
Will be supported in version 11 ?
I have 59 jobs to change, both Guest interaction proxy and Log shipping server.
It seems like this still isn't supported yet ?
Will be supported in version 11 ?
I have 59 jobs to change, both Guest interaction proxy and Log shipping server.
Have nice day,
Henrik
Henrik
-
- Veeam Software
- Posts: 2010
- Liked: 669 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Set Guest Interaction Proxy server
Hi Henrik,
The code above works fine in v10, though it's not supported officially. If you are talking about documented cmdlets, then no, it's not planned for v11.
Nonetheless, if you have any questions on unsupported scripts, feel free to ask on our forum.
Thanks,
Oleg
The code above works fine in v10, though it's not supported officially. If you are talking about documented cmdlets, then no, it's not planned for v11.
Nonetheless, if you have any questions on unsupported scripts, feel free to ask on our forum.
Thanks,
Oleg
-
- Enthusiast
- Posts: 63
- Liked: 13 times
- Joined: Jul 21, 2016 5:03 pm
- Full Name: Aaron B
- Contact:
Re: Set Guest Interaction Proxy server
So this pretty much sucks for me. So here is my dilemma..... I am not sure if others have run into this or not.
I am looking at setting up multiple file server backup jobs but I am going to have to go thru hell and back to do so because of this feature missing. My issue is when you add a new file server you have to add each file server as a managed server. So now if I have my guest interaction server set to automatic for my 300 jobs (which they are) they are now picking a random file server to use as a guest interaction proxy. A big oh hell no for me. So I have to go thru each job and make this change.
Either remove File Servers as managed servers or remove them from the options of guest interaction proxies or add this command which is clearly a high request from power users!!
I am looking at setting up multiple file server backup jobs but I am going to have to go thru hell and back to do so because of this feature missing. My issue is when you add a new file server you have to add each file server as a managed server. So now if I have my guest interaction server set to automatic for my 300 jobs (which they are) they are now picking a random file server to use as a guest interaction proxy. A big oh hell no for me. So I have to go thru each job and make this change.
Either remove File Servers as managed servers or remove them from the options of guest interaction proxies or add this command which is clearly a high request from power users!!
-
- Veeam Software
- Posts: 2010
- Liked: 669 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Set Guest Interaction Proxy server
Hi Aaron,
I noted your request for a cmdlet to set guest interaction proxy.
Won't make it to v11 as this is a little bit late for that, but certainly worth discussing in scope of vNext.
Thanks,
Oleg
I noted your request for a cmdlet to set guest interaction proxy.
Won't make it to v11 as this is a little bit late for that, but certainly worth discussing in scope of vNext.
Thanks,
Oleg
Who is online
Users browsing this forum: Baidu [Spider], jdb and 19 guests