-
- Veeam Vanguard
- Posts: 635
- Liked: 154 times
- Joined: Aug 13, 2014 6:03 pm
- Full Name: Chris Childerhose
- Location: Toronto, ON
- Contact:
Storage Integration Settings
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
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
Chris Childerhose
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
-
- Product Manager
- Posts: 5796
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Storage Integration Settings
By default is is enabled for each new job (even if u don't have Ent+).
U can check for the job settings via:
You can enable it via:
U can check for the job settings via:
Code: Select all
$job = Get-VBRJob -Name "JOB NAME"
$option = $job.GetOptions()
$option.SanIntegrationOptions
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
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Storage Integration Settings
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
}
-
- Veeam Vanguard
- Posts: 635
- Liked: 154 times
- Joined: Aug 13, 2014 6:03 pm
- Full Name: Chris Childerhose
- Location: Toronto, ON
- Contact:
Re: Storage Integration Settings
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
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
Chris Childerhose
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
-
- Veeam Vanguard
- Posts: 635
- Liked: 154 times
- Joined: Aug 13, 2014 6:03 pm
- Full Name: Chris Childerhose
- Location: Toronto, ON
- Contact:
Re: Storage Integration Settings
I found the names so just need the string for all of them together to set TRUE.
Names -
UseSanSnapshots
MultipleStorageSnapshotEnabled
FailoverFromSan
Failover2StorageSnapshotBackup
Names -
UseSanSnapshots
MultipleStorageSnapshotEnabled
FailoverFromSan
Failover2StorageSnapshotBackup
-----------------------
Chris Childerhose
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
Chris Childerhose
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
-
- Product Manager
- Posts: 5796
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Storage Integration Settings
That would be:
Code: Select all
$options.SanIntegrationOptions.UseSanSnapshots = "True"
$options.SanIntegrationOptions.MultipleStorageSnapshotEnabled= "True"
$options.SanIntegrationOptions.FailoverFromSan= "True"
$options.SanIntegrationOptions.Failover2StorageSnapshotBackup= "True"
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Veeam Vanguard
- Posts: 635
- Liked: 154 times
- Joined: Aug 13, 2014 6:03 pm
- Full Name: Chris Childerhose
- Location: Toronto, ON
- Contact:
Re: Storage Integration Settings
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
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
Chris Childerhose
Veeam Vanguard / Veeam Legend / Veeam Ceritified Architect / VMCE
vExpert / VCAP-DCA / VCP8 / MCITP
Personal blog: https://just-virtualization.tech
Twitter: @cchilderhose
-
- Service Provider
- Posts: 326
- Liked: 78 times
- Joined: Mar 16, 2015 4:00 pm
- Full Name: David Rubin
- Contact:
Re: Storage Integration Settings
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"
-
- Service Provider
- Posts: 40
- Liked: 5 times
- Joined: Apr 24, 2015 2:51 pm
- Full Name: Dries Vergote
- Contact:
Re: Storage Integration Settings
Hi
I'm busy with a bulk insert for 50 datastore that are using Storagesnapshot as primary target.
I'm using snapvault as secundary target. but don't find the powershell command to enable secundary target.
The code below 2 line doesn't work as the enable secondary target isn't enabled.
I'm busy with a bulk insert for 50 datastore that are using Storagesnapshot as primary target.
I'm using snapvault as secundary target. but don't find the powershell command to enable secundary target.
The code below 2 line doesn't work as the enable secondary target isn't enabled.
Code: Select all
$Job = get-vbrjob -name $JobName
$joboptions = Get-VBRJobOptions $job
$JobOptions.SanIntegrationOptions.SanSnapshotSourceEnabled = $true
$JobOptions.SanIntegrationOptions.SanSnapshotSourceRetention = 7
$joboptions.SanSnapshotBackupTransferEnabled= $True #doesn't work
$joboptions.SanSnapshotBackupTransferRetention = 35 #doesn't work
$Job | Set-VBRJobOptions -Options $JobOptions
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Storage Integration Settings
The following script did the trick for me:
In your example you seem to have missed sanintergrationoptions in the last few lines.
Thanks!
Code: Select all
Asnp VeeamPSSnapin
$Job = Get-VBRJob -name "Name of your backup job"
$Options.sanintegrationoptions.sansnapshotbackuptransferenabled = $True
$Options.sanintegrationoptions.sansnapshotbackuptransferretention = 35
Set-VBRJobOptions -Job $Job -Options $Options
Thanks!
-
- Service Provider
- Posts: 40
- Liked: 5 times
- Joined: Apr 24, 2015 2:51 pm
- Full Name: Dries Vergote
- Contact:
Re: Storage Integration Settings
Hi
Thanks for correction, In my test is used the sanintegrationoptions but in my actual script I forgot to add it indeed.
Works now.
Regards
Thanks for correction, In my test is used the sanintegrationoptions but in my actual script I forgot to add it indeed.
Works now.
Regards
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Storage Integration Settings
You're welcome. Glad to hear that you're up and running now.
Should other help be needed, let us know.
Thanks!
Should other help be needed, let us know.
Thanks!
-
- Service Provider
- Posts: 40
- Liked: 5 times
- Joined: Apr 24, 2015 2:51 pm
- Full Name: Dries Vergote
- Contact:
Re: Storage Integration Settings
Hi
Since update 4 is see the following occurence. I'm adjusting the same way as above my retention point for the storage snapshot.
The setting is adjust immediately if you check the parameters with powershell. But if you go to the GUI the default of 14 days is still there. If you change in the GUI you see the change in powershell as well.
I tried both $job | set-vbrjoboptions and the one above.
Is this a bug or what is changed in update4 that needs to adjusted ?
Tested the same thing on Update3a and works as a charm.
regards
Since update 4 is see the following occurence. I'm adjusting the same way as above my retention point for the storage snapshot.
The setting is adjust immediately if you check the parameters with powershell. But if you go to the GUI the default of 14 days is still there. If you change in the GUI you see the change in powershell as well.
Code: Select all
$Job = get-vbrjob -name $JobName
$joboptions = Get-VBRJobOptions $job
$JobOptions.SanIntegrationOptions.SanSnapshotSourceEnabled = $true
$JobOptions.SanIntegrationOptions.SanSnapshotSourceRetention = "2"
Set-VBRJobOptions -job $Job -Options $JobOptions
Is this a bug or what is changed in update4 that needs to adjusted ?
Tested the same thing on Update3a and works as a charm.
regards
-
- Service Provider
- Posts: 40
- Liked: 5 times
- Joined: Apr 24, 2015 2:51 pm
- Full Name: Dries Vergote
- Contact:
powershell to change values of retention on storage snapshot
Hi
I got the following answer from Veeam support:
After Update 4 we partly changed the logic for many of the PS options and commands. And concerning the retention policy, our developers decided to lead this option to a general view for all the commands. So now, to change retention policy for your NetApp backup job, you need to use the following script:
This is working but is confusing if you check the joboptions options and you can not change it via
$JobOptions.SanIntegrationOptions.SanSnapshotSourceRetention = "2"
Greetz
Dries
I got the following answer from Veeam support:
After Update 4 we partly changed the logic for many of the PS options and commands. And concerning the retention policy, our developers decided to lead this option to a general view for all the commands. So now, to change retention policy for your NetApp backup job, you need to use the following script:
Code: Select all
$Job = get-vbrjob -name 'JobName'
$joboptions = Get-VBRJobOptions $job
$JobOptions.BackupStorageOptions.RetainCycles = "2"
Set-VBRJobOptions -job $Job -Options $JobOptions
$JobOptions.SanIntegrationOptions.SanSnapshotSourceRetention = "2"
Greetz
Dries
-
- Expert
- Posts: 227
- Liked: 62 times
- Joined: Apr 10, 2014 4:13 pm
- Contact:
[MERGED] Secondary Target NetApp SnapVault
Dear all,
Is there some code out there to add a NetApp snapshot as the secondary destination job? Want it configured for Snapvault, not snapshots and to be used as the primary source for backup jobs.
Thanks!
Is there some code out there to add a NetApp snapshot as the secondary destination job? Want it configured for Snapvault, not snapshots and to be used as the primary source for backup jobs.
Thanks!
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Storage Integration Settings
Can you tell me whether the script provided above works for you? Thanks!
-
- Expert
- Posts: 227
- Liked: 62 times
- Joined: Apr 10, 2014 4:13 pm
- Contact:
Re: Storage Integration Settings
No, I'm asking a different question. The above is turning on storage snapshots on the SAN.
What I want to do is to turn on the 'snapvault' NetApp option as a secondary job target via PowerShell. It is similar in concept, but handled far differently in Veeam itself.
What I want to do is to turn on the 'snapvault' NetApp option as a secondary job target via PowerShell. It is similar in concept, but handled far differently in Veeam itself.
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Storage Integration Settings
Can you provide a screenshot of options you'd like to enable? In my case I've managed to enable secondary destination job via this script
-
- Expert
- Posts: 227
- Liked: 62 times
- Joined: Apr 10, 2014 4:13 pm
- Contact:
Re: Storage Integration Settings
Thanks, that has done it!
-
- Veteran
- Posts: 290
- Liked: 25 times
- Joined: Mar 23, 2015 8:30 am
- Contact:
[MERGED] Create Backupjob with Secondary backup destination
Hi
I couldn't find the necessary command to set the "Configure secondary backup destination for this job" with a powershell command. I searched with googling around and checked also the
powershell backup job options but could not find it.
My idea is to add a Netapp Snapvault destination as a secondary backup destination to a backupjob. Can someone help me?
thx
sandsturm
I couldn't find the necessary command to set the "Configure secondary backup destination for this job" with a powershell command. I searched with googling around and checked also the
powershell backup job options but could not find it.
My idea is to add a Netapp Snapvault destination as a secondary backup destination to a backupjob. Can someone help me?
thx
sandsturm
-
- Product Manager
- Posts: 20389
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Storage Integration Settings
Kindly, check the examples provide above; should be something you're looking for. Thanks!
-
- Influencer
- Posts: 24
- Liked: 5 times
- Joined: Sep 28, 2019 6:29 am
- Full Name: Jacky Ku
- Contact:
Re: Storage Integration Settings
Hi All, i try using
$options.SanIntegrationOptions.UseSanSnapshots = "True"
but i get the error on v12.1
The property 'UseSanSnapshots' cannot be found on this object. Verify that the property exists and can be set.
Anyone can help?
$options.SanIntegrationOptions.UseSanSnapshots = "True"
but i get the error on v12.1
The property 'UseSanSnapshots' cannot be found on this object. Verify that the property exists and can be set.
Anyone can help?
-
- Service Provider
- Posts: 326
- Liked: 78 times
- Joined: Mar 16, 2015 4:00 pm
- Full Name: David Rubin
- Contact:
Re: Storage Integration Settings
@jackyku
I'm using 12.1.2 and it shows up fine for me. What do you get if you just run $options.SanIntegrationOptions ? You should get something like this:
Those are all of the subproperties available below SanIntegrationOptions, and you can see that 'UseSanSnapshots' is there.
I'm using 12.1.2 and it shows up fine for me. What do you get if you just run $options.SanIntegrationOptions ? You should get something like this:
Code: Select all
DomSanStorageRepositoryOptions : Veeam.Backup.Model.CDomSanStorageRepositoryOptions
UseSanSnapshots : True
MultipleStorageSnapshotEnabled : False
MultipleStorageSnapshotVmsCount : 10
FailoverFromSan : False
Failover2StorageSnapshotBackup : False
SanStorageProxyAutoDetect : True
-
- Influencer
- Posts: 24
- Liked: 5 times
- Joined: Sep 28, 2019 6:29 am
- Full Name: Jacky Ku
- Contact:
Re: Storage Integration Settings
Hi, i try to change the true to false hit the error.
-
- Service Provider
- Posts: 326
- Liked: 78 times
- Joined: Mar 16, 2015 4:00 pm
- Full Name: David Rubin
- Contact:
Re: Storage Integration Settings
I was able to change it to false without a problem. Can you paste your code here? This is what I used and I verified that it worked:
Code: Select all
$Job = get-vbrjob -name 'Test_job'
$joboptions = Get-VBRJobOptions $job
$JobOptions.SanIntegrationOptions.UseSanSnapshots = $False
Set-VBRJobOptions -job $Job -Options $JobOptions
Who is online
Users browsing this forum: No registered users and 17 guests