<?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: Trouble with 3Par script in HPE 3PAR StoreServ Storage</title>
    <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/6202795#M234</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;great post, we are looking at the same solution. &amp;nbsp;from reading though i am not sure if you are using the recovery manager software for 3par? &amp;nbsp;then again to have the commands available to do the script you may have?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i was just wondering as we are going to use the 3par recovery manager to do PIT snap shots of the sql database and then we would like to mount them on a seperate server running SQL to allow devs to test. &amp;nbsp;So i from reading this post it looks like we could schedule the sql snap shots using the software and then use the midle part of the script to mount the snap shot on a seperate server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing i was wondering though was how you go about deleting the snap shot from the remote sql server, does the 3par have the cli commands to do this in a clean way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2013 23:14:22 GMT</pubDate>
    <dc:creator>phillbl1</dc:creator>
    <dc:date>2013-09-12T23:14:22Z</dc:date>
    <item>
      <title>Trouble with 3Par script</title>
      <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5709667#M229</link>
      <description>&lt;P&gt;I'm trying to write a 3Par CLI script to create snapshots of a SQL database and then mount them on another server for use as a reporting server for data mining.&amp;nbsp; I have all the necessary commands in a batch file.&amp;nbsp; The problem I'm having is that after the first command, which works correctly, I can't see that any of the other commands are operating at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to run the entire series of commands as a single script?&amp;nbsp; Also, is there a way to make each command wait to execute until the one before it has completed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 16:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5709667#M229</guid>
      <dc:creator>LARRY FUTCH</dc:creator>
      <dc:date>2012-07-03T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 3Par script</title>
      <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5709883#M230</link>
      <description>&lt;P&gt;Do you have an example of your script?&lt;/P&gt;&lt;P&gt;What OS and shell are you running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;is there a way to make each command wait to execute until the one before it has completed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless you create a task, it normally waits.&lt;/P&gt;&lt;P&gt;There is a waittask command.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 01:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5709883#M230</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-07-04T01:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 3Par script</title>
      <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5739207#M231</link>
      <description>&lt;P&gt;I attached a copy of the .BAT file below.&amp;nbsp; I'm trying to run this on Windows 2008 R2. The object of this is to make snapshots of a production SQL server and mount them on another server for report generation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that after the first 3Par command, nothing else in the entire .BAT file shows up on screen or gives me any indication that it ran at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM Pause the SQL service on the production server&lt;BR /&gt;SC \\BPCRMSQALL01 pause "SQL Server (MSSQLSERVER)"&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;REM Delay while SQL finishes stopping&lt;BR /&gt;timeout 5&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;REM Unmount the SQL Data and SQL Logs drives from the Backup server&lt;BR /&gt;removevlun -sys bpc3par1 -pwf pw1 -f rwSS_of_BPCRMSQALL01_SQL_Data 10 BPCPAPPINF01&lt;BR /&gt;REM removevlun -sys bpc3par1 -pwf pw1 -f rwSS_of_BPCRMSQALL01_SQL_Logs 11 BPCPAPPINF01&lt;BR /&gt;removevv -sys bpc3par1 -pwf pw1 -f -snaponly -cascade roSS_of_BPCRMSQALL01_SQL_Data&lt;BR /&gt;REM removevv -sys bpc3par1 -pwf pw1 -f -snaponly -cascade roSS_of_BPCRMSQALL01_SQL_Logs&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;REM Make new snapshots of the production server volumes&lt;BR /&gt;REM call snapdata1&lt;BR /&gt;createsv -sys bpc3par1 -pwf pw1 -f -exp 48h -ro roSS_of_BPCRMSQALL01_SQL_Data vv_BPCRMSQALL01_SQL_Data&lt;BR /&gt;timeout 5&lt;BR /&gt;REM call snaplogs1&lt;BR /&gt;REM createsv -sys bpc3par1 -pwf pw1 -f -exp 48h -ro roSS_of_BPCRMSQALL01_SQL_Logs vv_BPCRMSQALL01_SQL_Logs&lt;BR /&gt;timeout 5&lt;BR /&gt;REM call snapdata2&lt;BR /&gt;createsv -sys bpc3par1 -pwf pw1 -f -exp 48h rwSS_of_BPCRMSQALL01_SQL_Data roSS_of_BPCRMSQALL01_SQL_Data&lt;BR /&gt;timeout 5&lt;BR /&gt;REM call snaplogs2&lt;BR /&gt;createsv -sys bpc3par1 -pwf pw1 -f -exp 48h rwSS_of_BPCRMSQALL01_SQL_Logs roSS_of_BPCRMSQALL01_SQL_Logs&lt;BR /&gt;timeout 10&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;REM Map the snapshots to the Backup server&lt;BR /&gt;createvlun rwSS_of_BPCRMSQALL01_SQL_Data 10 BPCPAPPINF01&lt;BR /&gt;REM createvlun rwSS_of_BPCRMSQALL01_SQL_Data 11 BPCPAPPINF01&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;REM Delay to let the O.S. recognize the drives.&lt;BR /&gt;timeout 180&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;REM Continue the SQL Service on the Report server&lt;BR /&gt;REM net start MSSQLSERVER&lt;BR /&gt;REM net start SQLSERVERAGENT&lt;BR /&gt;REM net continue MSSQLSERVER&lt;BR /&gt;SC \\BPCRMSQALL01 continue "SQL Server (MSSQLSERVER)"&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5739207#M231</guid>
      <dc:creator>LARRY FUTCH</dc:creator>
      <dc:date>2012-07-25T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 3Par script</title>
      <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5740887#M232</link>
      <description>&lt;P&gt;That's because after the first CLI command, they &lt;EM&gt;didn't&lt;/EM&gt; run. Windows (command line interface) is dumber than a box of rocks.&lt;BR /&gt;&lt;BR /&gt;The 3PAR CLI installation puts the CLI itself &lt;U&gt;and&lt;/U&gt; all the commands in the CLI's bin folder. To keep the size of the CLI installation down, each command is a .CMD stub that passes the command verb and all its arguments to CLI.exe.&lt;BR /&gt;&lt;BR /&gt;You either need to "call" each command or preface each command with "CLI". For example:&lt;BR /&gt;&lt;BR /&gt;REM Unmount the SQL Data and SQL Logs drives from the Backup server&lt;BR /&gt;cli removevlun -sys bpc3par1 -pwf pw1 -f rwSS_of_BPCRMSQALL01_SQL_Data 10 BPCPAPPINF01&lt;BR /&gt;REM removevlun -sys bpc3par1 -pwf pw1 -f rwSS_of_BPCRMSQALL01_SQL_Logs 11 BPCPAPPINF01&lt;BR /&gt;cli removevv -sys bpc3par1 -pwf pw1 -f -snaponly -cascade roSS_of_BPCRMSQALL01_SQL_Data&lt;BR /&gt;REM removevv -sys bpc3par1 -pwf pw1 -f -snaponly -cascade roSS_of_BPCRMSQALL01_SQL_Logs&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 13:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5740887#M232</guid>
      <dc:creator>Sheldon Smith</dc:creator>
      <dc:date>2012-07-26T13:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 3Par script</title>
      <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5741419#M233</link>
      <description>&lt;P&gt;Many thanks.&amp;nbsp; I added CLI to the front of each command and it works perfectly now.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 20:07:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/5741419#M233</guid>
      <dc:creator>LARRY FUTCH</dc:creator>
      <dc:date>2012-07-26T20:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 3Par script</title>
      <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/6202795#M234</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;great post, we are looking at the same solution. &amp;nbsp;from reading though i am not sure if you are using the recovery manager software for 3par? &amp;nbsp;then again to have the commands available to do the script you may have?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i was just wondering as we are going to use the 3par recovery manager to do PIT snap shots of the sql database and then we would like to mount them on a seperate server running SQL to allow devs to test. &amp;nbsp;So i from reading this post it looks like we could schedule the sql snap shots using the software and then use the midle part of the script to mount the snap shot on a seperate server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing i was wondering though was how you go about deleting the snap shot from the remote sql server, does the 3par have the cli commands to do this in a clean way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 23:14:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/6202795#M234</guid>
      <dc:creator>phillbl1</dc:creator>
      <dc:date>2013-09-12T23:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 3Par script</title>
      <link>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/6203935#M235</link>
      <description>&lt;P&gt;The "cli" commands above are the basic HP 3PAR OS commands. In addition, with HP 3PAR Recovery Manager for Microsoft SQL Server, there is an additional set of commands starting "HpRmCli Sql". Sounds like you want the "HpRmCli Sql unmount" and probably the "HpRmCli Sql remove" commands. See the &lt;EM&gt;HP 3PAR Recovery Manager for Microsoft SQL Server User Guide&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note: While I work for HP, all of my comments (whether noted or not), are my own and are not any official representation of the company.&lt;BR /&gt;----------&lt;BR /&gt;If my post was useful, click on my KUDOS! "White Star" !&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-3par-storeserv-storage/trouble-with-3par-script/m-p/6203935#M235</guid>
      <dc:creator>Sheldon Smith</dc:creator>
      <dc:date>2013-09-13T20:36:06Z</dc:date>
    </item>
  </channel>
</rss>

