<?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: SMVI Backup DOS Script in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/SMVI-Backup-DOS-Script/m-p/98676#M4774</link>
    <description>&lt;P&gt;So since array handling in DOS is problematic, I bounce the variables out to a text file and can parse them on the way back. &amp;nbsp;Not the best but it's working.&lt;/P&gt;&lt;P&gt;Powershell would have been an option as well but it would be endless shelling back and forth to PS and DOS.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Dec 2014 22:40:44 GMT</pubDate>
    <dc:creator>BEStorageAdmin</dc:creator>
    <dc:date>2014-12-22T22:40:44Z</dc:date>
    <item>
      <title>SMVI Backup DOS Script</title>
      <link>https://community.netapp.com/t5/Data-Protection/SMVI-Backup-DOS-Script/m-p/98475#M4773</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to set up a pre_backup SMVI script that connects to the SnapDrive service on the target machine(s) but I'm getting hung up parsing the VIRTUAL_MACHINE.# variable in DOS. Does anyone have this figured out and want to share?&lt;/P&gt;&lt;P&gt;I don't suppose there's a Powershell library for SDCLI?&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set LoopCount=1&lt;/P&gt;&lt;P&gt;set retention=5&lt;BR /&gt;set path=%path%;"C:\Program Files\NetApp\SnapDrive"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM Inherits BACKUP_PHASE=PRE_BACKUP, VIRTUAL_MACHINES=2, VIRTUAL_MACHINE.1,2,...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if %BACKUP_PHASE% NEQ PRE_BACKUP goto out&lt;BR /&gt;if %VIRTUAL_MACHINES% LSS 1 goto out&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;:StartMachine&lt;/P&gt;&lt;P&gt;&amp;nbsp; set handle=&lt;BR /&gt;&amp;nbsp; set PowerStatus=&lt;BR /&gt;&amp;nbsp; set mounts=&lt;BR /&gt;&amp;nbsp; set c=1&lt;BR /&gt;&amp;nbsp; set ThisHost=VIRTUAL_MACHINE.%LoopCount%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FOR /f "tokens=1,2,3 delims=|" %%G IN (%ThisHost%) DO &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/54225"&gt;@Set&lt;/a&gt; PowerStatus=%%I&lt;BR /&gt;&lt;BR /&gt;If %PowerStatus% NEQ POWERED_ON goto out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOR /F "tokens=1 delims=|" %%G IN (%ThisHost%) DO set ComputerNM=%%G&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:22:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SMVI-Backup-DOS-Script/m-p/98475#M4773</guid>
      <dc:creator>BEStorageAdmin</dc:creator>
      <dc:date>2025-06-05T05:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: SMVI Backup DOS Script</title>
      <link>https://community.netapp.com/t5/Data-Protection/SMVI-Backup-DOS-Script/m-p/98676#M4774</link>
      <description>&lt;P&gt;So since array handling in DOS is problematic, I bounce the variables out to a text file and can parse them on the way back. &amp;nbsp;Not the best but it's working.&lt;/P&gt;&lt;P&gt;Powershell would have been an option as well but it would be endless shelling back and forth to PS and DOS.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 22:40:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SMVI-Backup-DOS-Script/m-p/98676#M4774</guid>
      <dc:creator>BEStorageAdmin</dc:creator>
      <dc:date>2014-12-22T22:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: SMVI Backup DOS Script</title>
      <link>https://community.netapp.com/t5/Data-Protection/SMVI-Backup-DOS-Script/m-p/98678#M4775</link>
      <description>&lt;P&gt;And there's this -&amp;nbsp;&lt;A target="_blank" href="https://private-communities.netapp.com/docs/DOC-9189"&gt;https://private-communities.netapp.com/docs/DOC-9189&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 22:50:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SMVI-Backup-DOS-Script/m-p/98678#M4775</guid>
      <dc:creator>BEStorageAdmin</dc:creator>
      <dc:date>2014-12-22T22:50:44Z</dc:date>
    </item>
  </channel>
</rss>

