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
chris.childerhose
Enthusiast
 
Posts: 77
Liked: 8 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: 1630
Liked: 362 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: 13709
Liked: 1026 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
chris.childerhose
Enthusiast
 
Posts: 77
Liked: 8 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
chris.childerhose
Enthusiast
 
Posts: 77
Liked: 8 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: 1630
Liked: 362 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
chris.childerhose
Enthusiast
 
Posts: 77
Liked: 8 times
Joined: Wed Aug 13, 2014 6:03 pm
Location: Toronto, ON
Full Name: Chris Childerhose


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 1 guest