Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2002 10:04:18 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: Using FreeBSD to monitor SCSI traffic
Message-ID:  <20020812100418.A43928@panzer.kdm.org>
In-Reply-To: <20020812125306.A46653@curry.mchp.siemens.de>; from andre.albsmeier@mchp.siemens.de on Mon, Aug 12, 2002 at 12:53:06PM %2B0200
References:  <20020812125306.A46653@curry.mchp.siemens.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 12, 2002 at 12:53:06 +0200, Andre Albsmeier wrote:
> I have a win32 program to update the firmware on a specific SCSI
> device. I assume, it uses the "Write Buffer 0x3B" command but I
> don't know the exact parameters. I want to include this device
> in my SCSI firmware update tool which runs under FreeBSD and
> already supports some devices.
> 
> Maybe one of the SCSI specialists (Justin, Ken, ...) has an idea
> if the following scenario could work:
> 
> I use a standard winblows box with an 29160 Controller to update
> the device in question. To the SCSI same cable I attach another
> machine running FreeBSD. Is it possible to make the FreeBSD box
> watch and report the traffic on the SCSI bus? Will there be
> any problems since I now have two initiators attached to the
> same bus? I assume, I have to use CAM_DEBUG in my kernel to 
> see anything at all...

I don't think you can really put a SCSI device in "promiscuous" mode, to
use the networking term.  Generally you've got one initiator and one target
for communication over the bus.

What you really want is a bus analyzer, but they're pretty expensive.
(Although you might be able to find a previous generation bus analyzer, say
an Ultra or Ultra2 analyzer, for not too much money.)

You could also do it with something like a passthrough disk emulator.
Basically, you run a target mode device on the SCSI bus in question, and
pass all SCSI requests out to the disk you're trying to update on another
SCSI bus.  When they go through the FreeBSD system, you can log whatever
you want.

I believe Nate Lawson <njl@FreeBSD.org> is working on the target mode code,
you might want to contact him and see if his code might be a starting point
for something like this.  (If you want to write code for it -- my guess is
that there isn't anything out there for FreeBSD that'll do what you want
out of the box.)

Ken
-- 
Kenneth Merry
ken@kdm.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020812100418.A43928>