Subject: Re: Listing SCSI Devices
To: Gary Parker <garyp@witewulf.ath.cx>
From: Andy Ruhl <acruhl@gmail.com>
List: netbsd-users
Date: 08/26/2005 09:06:15
On 8/26/05, Gary Parker <garyp@witewulf.ath.cx> wrote:
> Afternoon all,
>         is there a command that will list all the devices connected to my=
 scsi
> bus(ses) in the same way that they are at boot time?
>=20
> i.e.
>=20
> sd4 at scsibus1 target 8 lun 0: <IBM, DDRS-39130W, S97B> disk fixed
> sd4: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 secto=
rs
> sd4: sync (100.00ns offset 15), 16-bit (20.000MB/s) transfers, tagged
> queueing
>=20
> I need to know exactly what disks are in a remote machine that I can't
> reboot and whose dmesg is currently full of errors from the nic.

This is only for disks, but you might want to check this:

sysctl hw.disknames

Do you still have /var/run/dmesg.boot?

Andy