<?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 Show Dev DSA/rebuild in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780874#M76026</link>
    <description>Do we have a lexical function (F$GETDVI) for the following yet ? Running VMS 7.3-2.&lt;BR /&gt;Maybe a hidden one ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;VLCPR1 $show dev dsa/reb&lt;BR /&gt;&lt;BR /&gt;Device Name             Rebuild needed?&lt;BR /&gt;&lt;BR /&gt;DSA0:                   No&lt;BR /&gt;DSA2:                   No&lt;BR /&gt;DSA3:                   No&lt;BR /&gt;DSA4:                   No&lt;BR /&gt;DSA5:                   No&lt;BR /&gt;DSA6:                   No&lt;BR /&gt;DSA7:                   No&lt;BR /&gt;DSA999:                 No&lt;BR /&gt;VLCPR1 $</description>
    <pubDate>Tue, 02 May 2006 09:37:37 GMT</pubDate>
    <dc:creator>VMS Support</dc:creator>
    <dc:date>2006-05-02T09:37:37Z</dc:date>
    <item>
      <title>Show Dev DSA/rebuild</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780874#M76026</link>
      <description>Do we have a lexical function (F$GETDVI) for the following yet ? Running VMS 7.3-2.&lt;BR /&gt;Maybe a hidden one ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;VLCPR1 $show dev dsa/reb&lt;BR /&gt;&lt;BR /&gt;Device Name             Rebuild needed?&lt;BR /&gt;&lt;BR /&gt;DSA0:                   No&lt;BR /&gt;DSA2:                   No&lt;BR /&gt;DSA3:                   No&lt;BR /&gt;DSA4:                   No&lt;BR /&gt;DSA5:                   No&lt;BR /&gt;DSA6:                   No&lt;BR /&gt;DSA7:                   No&lt;BR /&gt;DSA999:                 No&lt;BR /&gt;VLCPR1 $</description>
      <pubDate>Tue, 02 May 2006 09:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780874#M76026</guid>
      <dc:creator>VMS Support</dc:creator>
      <dc:date>2006-05-02T09:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dev DSA/rebuild</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780875#M76027</link>
      <description>We use the following code snipped since eons:&lt;BR /&gt;$If F$Getdvi("''DISK'","SWL") Then $ Exit 1&lt;BR /&gt;$Open/Read/Error=CheckRebuild$99 'InLun &lt;BR /&gt;- 'Disk':[000000]Bitmap.Sys&lt;BR /&gt;$Read/Error=CheckRebuild$99 'InLun Scb&lt;BR /&gt;$Close/Error=CheckRebuild$99/NoLog 'InLun'&lt;BR /&gt;$Bits=F$cvui(28*8+1,2,scb)&lt;BR /&gt;$If Bits .Ne. 0&lt;BR /&gt;$ then rebuild isneeded...&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Tue, 02 May 2006 09:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780875#M76027</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-05-02T09:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dev DSA/rebuild</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780876#M76028</link>
      <description>It is likely that there will never be a $GETDVI item code to determine whether or not a rebuild of the volume is needed.&lt;BR /&gt;&lt;BR /&gt;In order to determine that, we need to do I/O to the device, and $GETDVI cannot do any I/O.&lt;BR /&gt;&lt;BR /&gt;Sorry!&lt;BR /&gt;&lt;BR /&gt;                  -- Rob</description>
      <pubDate>Tue, 02 May 2006 10:31:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780876#M76028</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2006-05-02T10:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show Dev DSA/rebuild</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780877#M76029</link>
      <description>I have actually write a script for this. And rebuild the disk if the the flag is yes.&lt;BR /&gt;&lt;BR /&gt;It might make sense to you.&lt;BR /&gt;&lt;BR /&gt;$ set verify&lt;BR /&gt;$ set noon&lt;BR /&gt;$ on error then continue&lt;BR /&gt;$ show time&lt;BR /&gt;$ set def sys$login:&lt;BR /&gt;$ show device d/rebuild_status/out=d.tmp&lt;BR /&gt;$ open/read file d.tmp&lt;BR /&gt;$ readline:&lt;BR /&gt;$   read/end_of_file=EXIT_LOOP file line&lt;BR /&gt;$   voldisk == f$elememt(0," ",line)&lt;BR /&gt;$   bldflag == f$elememt(18," ",line)&lt;BR /&gt;$   if bldflag .eqs. "Yes" then goto rebld_disk&lt;BR /&gt;$   goto readline&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$ rebld_disk:      &lt;BR /&gt;$   set volume/rebuild 'voldisk&lt;BR /&gt;$   write sys$output "Disk Rebuild - ", voldisk &lt;BR /&gt;$   goto readline&lt;BR /&gt;$!&lt;BR /&gt;$ EXIT_LOOP:&lt;BR /&gt;$   close file&lt;BR /&gt;$   show time&lt;BR /&gt;$!&lt;BR /&gt;$ delete/log/noconf sys$login:d.tmp;*&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 May 2006 04:48:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/show-dev-dsa-rebuild/m-p/3780877#M76029</guid>
      <dc:creator>IFX_1</dc:creator>
      <dc:date>2006-05-03T04:48:35Z</dc:date>
    </item>
  </channel>
</rss>

