<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bulk SM relationsship creation with Powershell ? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/9168#M447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vinith!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect and thank you ! thats what i Need!&lt;/P&gt;&lt;P&gt;br taner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 13:43:48 GMT</pubDate>
    <dc:creator>taner_sagcan</dc:creator>
    <dc:date>2013-03-06T13:43:48Z</dc:date>
    <item>
      <title>Bulk SM relationsship creation with Powershell ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/9155#M445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone experience with creation of Snapmirror Relationsships in bulk, i talk about more than 50....&lt;/P&gt;&lt;P&gt;I think about to create a txt oder csv file where SourceVOL and DestVOL is entered and the cmdlet reads each row/column and create the relationship beetween the 2 Controllers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or sample script are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;taner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:08:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/9155#M445</guid>
      <dc:creator>taner_sagcan</dc:creator>
      <dc:date>2025-06-05T06:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk SM relationsship creation with Powershell ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/9159#M446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataOntap Toolkit has a cmdlet called Invoke-NaSnapmirrorInitialize which helps in creation of snapmirror relationship between source controller volume and destination controller volume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Get detailed information about the cmdlet you can run &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get-Help Invoke-NaSnapmirrorInitialize -Detailed &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to scriptize the snapmirror relationship you can try something like below, create a csv file with entries as below specifying the destination/source volume and controller name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="565"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="144"&gt;DestinationController&lt;/TD&gt;&lt;TD width="168"&gt;DestinationVolumeName&lt;/TD&gt;&lt;TD width="116"&gt;SourceController &lt;/TD&gt;&lt;TD width="137"&gt;SourceVolumeName&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol1&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol2&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol3&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol4&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol5&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol6&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol7&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol8&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol9&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol10&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol11&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol12&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;benson&lt;/TD&gt;&lt;TD&gt;benvol13&lt;/TD&gt;&lt;TD&gt;dunn&lt;/TD&gt;&lt;TD&gt;dunvol13&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then through your powershell prompt, import the csv and feed it to &lt;STRONG&gt;Invoke-NaSnapmirrorInitialize &lt;/STRONG&gt;to iterate though the csv and create snapmirror relationships for each destination and source volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13625730742142439" jivemacro_uid="_13625730742142439"&gt;&lt;P&gt;PS C:\&amp;gt; $snapinfo = Import-Csv C:\Users\vinith\Desktop\snapinfo.csv&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt; $snapinfo | ForEach-Object {Invoke-NaSnapmirrorInitialize '$_.destinationcontroller:$_.destinationvolumename' '$_.sourcecontroller:$_.sourcevolumename' }&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/19116_snapmirror.png" style="float: left; width: 962px; height: 305.2658662092624px;" width="962" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 10:49:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/9159#M446</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-03-06T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk SM relationsship creation with Powershell ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/9168#M447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vinith!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect and thank you ! thats what i Need!&lt;/P&gt;&lt;P&gt;br taner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 13:43:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/9168#M447</guid>
      <dc:creator>taner_sagcan</dc:creator>
      <dc:date>2013-03-06T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk SM relationsship creation with Powershell ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/98798#M4096</link>
      <description>&lt;P&gt;Hi Vinith,&lt;/P&gt;&lt;P&gt;I am very new to Power Shell scripting &amp;nbsp;aand would like to know in your example &amp;nbsp;do the &amp;nbsp;destination &amp;nbsp;volume have to exist &amp;nbsp;for this &amp;nbsp;to work ?&lt;/P&gt;&lt;P&gt;If they do, what would the script look like to create the new destination volumes &amp;nbsp;?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2015 01:11:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Bulk-SM-relationsship-creation-with-Powershell/m-p/98798#M4096</guid>
      <dc:creator>rdenyer001</dc:creator>
      <dc:date>2015-01-02T01:11:00Z</dc:date>
    </item>
  </channel>
</rss>

