LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hardware configuration (https://www.linuxquestions.org/questions/linux-newbie-8/hardware-configuration-730053/)

nithinh 06-02-2009 01:32 AM

Hardware configuration
 
Hello,
I'm working on a script that tries to find out all the information regarding the parameters of the system. I'm working from a red hat enterprise edition linux but would like the script to work in most linux distros.
Please help me with any command you can find in this regard.
I have already used /proc/cpuinfo , meminfo , dmidecode , top , hdparm , fdisk, smartctl , systool
Thanks for the time

Nithin

{BBI}Nexus{BBI} 06-02-2009 01:43 AM

lspci and lsusb

nithinh 06-02-2009 05:58 AM

sorry didn't mention
used that as well

pixellany 06-02-2009 06:10 AM

If you have already tried all those things, then tell us what additional functionality you need.

onebuck 06-02-2009 08:26 AM

Hi,

What have you attempted to date? Do you have a sample so we can assist?

What about 'lshw'? The 'lshw' package is not always available but can be installed.

nithinh 06-03-2009 12:40 AM

I need to find out about lvm parameters,filesytem,kernel and tape drives. ALso plug and play devices, printer ,monitor,camera etc.
Commands I have used
dmidecode
lspci
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/interrupts
cat /proc/IOports
cat /proc/bus/ usb,input
lsusb
systool
hdparm
fdisk
smartctl
lvm pvs
df -aTh
mount -l
cat /etc/fstab
sysctl -a
top

Are there more?
I'm doin this so as to get familiar with hardware devices in various machines
So I don't want to spend time installing lshw in all of them
Thanks again.....

farslayer 06-03-2009 07:18 AM

lshw does an awesome job of getting the majority of hardware info. it's my tool of choice for that task as well. Takes less time to install lshw than to run all those separate commands imho.

lshal, hwinfo, report-hw are a couple other tools you missed.


All times are GMT -5. The time now is 10:02 PM.