<?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: How to integrate diskblock command into a script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044394#M24354</link>
    <description>Sorry just write the post in a hurry, so haven't explained it clearly.&lt;BR /&gt;    As Heuvel mentioned, DISKBLOCK is OpenVMS Freeware tool. I use the "test" function to create the IO to disks.&lt;BR /&gt;    $DISKBLOCK&lt;BR /&gt;   DISKBLOCK&amp;gt;test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare  &lt;BR /&gt;&lt;BR /&gt;    This could be fine if I just test one disk, but if I want to test more than one disk, for example 10 disks, it is not a good idea to run it separately.&lt;BR /&gt;    I have tried to define a symbol as following:&lt;BR /&gt;    TEST :== $DISKBLOCK test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare&lt;BR /&gt;    But when I issue $TEST on the command line, the DISKBLOCK&amp;gt; shows up, but the command won't run.&lt;BR /&gt;    I am new to OpenVMS,can't figure out &lt;BR /&gt;good ways to in a short time,but the task is a bit urgent. So I wonder if anyone can give me some suggestions to get my goal.&lt;BR /&gt;   Thanks for Heuvel and Cheweda's comments.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    &lt;BR /&gt;</description>
    <pubDate>Thu, 03 May 2007 19:45:33 GMT</pubDate>
    <dc:creator>andy hua</dc:creator>
    <dc:date>2007-05-03T19:45:33Z</dc:date>
    <item>
      <title>How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044391#M24351</link>
      <description>Hi, I want to use diskblock to test IO on disks. If there is only one single disk, I can just input command under DISKBLOCK&amp;gt;, like:test /iosize=2 /queue=10 /readpercent=100 /duration=10 /sequential /compare, but now I want to test IO on four disks, so it maybe a good idea to integrate the command into a script and do it concurrently. I have tried several ways, but always failed. So can anyone give me some suggestions? Thanks in advance.</description>
      <pubDate>Thu, 03 May 2007 18:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044391#M24351</guid>
      <dc:creator>andy hua</dc:creator>
      <dc:date>2007-05-03T18:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044392#M24352</link>
      <description>&amp;gt; I have tried several ways, but always&lt;BR /&gt;&amp;gt; failed.&lt;BR /&gt;&lt;BR /&gt;Perhaps you did something wrong.  What did&lt;BR /&gt;you do?  How did it fail?</description>
      <pubDate>Thu, 03 May 2007 19:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044392#M24352</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-05-03T19:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044393#M24353</link>
      <description>&amp;gt;&amp;gt; I want to use diskblock to test IO on disks&lt;BR /&gt;&lt;BR /&gt;There is no OpenVMS standard tool 'diskblock'.&lt;BR /&gt;May/must we assume this it the OpenVMS Freeware tool called Diskblock?&lt;BR /&gt;Which version (5.8?)&lt;BR /&gt;&lt;BR /&gt;I don't know the tool but I know the guy who wrote it is a solid VMS specialist. So I'm guessing here that you do not have to go 'into' the tool but can just give it a command line.&lt;BR /&gt;&lt;BR /&gt;If so, just $SPAWN/NOWAIT/OUT=... DISKBLOCK TEST ... device&lt;BR /&gt;&lt;BR /&gt;Or submit the same batch job several times with a parameter for the disk to test and define a logical name for that disk just before running the command&lt;BR /&gt;&lt;BR /&gt;Or create several temp commandd files on the fly and spawn or submit those.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; so it maybe a good idea to integrate the command into a script and do it concurrently&lt;BR /&gt;&lt;BR /&gt;That may be a great idea to a thoroughly bad idea depending on what you want to measure. The disk or the controller?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;  I have tried several ways, but always failed. So can anyone give me some suggestions?&lt;BR /&gt;&lt;BR /&gt;Here is anovel idea.... how about you explain to us:&lt;BR /&gt;a) what you tried&lt;BR /&gt;b) why you think it failed.&lt;BR /&gt;&lt;BR /&gt;Was there an error message?&lt;BR /&gt;Did it not do what you expected?&lt;BR /&gt;How did you come to that conclusion?&lt;BR /&gt;&lt;BR /&gt;We are all superbly smart here, but we are only amateur mind readers.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2007 19:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044393#M24353</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-05-03T19:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044394#M24354</link>
      <description>Sorry just write the post in a hurry, so haven't explained it clearly.&lt;BR /&gt;    As Heuvel mentioned, DISKBLOCK is OpenVMS Freeware tool. I use the "test" function to create the IO to disks.&lt;BR /&gt;    $DISKBLOCK&lt;BR /&gt;   DISKBLOCK&amp;gt;test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare  &lt;BR /&gt;&lt;BR /&gt;    This could be fine if I just test one disk, but if I want to test more than one disk, for example 10 disks, it is not a good idea to run it separately.&lt;BR /&gt;    I have tried to define a symbol as following:&lt;BR /&gt;    TEST :== $DISKBLOCK test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare&lt;BR /&gt;    But when I issue $TEST on the command line, the DISKBLOCK&amp;gt; shows up, but the command won't run.&lt;BR /&gt;    I am new to OpenVMS,can't figure out &lt;BR /&gt;good ways to in a short time,but the task is a bit urgent. So I wonder if anyone can give me some suggestions to get my goal.&lt;BR /&gt;   Thanks for Heuvel and Cheweda's comments.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    &lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2007 19:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044394#M24354</guid>
      <dc:creator>andy hua</dc:creator>
      <dc:date>2007-05-03T19:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044395#M24355</link>
      <description>Why not something like this in a 2-line&lt;BR /&gt;command procedure?:&lt;BR /&gt;&lt;BR /&gt;$ diskblock&lt;BR /&gt;test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I am new to OpenVMS, [...]&lt;BR /&gt;&lt;BR /&gt;How much don't you know?  (It's hard to be&lt;BR /&gt;helpful with no knowledge of the audience.)&lt;BR /&gt;&lt;BR /&gt;It appears that DISKBLOCK is not expecting&lt;BR /&gt;options on its command line.  It reads them&lt;BR /&gt;from the user at SYS$INPUT (or SYS$COMMAND,&lt;BR /&gt;depending).&lt;BR /&gt;&lt;BR /&gt;Of course, I don't use the program, so I'm&lt;BR /&gt;just guessing.</description>
      <pubDate>Thu, 03 May 2007 20:04:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044395#M24355</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-05-03T20:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044396#M24356</link>
      <description>I just installed the program and indeed it does not seem to be ready for a one liner.&lt;BR /&gt;This appears to make sense as according to its help you need to 'select' a device first and such.&lt;BR /&gt;&lt;BR /&gt;So here is the general, untested, approach&lt;BR /&gt;&lt;BR /&gt;$close/nolog x&lt;BR /&gt;$disks = "x:,y:,z:"&lt;BR /&gt;$i = 0&lt;BR /&gt;$loop:&lt;BR /&gt;$disk = f$element(i,",",disks)&lt;BR /&gt;$if disk.eqs."" then goto done:&lt;BR /&gt;$i = i + 1&lt;BR /&gt;$open/write x disk_'i'.tmp&lt;BR /&gt;$write x "select " + disk&lt;BR /&gt;$write x "test ..."&lt;BR /&gt;$close x&lt;BR /&gt;$spawn /nowait/inpu=disk_'i'.tmp/out=disk_'i'.log run diskblock&lt;BR /&gt;$goto loop&lt;BR /&gt;$done:&lt;BR /&gt;$! Figure out to wait for all to complete...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Actually the waiting is slightly tricky.&lt;BR /&gt;&lt;BR /&gt;So it would be better to SUBMIT instead of spawn  and then use SYNC &lt;BR /&gt;&lt;BR /&gt;Or... you can just run one at a time&lt;BR /&gt;with a similar loop:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$close/nolog x&lt;BR /&gt;$disks = "x:,y:,z:"&lt;BR /&gt;$i = 0&lt;BR /&gt;$loop:&lt;BR /&gt;$disk = f$element(i,",",disks)&lt;BR /&gt;$if disk.eqs."" then goto done:&lt;BR /&gt;$i = i + 1&lt;BR /&gt;$open/write x disk_'i'.tmp&lt;BR /&gt;$write x "select " + disk&lt;BR /&gt;$write x "test ..."&lt;BR /&gt;$close x&lt;BR /&gt;$define/user sys$input disk_'i'.tmp&lt;BR /&gt;$define/user sys$output disk_'i'.log&lt;BR /&gt;$run diskblock&lt;BR /&gt;$goto loop&lt;BR /&gt;$done:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2007 20:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044396#M24356</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-05-03T20:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044397#M24357</link>
      <description>Thanks Hein van. I have tried the sequential one, and after little modificaiton, it works fine. &lt;BR /&gt;</description>
      <pubDate>Mon, 07 May 2007 16:27:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044397#M24357</guid>
      <dc:creator>andy hua</dc:creator>
      <dc:date>2007-05-07T16:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044398#M24358</link>
      <description>If you still want a one-liner, try this (I don't have diskblock installed, so I can't test it with it, but use this syntax with many other programs, esp. VMSmail):&lt;BR /&gt;&lt;BR /&gt;$ test :== "pipe write sys$output ""test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare"" | diskblock"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 May 2007 13:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044398#M24358</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2007-05-09T13:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to integrate diskblock command into a script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044399#M24359</link>
      <description>Problem solved</description>
      <pubDate>Thu, 17 May 2007 00:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-integrate-diskblock-command-into-a-script/m-p/5044399#M24359</guid>
      <dc:creator>andy hua</dc:creator>
      <dc:date>2007-05-17T00:46:33Z</dc:date>
    </item>
  </channel>
</rss>

