ADSM-L

Re: Some questions.

1996-05-22 22:12:55
Subject: Re: Some questions.
From: Paul Zarnowski <VKM AT CORNELLC.CIT.CORNELL DOT EDU>
Date: Wed, 22 May 1996 22:12:55 EDT
On Wed, 22 May 1996 at 15:20:53, Chet Martel commented:

>The only problem I have is that when I reboot the system with the library
>the library manager (lb0) and the tape drive (mt0) come up defined instead
>of available.  What does come up as available is smcO and rmt0 with the
>same scsi address as the 7331.  Reconfiguring the devices with SMIT takes
>care of the problem.

We are also seeing this on our 8mm and DLT drives and robots, at the 2.1.0.7
level.  It was annoying, so I wrote a little script that will automatically
configure such devices, making them Available.

..Paul

PS:  I'm sure someone will ask, so here is the exec.  All I ask is that you
     not blame me when it trashes your system!  It's a Uni-Rexx script, so
     if you don't have a Rexx interpreter, you won't be able to use it as is.
     However, it shouldn't be too hard to do something like this in a shell
     script.
---
 #!/usr/local/bin/rxx
 #!/usr/local/bin/rxx

 /*
    adsm.device.configure - configure ADSM devices that don't come up as
                            available, just defined.
 */

 '/etc/lsdev -C -s scsi -S d'
 q = queued()
 xrc = popen('/etc/lsdev -C -s scsi -S d')
 do while (queued() > q)
   parse pull dev state .
   select
     when (state <> "Defined") then iterate
     when (left(dev,2) = "lb") then nop
     when (left(dev,2) = "mt") then nop
     otherwise iterate
     end
   '/etc/mkdev -l' dev
   end
 '/etc/lsdev -C -s scsi | /bin/sort -k3'
---
=========================================================================
<Prev in Thread] Current Thread [Next in Thread>