<?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 Virtual Storage Console 4.2.1 and VMware backup script syntax question in VMware Solutions Discussions</title>
    <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/Virtual-Storage-Console-4-2-1-and-VMware-backup-script-syntax-question/m-p/8471#M850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment: &lt;/P&gt;&lt;P&gt;ESXi 5.5&lt;/P&gt;&lt;P&gt;Virtual Storage Console 4.2.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recently upgraded from ESX 4.5 to ESXi 5.5. In the process we went from SMVI 3.0 to VSC 4.2.1. We had an SMVI job that executed a script, which is no longer working. I suspect it is the syntax that has changed, although I cannot find the new syntax requirements anywhere. The script is below; I pulled our server names out of the script and replaced them with &amp;lt;SERVER_NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:START&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; setlocal&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Set ErrorLevel=0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Set ExitCode=0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; if %BACKUP_PHASE% == PRE_BACKUP goto PREBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; if %BACKUP_PHASE% == POST_BACKUP goto POSTBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; if %BACKUP_PHASE% == FAILED_BACKUP goto FAILEDBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:PREBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EVSetBackupMode.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; set ExitCode=%ERRORLEVEL%&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:POSTBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h -n 10800 "C:\Program Files\NetApp\SQLBackupScript.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EV_Create_Trigger.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EVClearBackupMode.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; set ExitCode=%ERRORLEVEL%&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:FAILEDBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EVClearBackupMode.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Exit /B %ExitCode%&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an image of the output when running the script manually. As you can see, when I get to &lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;if %BACKUP_PHASE% == PRE_BACKUP goto PREBACKUP&lt;/EM&gt;&lt;/SPAN&gt;, the variable &lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;%BACKUP_PHASE%&lt;/EM&gt;&lt;/SPAN&gt; is missing, and the script fails to progress any further. I suspect this is because VSC doesn't know what that variable is, and it was likely defined somewhere in SMVI or was built into it, allowing that variable to be properly interpreted. Does anyone know if the script syntax requirements changed in VSC 4.2.1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/25996_Capture.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:34:39 GMT</pubDate>
    <dc:creator>JBERG_DIGITALREALTY</dc:creator>
    <dc:date>2025-06-05T05:34:39Z</dc:date>
    <item>
      <title>Virtual Storage Console 4.2.1 and VMware backup script syntax question</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/Virtual-Storage-Console-4-2-1-and-VMware-backup-script-syntax-question/m-p/8471#M850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment: &lt;/P&gt;&lt;P&gt;ESXi 5.5&lt;/P&gt;&lt;P&gt;Virtual Storage Console 4.2.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recently upgraded from ESX 4.5 to ESXi 5.5. In the process we went from SMVI 3.0 to VSC 4.2.1. We had an SMVI job that executed a script, which is no longer working. I suspect it is the syntax that has changed, although I cannot find the new syntax requirements anywhere. The script is below; I pulled our server names out of the script and replaced them with &amp;lt;SERVER_NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:START&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; setlocal&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Set ErrorLevel=0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Set ExitCode=0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; if %BACKUP_PHASE% == PRE_BACKUP goto PREBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; if %BACKUP_PHASE% == POST_BACKUP goto POSTBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; if %BACKUP_PHASE% == FAILED_BACKUP goto FAILEDBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:PREBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EVSetBackupMode.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; set ExitCode=%ERRORLEVEL%&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:POSTBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h -n 10800 "C:\Program Files\NetApp\SQLBackupScript.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EV_Create_Trigger.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EVClearBackupMode.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; set ExitCode=%ERRORLEVEL%&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:FAILEDBACKUP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; start /wait psexec.exe \\&amp;lt;SERVER_NAME&amp;gt; -i -h "C:\WINDOWS\System32\EVClearBackupMode.cmd"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; goto END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;:END&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Exit /B %ExitCode%&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an image of the output when running the script manually. As you can see, when I get to &lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;if %BACKUP_PHASE% == PRE_BACKUP goto PREBACKUP&lt;/EM&gt;&lt;/SPAN&gt;, the variable &lt;SPAN style="color: #339966;"&gt;&lt;EM&gt;%BACKUP_PHASE%&lt;/EM&gt;&lt;/SPAN&gt; is missing, and the script fails to progress any further. I suspect this is because VSC doesn't know what that variable is, and it was likely defined somewhere in SMVI or was built into it, allowing that variable to be properly interpreted. Does anyone know if the script syntax requirements changed in VSC 4.2.1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/25996_Capture.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:34:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/Virtual-Storage-Console-4-2-1-and-VMware-backup-script-syntax-question/m-p/8471#M850</guid>
      <dc:creator>JBERG_DIGITALREALTY</dc:creator>
      <dc:date>2025-06-05T05:34:39Z</dc:date>
    </item>
  </channel>
</rss>

