<?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: SSSU Query in Storage Software</title>
    <link>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511915#M538</link>
    <description>I would do CAPTURE CONFIGURATION to a fixed filename and then do a RENAME from the command interpreter:&lt;BR /&gt;&lt;BR /&gt;rename EVA_CONFIG.txt EVA_CONFIG-%dtt%.txt</description>
    <pubDate>Fri, 25 Mar 2005 12:39:38 GMT</pubDate>
    <dc:creator>Uwe Zessin</dc:creator>
    <dc:date>2005-03-25T12:39:38Z</dc:date>
    <item>
      <title>SSSU Query</title>
      <link>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511914#M537</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;New to SSSU and perhaps a very simple query - I would like to schedule a regular backup of our EVA configs - so I use a batch file first that calls this SSSU script that basically runs the "CAPTURE CONFIGURATION filename.txt" command. I noticed that if you run the same script twice, the second time - it just doesn't complete - my reasoning being it sees the same filename and aborts the script.&lt;BR /&gt;&lt;BR /&gt;Now, this is the simple bit but my head has stopped working now ofcourse...how do I append the date and time at the end of the filename - so every time I run the script it works!&lt;BR /&gt;&lt;BR /&gt;For a batch file, I could just simply put these four lines to get the date and time appended in the filename - but SSSU seems to follow a different syntax perhaps:&lt;BR /&gt;for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l&lt;BR /&gt;for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i&lt;BR /&gt;set tm=%tm::=-%&lt;BR /&gt;set dtt=%dt%%tm%&lt;BR /&gt;&lt;BR /&gt;I would like to say in my SSSU script:&lt;BR /&gt;CAPTURE CONFIGURATION EVA_CONFIG_%DTT%_%TM%.TXT&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Saket.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;P.S. This thread has been moved from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Storage Area Networks (SAN) (Enterprise) to HP Storage System Scripting Utility (SSSU)&lt;/SPAN&gt;&lt;SPAN&gt;. -HP Forum Moderator&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 03:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511914#M537</guid>
      <dc:creator>SAKET_5</dc:creator>
      <dc:date>2014-02-18T03:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: SSSU Query</title>
      <link>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511915#M538</link>
      <description>I would do CAPTURE CONFIGURATION to a fixed filename and then do a RENAME from the command interpreter:&lt;BR /&gt;&lt;BR /&gt;rename EVA_CONFIG.txt EVA_CONFIG-%dtt%.txt</description>
      <pubDate>Fri, 25 Mar 2005 12:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511915#M538</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-03-25T12:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: SSSU Query</title>
      <link>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511916#M539</link>
      <description>I've played a bit with your code as I like your idea, but prefer a slightly different filename format.&lt;BR /&gt;&lt;BR /&gt;It looks like the date fields are separated by '/' on your version of Windows while they are separated by '.' on a German system. Here is a different solution I came up with:&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;set d1=%DATE:~6,10%-%DATE:~3,2%-%DATE:~0,2%&lt;BR /&gt;set t1=%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%&lt;BR /&gt;set dt=%d1%_%t1%&lt;BR /&gt;&lt;BR /&gt;copy nul b.txt&lt;BR /&gt;rename b.txt b_%dt%.txt&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;Watch out as the result from the %DATE% might look different on your system:&lt;BR /&gt;E:\TST&amp;gt;echo %DATE%&lt;BR /&gt;25.03.2005&lt;BR /&gt;&lt;BR /&gt;E:\TST&amp;gt;</description>
      <pubDate>Fri, 25 Mar 2005 14:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511916#M539</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-03-25T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSSU Query</title>
      <link>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511917#M540</link>
      <description>Outch! I should not work late ;-) It breaks early in the mornig when the hour is a single-digit number, because there is a space character for the first digit. Here is a fix:&lt;BR /&gt;&lt;BR /&gt;set d1=%DATE:~6,10%-%DATE:~3,2%-%DATE:~0,2%&lt;BR /&gt;set t1="%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%"&lt;BR /&gt;set dt=%d1%_%t1:~1,8%&lt;BR /&gt;if "%t1:~1,1%"==" " set dt=%d1%_0%t1:~2,7%&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Apr 2005 03:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511917#M540</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-04-12T03:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: SSSU Query</title>
      <link>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511918#M541</link>
      <description>Hi Uwe,&lt;BR /&gt;&lt;BR /&gt;Thanks for those valuable tips. My EVAs are now being backed up nightly, i.e. configuration of EVAs one siteA get their configuration backed up directly on siteB and vice versa. Also embedded "blat" in my script to send a notficiation email once the script completes a successful run.&lt;BR /&gt;&lt;BR /&gt;Now onto implementing a script that goes around and connects to all my SAN Fabric switches and runs "configupload" to capture the switch config on a regular basis. I have downloaded a few tools/scripts from Brocade site and plan to look at them shortly. Any thoughts that you may want to share here?&lt;BR /&gt;&lt;BR /&gt;Next one is to get a script that connects to the HSG80s to run a few commands to capture their stuff (I will miss the "CAPTURE_CONFIG" command, i m sure), e.g. "supportshow", "show this", "show other", "show storagesets", "show raidsets", "show mirrorsets", etc.&lt;BR /&gt;&lt;BR /&gt;Thanks Uwe,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Saket.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 22:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511918#M541</guid>
      <dc:creator>SAKET_5</dc:creator>
      <dc:date>2005-04-13T22:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: SSSU Query</title>
      <link>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511919#M542</link>
      <description>Hello Saket,&lt;BR /&gt;our customer's environments are rather stable, so I haven't done any automatisation here.&lt;BR /&gt;&lt;BR /&gt;For capturing HSG configuration I use this set of commands:&lt;BR /&gt;---&lt;BR /&gt;show this_controller full&lt;BR /&gt;show other_controller full&lt;BR /&gt;show disks full&lt;BR /&gt;show mirrorsets full&lt;BR /&gt;show stripesets full&lt;BR /&gt;show raidsets full&lt;BR /&gt;show concatsets full&lt;BR /&gt;show units full&lt;BR /&gt;show id&lt;BR /&gt;show remote_copy_sets full&lt;BR /&gt;show associations full&lt;BR /&gt;show connections full&lt;BR /&gt;show sparesets&lt;BR /&gt;show failedsets&lt;BR /&gt;show managers&lt;BR /&gt;---&lt;BR /&gt;For older RA/ESA boxes I think a&lt;BR /&gt;&amp;gt; show emu&lt;BR /&gt;&lt;BR /&gt;might be useful, too, as there have been situations where it was necessary to change the sensor trip points.</description>
      <pubDate>Sun, 17 Apr 2005 13:06:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/storage-software/sssu-query/m-p/3511919#M542</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-04-17T13:06:30Z</dc:date>
    </item>
  </channel>
</rss>

