Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-02-2009, 01:32 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Hardware configuration

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

Old 06-02-2009, 01:43 AM   #2
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
lspci and lsusb
Old 06-02-2009, 05:58 AM   #3
LQ Newbie
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
sorry didn't mention
used that as well
Old 06-02-2009, 06:10 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
If you have already tried all those things, then tell us what additional functionality you need.
Old 06-02-2009, 08:26 AM   #5
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,622
Blog Entries: 35

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803

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.
Old 06-03-2009, 12:40 AM   #6
LQ Newbie
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/interrupts
cat /proc/IOports
cat /proc/bus/ usb,input
lvm pvs
df -aTh
mount -l
cat /etc/fstab
sysctl -a

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.....
Old 06-03-2009, 07:18 AM   #7
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to consult the hardware configuration thelonius Debian 6 06-23-2007 06:32 PM
Hardware Configuration jstrope Fedora - Installation 2 08-25-2006 12:01 PM
Hardware configuration alint7 Linux - Hardware 0 02-11-2005 07:07 PM
hardware configuration bong.mau Linux - Hardware 0 04-22-2004 11:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration