LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-14-2007, 07:21 AM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Finding manufacturer of machine/component


Hi there, I am currently trying to find a way of telling what machine is running. I have tried lspci and dmesg but these dont give me anything to identify the machine.

I need to do this to create a script to install the right software depending on whether the server/machine it is being run on is a Dell or not.

Does anyone have any suggestions on how I can go about this?

Any help would be greatly appreciated.
 
Old 08-14-2007, 08:00 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I don't believe there is a common way. lspci and dmesg offer quite much information from which you can deduce the thing used, but in the end they mainly tell you the chipsets and such, and don't know about packagers (a lot others than just Dell use chipsets or hardware that Dell also uses, so knowing the devices isn't knowing the packager -- but maybe you mean here just the single pieces of hardware, their chipsets etc.)

/proc offers some knowledge too, as a "look-in-the-kernel" hole, but not sure if it's as informative as you want. One method is to collect information from many places (dmesg, lspci, ...) and then programmatically compare that information against some known values and try to figure out if a certain piece of hardware is something or something else.
 
Old 08-14-2007, 10:31 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Maverick1182 View Post
Hi there, I am currently trying to find a way of telling what machine is running. I have tried lspci and dmesg but these dont give me anything to identify the machine.

I need to do this to create a script to install the right software depending on whether the server/machine it is being run on is a Dell or not.

Does anyone have any suggestions on how I can go about this?

Any help would be greatly appreciated.
You might want to see if lshw will work, if Dell puts their name in the Vendor sting on the motherboard then you should be good to go.
 
Old 08-14-2007, 10:40 AM   #4
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
Hi there, I found a solution from someone which seems to work... I thought I would share it with the rest of the community incase it helps anyone else: The solution was to use dmidecode to find the right piece of information eg.

dmidecode | grep "Product Name:" | grep -c "PowerEdge"

Will return "1" if its is a Poweredge. The wonders of linux

Thanks for your help anyway.
 
Old 08-14-2007, 01:23 PM   #5
bijit1709
Member
 
Registered: Oct 2006
Location: Costa Rica, Escazu
Distribution: Slackware 12.0 (2.6.21.5)
Posts: 67

Rep: Reputation: 15
Why don't you try:

Code:
uname -a
 
  


Reply



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
Manufacturer supported drovers? iAlta Linux - Wireless Networking 14 03-12-2007 04:01 PM
memory manufacturer command hcclnoodles Solaris / OpenSolaris 4 10-19-2006 02:52 AM
USB Controller Manufacturer arunka Programming 0 06-13-2006 12:47 AM
Need Help Finding Java Virtual Machine! pmorkert Linux - Newbie 0 07-29-2003 09:19 PM
Retrieving machine manufacturer ted Linux - General 1 01-10-2001 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:13 PM.

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