System Administration

Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

 
SOLVED
Go to solution
Scott Donaldson
Advisor

Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

Hi,

I am wondering if Linux (Red Hat 6.x/7.x) offers an equivalent tool to HP-UX's ioscan or diskinfo.

I want to be able to determine the manufacturer and model of online SCSI disks.

TIA,

Scott.
6 REPLIES 6
Marco_5
New Member

Re: Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

Of course there is, iostat command reports CPU statistics and i/o statitstics for tty devices and disks.

iostat

Re: Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

Scott,

Try iostat command, this reports CPU statistics and i/o statitstics for tty devices and disk.

(Same Marco but you can give me points here)
Jeroen_D
Regular Advisor

Re: Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

Hi,

the easiest way to check for the hardware is in the /proc directory

Do a cat /proc/pci to know what the PCI-devices are. You can do the same thing to know interrupts in use, etc.. just check the contents of the proc directory.
It is a virtual directory containing info about your hardware and it takes no space on your harddrive.

Hope this helps,
Jeroen.
Markus Oppel
Occasional Advisor
Solution

Re: Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

for scsi disks it's best
to look at the proc filesystem:
cat /proc/scsi/scsi gives
info about your scsi devices.

for ide disks you can use
hdparm with -i:
/sbin/hdparm -i /dev/hda

Markus
Markus Oppel
University of Vienna
Tim Malnati
Honored Contributor

Re: Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

The /proc file system is usually the best source of everything running on your machine and most of the other unix based utilities taht have a similar function use it directly. Most of the files under the file system will allow you directly output the contents with the cat, more or less commands.
Tony Constantine_1
Regular Advisor

Re: Is there a Linux equiv. of ioscan or diskinfo (as per HP-UX)

Hi Scott

You can try this link, its give you different operating systems and their equivalent commands

http://home.earthlink.net/~bhami/rosetta.html