Operating System - Linux
1823058 Members
3183 Online
109645 Solutions
New Discussion юеВ

Re: ioscan lookalike for Linux

 
SOLVED
Go to solution
Bernhard Mueller
Honored Contributor

ioscan lookalike for Linux

Hello,

as an HP-UX man I would like to know, if there is something similar to ioscan in any Linux distri.
Or perhaps at least something like prtdiag under Solaris...

Regards,
Bernhard

11 REPLIES 11
Tom Ward_1
Honored Contributor

Re: ioscan lookalike for Linux

A check of google found
/sbin/lspci -v

It's not bad but it doesn't show disks. It a bit like Solaris prtdiag.
Martin P.J. Zinser
Honored Contributor

Re: ioscan lookalike for Linux

Hello Bernhard,

are you thinking about something like this:

zinser@bibo:~> /sbin/lspci -v

00:00.0 Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 05)
Flags: bus master, medium devsel, latency 0
Memory at f8000000 (32-bit, prefetchable) [size=64M]
Capabilities:

00:01.0 PCI bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia AGP] (prog-i)
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: f4100000-f57fffff

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 2)
Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master)
Flags: bus master, medium devsel, latency 64
I/O ports at 1460 [size=16]
Capabilities:

00:07.2 USB Controller: VIA Technologies, Inc. USB (rev 10) (prog-if 00 [UHCI])
Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
Flags: medium devsel, IRQ 10
I/O ports at 1440 [size=32]
Capabilities:


[...]

Greetings, Martin
Huc_1
Honored Contributor

Re: ioscan lookalike for Linux

Not that I know, but

Under the /proc directory you will find all sort of information about loaded device and much more try

cat /proc/scsi/scsi
cat /proc/iomem
cat /proc/irq

etc..

Just be cautious about writing in /proc specialy if you are priviledged.

J-P
Smile I will feel the difference
Bernhard Mueller
Honored Contributor

Re: ioscan lookalike for Linux

Thanks for the responses so far.

Actually, I was more looking for something to find out whether or not the machine can see and use devices such as LUNs on a dis array when I connect it to a fibre channel switch and put the WWN of its FC adapter into a storage zone.

Regards,
Bernhard
Huc_1
Honored Contributor

Re: ioscan lookalike for Linux

Try

#cdrecord -scanbus

J-P
Smile I will feel the difference
Paul Cross_1
Respected Contributor

Re: ioscan lookalike for Linux

here is a cut and paste from the UNIX rosetta stone...

dmesg (if you're lucky)
/proc/*
lspci
(SuSE) hwinfo
James A. Donovan
Honored Contributor

Re: ioscan lookalike for Linux

What LUN's your particular HBA sees will be recorded under /proc/scsi//X

where X is some number...

e.g. my QLogic SCSI HBA sees 5 LUN's on my EMC frame.

$ cat /proc/scsi/qla2300/2
.
.
.
SCSI LUN Information:
(Id:Lun)
( 0: 0): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:81,
( 0: 1): Total reqs 14306183, Pending reqs 0, flags 0x0, 0:0:81,
( 0: 2): Total reqs 25, Pending reqs 0, flags 0x0, 0:0:81,
( 0:240): Total reqs 146, Pending reqs 0, flags 0x0, 0:0:81,
( 0:241): Total reqs 80, Pending reqs 0, flags 0x0, 0:0:81,

Remember, wherever you go, there you are...
Karthik S S
Honored Contributor

Re: ioscan lookalike for Linux

cdrecord --scanbus

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Paul Cross_1
Respected Contributor
Solution

Re: ioscan lookalike for Linux

I just checked out hwscan and hwinfo under suse. Very very useful. I haven't tried it under any other distro though. I just thought I'd add in in case you were looking at using SuSE.
Bernhard Mueller
Honored Contributor

Re: ioscan lookalike for Linux

hwinfo & hwscan seem indeed SUSE specific but the most useful tools.

Regards,
Bernhard
Thomas_18
New Member

Re: ioscan lookalike for Linux

you may try :
#lshw
for general hardware purpose
#scsiadd
For LUN scanning

Both are on Debian or a simple google search.