Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this possible with ONTAP 9? I know it is certainly possible with for example Windows scripting. I would appreciate a clue to where to look to get information how to set this up. We need to setup hundreds of volumes with Snapmirror and this would save us a lot of typing . Alternatively, we will copy and paste ONTAP commands.
Solved! See The Solution
1 ACCEPTED SOLUTION
Northman has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, you can use the powershell foreach loop to iterate through a comma delimited file and assign the line items to variables and send those to the powershell netapp tools commands. snapmirror commands to be run on the appropriate endpoints (usually the DR destination) for each relationship.
foreach ($<item> in $<collection>) {<statement list>}
Thanks
Tony Ansley
I am a NetApp employee.
Tony Ansley
I am a NetApp employee.
4 REPLIES 4
Northman has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, you can use the powershell foreach loop to iterate through a comma delimited file and assign the line items to variables and send those to the powershell netapp tools commands. snapmirror commands to be run on the appropriate endpoints (usually the DR destination) for each relationship.
foreach ($<item> in $<collection>) {<statement list>}
Thanks
Tony Ansley
I am a NetApp employee.
Tony Ansley
I am a NetApp employee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I have found some scripts I can use, just need some more details for the best command to use. Do you know if I have to pre-create all volumes on the destination vserver with sizes as ? When running the command New-NcSnapmirror. Or is there another command that is like the ONTAP command, snapmirror initialize? This command does everything for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually, there seems to have been a cmdlet calle "Initialize-NcSnapMirror", but it is not in the latest module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone have a script that works for ONTAP 9.14+ ? I have spent a lot of time trying to setup snapmirror between two SVMs in two different clusters with "NewNcSnapmirror" command and a Excel input file. Maybe it is simply not possible and I have to use a .csv file?? I am using the Excel module ImportExcel (7.8.5)
