Storage Integration Settings

PowerShell script exchange

Storage Integration Settings

Veeam Logoby chris.childerhose » Fri Apr 07, 2017 5:13 pm

Does anyone have the commands for setting the Storage Integration tab settings within a job? We just updated to ENT+ licensing and I want to set all jobs to integrate with Nimble rather than one at a time. :)
Chris Childerhose, VCAP-DCA, VMCE9, VCP, MCITP
Veeam Vanguard
chris.childerhose
Veeam Vanguard
 
Posts: 87
Liked: 11 times
Joined: Wed Aug 13, 2014 6:03 pm
Location: Toronto, ON
Full Name: Chris Childerhose

Re: Storage Integration Settings

Veeam Logoby vmniels » Fri Apr 07, 2017 6:43 pm

By default is is enabled for each new job (even if u don't have Ent+).

U can check for the job settings via:
Code: Select all
$job = Get-VBRJob -Name "JOB NAME"
$option = $job.GetOptions()
$option.SanIntegrationOptions


You can enable it via:
Code: Select all
$job = Get-VBRJob -Name "JOB NAME"
Disable-VBRJob -Job $job
$options = $job.GetOptions()
$options.SanIntegrationOptions.UseSanSnapshots = "True"
$job.SetOptions($options)
Enable-VBRJob -Job $job
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be
vmniels
Veeam Software
 
Posts: 1920
Liked: 414 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: Storage Integration Settings

Veeam Logoby v.Eremin » Mon Apr 10, 2017 10:56 am

In order to apply the suggested changes to all jobs at once, use something like this:

Code: Select all
Asnp VeeamPSSnapin
foreach ($Job in (Get-VBRJob | where {$_.JobType -eq "Backup"}))
{
Disable-VBRJob -Job $job
$options = $job.GetOptions()
$options.SanIntegrationOptions.UseSanSnapshots = "True"
$job.SetOptions($options)
Enable-VBRJob -Job $job
}

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

Re: Storage Integration Settings

Veeam Logoby chris.childerhose » Wed Apr 12, 2017 7:07 pm

Thanks for this guys. So this enables the first check box but what if you want all of them enabled? What are the names for the other 3 options in that dialog?
Chris Childerhose, VCAP-DCA, VMCE9, VCP, MCITP
Veeam Vanguard
chris.childerhose
Veeam Vanguard
 
Posts: 87
Liked: 11 times
Joined: Wed Aug 13, 2014 6:03 pm
Location: Toronto, ON
Full Name: Chris Childerhose

Re: Storage Integration Settings

Veeam Logoby chris.childerhose » Wed Apr 12, 2017 7:18 pm

I found the names so just need the string for all of them together to set TRUE.

Names -

UseSanSnapshots
MultipleStorageSnapshotEnabled
FailoverFromSan
Failover2StorageSnapshotBackup
Chris Childerhose, VCAP-DCA, VMCE9, VCP, MCITP
Veeam Vanguard
chris.childerhose
Veeam Vanguard
 
Posts: 87
Liked: 11 times
Joined: Wed Aug 13, 2014 6:03 pm
Location: Toronto, ON
Full Name: Chris Childerhose

Re: Storage Integration Settings

Veeam Logoby vmniels » Wed Apr 12, 2017 7:23 pm 1 person likes this post

That would be:
Code: Select all
$options.SanIntegrationOptions.UseSanSnapshots = "True"
$options.SanIntegrationOptions.MultipleStorageSnapshotEnabled= "True"
$options.SanIntegrationOptions.FailoverFromSan= "True"
$options.SanIntegrationOptions.Failover2StorageSnapshotBackup= "True"
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be
vmniels
Veeam Software
 
Posts: 1920
Liked: 414 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: Storage Integration Settings

Veeam Logoby chris.childerhose » Wed Apr 12, 2017 7:26 pm

Thanks I figured it out probably while you were replying. Code is as follows for those that need it -

Code: Select all
foreach ($Job in (Get-VBRJob | where {$_.JobType -eq "Backup"}))
{
Disable-VBRJob -Job $job
$options = $job.GetOptions()
$options.SanIntegrationOptions.UseSanSnapshots = "True"
$options.SanIntegrationOptions.MultipleStorageSnapshotEnabled = "True"
$options.SanIntegrationOptions.FailoverFromSan = "True"
$options.SanIntegrationOptions.Failover2StorageSnapshotBackup = "True"
$job.SetOptions($options)
Enable-VBRJob -Job $job
}
Chris Childerhose, VCAP-DCA, VMCE9, VCP, MCITP
Veeam Vanguard
chris.childerhose
Veeam Vanguard
 
Posts: 87
Liked: 11 times
Joined: Wed Aug 13, 2014 6:03 pm
Location: Toronto, ON
Full Name: Chris Childerhose

Re: Storage Integration Settings

Veeam Logoby RubinCompServ » Wed Feb 14, 2018 10:03 pm

I just want to update this thread to say that, instead of using "True", you should be using $TRUE. In this case it makes no difference, but - due to an interpretation oddity in PowerShell - you could actually put ANYTHING in those quotation marks (including FALSE), and it will still treat them as true. If you wanted to use the script to turn OFF the options (as I did), you would need $FALSE, rather than "False"
RubinCompServ
Service Provider
 
Posts: 48
Liked: 5 times
Joined: Mon Mar 16, 2015 4:00 pm
Full Name: David Rubin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests