Messages in this thread | | | Date | Thu, 19 Mar 1998 10:47:22 +0100 | From | Kurt Garloff <> | Subject | Re: re-detect SCSi bus? Skript |
| |
On Wed, Mar 18, 1998 at 05:14:17PM -0600, shalon@interlock.dfw.ibm.com wrote: > Hmm. I'm not *that* familiar with SCSI, but I would assume that that > add-single-device would fail if there was no device attached, yes? How > hard would it be to write a script that simply checked to see how many > hosts you had, how many channels you had, and what devices were > already know. Then it would simply run down the list of "Host Channel > Id" skipping any which were already known. You also could give the > script an Id to check all LUNs on. > > This is of course assuming that there are no bad side effects to > trying to add a nonexistant SCSI device; I'll take a look when I get > home tonight and have source.
I wrote a little skript. Have a look at it ... It takes some options.
> On a similar note, is there a 'remove-single-device command'? How hard > would it be to add?
There is. Exactly with the name you guessed. Linux is that easy sometimes.
-- Kurt Garloff, Dortmund <K.Garloff@ping.de> PGP key on http://student.physik.uni-dortmund.de/homepages/garloff [unhandled content-type:application/x-sh] | |