<?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: Using PowerCLI with Flexclone rapidclone in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Using-PowerCLI-with-Flexclone-rapidclone/m-p/13592#M707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the cmdlets here (&lt;A _jive_internal="true" href="https://community.netapp.com/docs/DOC-11407" title="https://communities.netapp.com/docs/DOC-11407" target="_blank"&gt;https://communities.netapp.com/docs/DOC-11407&lt;/A&gt;) along with the VSC to create the clones for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2012 12:25:36 GMT</pubDate>
    <dc:creator>costea</dc:creator>
    <dc:date>2012-07-09T12:25:36Z</dc:date>
    <item>
      <title>Using PowerCLI with Flexclone rapidclone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Using-PowerCLI-with-Flexclone-rapidclone/m-p/13587#M706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;I have a PowerCLI script that allows me to clone Linux Vm's from a template and configure their customisations from a csv file. Creating 5 Vm's can take 50mins+..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;We recently invested in FlexClone licensing with our NetApp and I'm wondering how/if I could update my script to use the rapidclone technology from NetApp instead of the&amp;nbsp; "CloneVM_Task" to clone the Vm's faster.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;I would also like for the script to first check if a clone to be created (VMName from csv file) already exists and if so skip...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;STRONG&gt;Here is my existing script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="line number1 index0 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;Connect&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-VIServer&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;YOUR VCENTER&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number3 index2 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;Import-CSV&lt;/CODE&gt; &lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-path&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;linuxvdi.csv | `&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number4 index3 alt1" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell spaces" style="font-size: 1.2em;"&gt;&amp;nbsp; &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;ForEach-Object&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;{&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number5 index4 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell spaces" style="font-size: 1.2em;"&gt;&amp;nbsp; &lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;Get&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-OSCustomizationSpec&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;LinuxVDI | Get&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-OSCustomizationNicMapping&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;| &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;Set&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-OSCustomizationNicMapping&lt;/CODE&gt; &lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-IpMode&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;UseStaticIP &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-IPAddress&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.IpAddress &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Subnetmask&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.SubnetMask &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-DefaultGateway&lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.DefaultGateway&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number6 index5 alt1" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell spaces" style="font-size: 1.2em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;New&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-VM&lt;/CODE&gt; &lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Name&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.VMName &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-VMHost&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.VMHost &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Template&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.Template &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Datastore&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.Datastore &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Description&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.Description &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-OSCustomizationSpec&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;LinuxVDI &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-RunAsync&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number7 index6 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell spaces" style="font-size: 1.2em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;}&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number8 index7 alt1" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;while (Get&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Task&lt;/CODE&gt; &lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Status&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;Running | &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;where&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;{$_.Name &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-eq&lt;/CODE&gt; &lt;CODE class="powershell string" style="font-size: 1.2em;"&gt;"CloneVM_Task"&lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;}){&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;sleep&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;10}&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;Get&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Task&lt;/CODE&gt; &lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Status&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;Success | &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;where&lt;/CODE&gt; &lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;{$_.Name &lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-eq&lt;/CODE&gt; &lt;CODE class="powershell string" style="font-size: 1.2em;"&gt;"CloneVM_Task"&lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;} | %{(Get&lt;/CODE&gt;&lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-View&lt;/CODE&gt; &lt;CODE class="powershell keyword" style="font-size: 1.2em;"&gt;-Id&lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;$_.Result).PowerONVM(&lt;/CODE&gt;&lt;CODE class="powershell value" style="font-size: 1.2em;"&gt;$null&lt;/CODE&gt;&lt;CODE class="powershell plain" style="font-size: 1.2em;"&gt;)}&lt;/CODE&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;STRONG&gt;The Column heading's in my csv file are&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;VMName&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;VMHost&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;Template&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;Datastore&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;IPAddress&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;Subnetmask&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;DefaultGateway&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;Description&lt;/P&gt;&lt;P class="line number9 index8 alt2"&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2"&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;I installed the DataONTAP Toolkit but have used cmdlets like this before..&lt;/P&gt;&lt;P class="line number9 index8 alt2"&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #eef4f9;"&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2"&gt;&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;Thanks&lt;/P&gt;&lt;P class="line number9 index8 alt2" style="font-size: 12px; background-color: #eef4f9; color: #333333; font-family: Arial, Helvetica, sans-serif;"&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:23:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Using-PowerCLI-with-Flexclone-rapidclone/m-p/13587#M706</guid>
      <dc:creator>jgriffin123</dc:creator>
      <dc:date>2025-06-05T06:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using PowerCLI with Flexclone rapidclone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Using-PowerCLI-with-Flexclone-rapidclone/m-p/13592#M707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the cmdlets here (&lt;A _jive_internal="true" href="https://community.netapp.com/docs/DOC-11407" title="https://communities.netapp.com/docs/DOC-11407" target="_blank"&gt;https://communities.netapp.com/docs/DOC-11407&lt;/A&gt;) along with the VSC to create the clones for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 12:25:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Using-PowerCLI-with-Flexclone-rapidclone/m-p/13592#M707</guid>
      <dc:creator>costea</dc:creator>
      <dc:date>2012-07-09T12:25:36Z</dc:date>
    </item>
  </channel>
</rss>

