<?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 : Running a Post Backup PowerShell Script in VMware Solutions Discussions</title>
    <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26496#M2737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amritad!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the line if %BACKUP_PHASE% == POST_BACKUP goto doSnapVault in you script. Means that, that it is also possible to start scripts befor the backup (PRE scripts)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find a documentation about the scripts for SMVI (SVC 2.0). Which parameters are possible and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you some docu?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Jan 2011 07:34:50 GMT</pubDate>
    <dc:creator>raimiansch</dc:creator>
    <dc:date>2011-01-02T07:34:50Z</dc:date>
    <item>
      <title>SMVI : Running a Post Backup PowerShell Script</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26484#M2735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help and guidence on scripting in SMVI? I have a power shell script that creates a SV snapshot and updates as Snap vault relationship from a consistant snapshot on the primary filer. I want this to run once the SMVI job has completed but I cant get this to work. The powershell script work fine if run independantly and I have checked that this is not a permissions issue. Please can some one point me to some same scripts or setup guides me on how to get this working as currently SMVI just gives a time out error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import-Module DataONTAP&amp;nbsp; &lt;BR /&gt;Write-Debug "Begin Main Functions"&lt;/P&gt;&lt;P&gt;# Comfirm succesfull backup&lt;/P&gt;&lt;P&gt;write-eventlog -logname Application -source SMVI -EventID "9990" -EntryType Information -message "SMVI Snapvault Update Started"&amp;nbsp; &lt;BR /&gt;# Connect to Snapvault secondary&lt;/P&gt;&lt;P&gt;Write-Debug "Connect to Controller"Connect-NaController -Name Secondary&lt;/P&gt;&lt;P&gt;#Update Snapvault Secondaries and transfer from primary Snapshot&lt;/P&gt;&lt;P&gt;Write-Debug "Snapshot Secondary"&lt;/P&gt;&lt;P&gt;Start-NaSnapvaultSecSnapshot -VolumeName SV_Secondary -ScheduleName SV_Nightly&lt;/P&gt;&lt;P&gt;Write-Debug "Snapvault to Secondary"&lt;/P&gt;&lt;P&gt;Start-NaSnapvaultSecTransfer -SecondaryPath /vol/SV_Secondary/Q_SV_Secondary -PrimarySnapshot smvi_PROD_BACKUPS_novmsnap_recent&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:06:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26484#M2735</guid>
      <dc:creator>richard_heath</dc:creator>
      <dc:date>2025-06-05T07:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: SMVI : Running a Post Backup PowerShell Script</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26489#M2736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here’s a sample script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM CONTROLLER is the SnapVault target NetApp Controller&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set CONTROLLER=torfiler3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM SECPATH is the path to the SnapVault Volume on the target controller including the qtree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set SECPATH=/vol/vmblock1vault/vmblock1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM SVSCHED is the schedule name for the retention schedule configured on the SnapVault volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set SVSCHED=smvi_weeklyvault&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM SVVOLUME is the SnapVault target volume not including the qtree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set SVVOLUME=vmblock1vault&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM USER is the limiter user id for the SnapVault transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set USER=limited-SV-user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM PASSWORD is the password for the limited user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set PASSWORD=smv1rocks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM SNAPNAME is the name of the snapshot to be transfered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set SNAPNAME=smvi__weeklyISCSI1_recent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM ZAPIPATH is the path to the ONTAP SDK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set ZAPIPATH="E:\Program Files\NetApp\Virtual Storage Console\smvi\server\scripts"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM LOGPATH Is the path to the log generated by the SMVI script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set LOGPATH="E:\Program Files\NetApp\Virtual Storage Console\smvi\server\log\scripts"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM LOGFILE is the logfile generate by the SMVI script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set LOGFILE=SnapVaultScript.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if %BACKUP_PHASE% == POST_BACKUP goto doSnapVault&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto ende&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:doSnapVault&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo SCRIPT STARTING FOR SMVI JOB:%BACKUP_NAME%&amp;gt;&amp;gt;%LOGPATH%\%LOGFILE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo BEGIN SNAPVAULT UPDATE&amp;gt;&amp;gt;%LOGPATH%\%LOGFILE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chdir %ZAPIPATH%&amp;gt;&amp;gt;%LOGPATH%\%LOGFILE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo BEGIN SNAPVAULT UPDATE FOR  %SVVOLUME%&amp;gt;&amp;gt;%LOGPATH%\%LOGFILE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apitest.exe %CONTROLLER% %USER% %PASSWORD% snapvault-secondary-initiate-incremental-transfer primary-snapshot %SNAPNAME% secondary-path %SECPATH%&amp;gt;&amp;gt;%LOGPATH%\%LOGFILE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apitest.exe %CONTROLLER% %USER% %PASSWORD% snapvault-secondary-initiate-snapshot-create schedule-name %SVSCHED% volume-name %SVVOLUME%&amp;gt;&amp;gt;%LOGPATH%\%LOGFILE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo END SNAPVAULT UPDATE FOR  %SVVOLUME%&amp;gt;&amp;gt;%LOGPATH%\%LOGFILE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 14:03:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26489#M2736</guid>
      <dc:creator>amritad</dc:creator>
      <dc:date>2010-10-26T14:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: SMVI : Running a Post Backup PowerShell Script</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26496#M2737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amritad!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the line if %BACKUP_PHASE% == POST_BACKUP goto doSnapVault in you script. Means that, that it is also possible to start scripts befor the backup (PRE scripts)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find a documentation about the scripts for SMVI (SVC 2.0). Which parameters are possible and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you some docu?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jan 2011 07:34:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26496#M2737</guid>
      <dc:creator>raimiansch</dc:creator>
      <dc:date>2011-01-02T07:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: SMVI : Running a Post Backup PowerShell Script</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26501#M2738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take a look at the SMVI BPG. Here’s the link to this&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;A href="http://media.netapp.com/documents/tr-3737.pdf" target="_blank"&gt;http://media.netapp.com/documents/tr-3737.pdf&lt;/A&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;Also we have a SnapVault integration script that you can take a look at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.netapp.com/docs/DOC-8720#comment-4130" target="_blank"&gt;http://communities.netapp.com/docs/DOC-8720#comment-4130&lt;/A&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;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amrita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 06:55:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/SMVI-Running-a-Post-Backup-PowerShell-Script/m-p/26501#M2738</guid>
      <dc:creator>amritad</dc:creator>
      <dc:date>2011-01-03T06:55:58Z</dc:date>
    </item>
  </channel>
</rss>

