LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   command to find hardware platform? (https://www.linuxquestions.org/questions/linux-hardware-18/command-to-find-hardware-platform-488700/)

andrew.deackes 10-02-2006 08:17 AM

command to find hardware platform?
 
Hi,

I have ssh access to a server and would like to know what hardware it is running on. Is there a command which will show this? Something like prtdiag in solaris which would show the hardware platform, processor speed, memory etc? The server is running 2.4.18-10smp.

I'm sure this is a simple question so I apologise for my ignorance. :)

Andy

terracotta 10-02-2006 11:14 AM

I should think 'lshw' would give you the information you need. A word of warning though. From my limited experience lshw may not be default installed on all distros. I got a 'command not found' in Fedora Core 5, although to be honest that may have been down to me - I may have done a 'su' rather than a 'su -'. I can't remember. It does work in Ubuntu and I've just checked in PCLinuxOS. Fine there too - as long as you 'su -' and not 'su', :)

farslayer 10-02-2006 11:35 AM

how about one of the following

cat /proc/cpuinfo

Code:

@itg-debian:~/zcode$ cat /proc/cpuinfo
processor      : 0
vendor_id      : GenuineIntel
cpu family      : 6
model          : 8
model name      : Pentium III (Coppermine)
stepping        : 10
cpu MHz        : 930.391
cache size      : 256 KB
cpuid level    : 2
.
.
.

If you can't tell the architecture from that command something is wrong :)

cat /proc/meminfo

take a look at the other entries in /proc that you can query.

lspci quick list of hardware on the system bus..




That lshw is pretty slick once it's installed..
I just installed it to take a look.
thanks for the heads up on that one.

terracotta 10-02-2006 11:49 AM

About 'lshw' - got me thinking. I'm in Fedora now. Yes, it's installed in Fedora all right. You have to 'su -' of course. Silly me. :rolleyes:

Crito 10-02-2006 03:26 PM

Doesn't come with FC5. Found it in Dries repo though. I use Livna with yum and Dries conflicts, so had to download from http://apt.sw.be/dries/packages/lshw/ and install with rpm -Uvh lshw*

terracotta 10-02-2006 05:30 PM

Quote:

Originally Posted by Crito
Doesn't come with FC5. Found it in Dries repo though. I use Livna with yum and Dries conflicts, so had to download from http://apt.sw.be/dries/packages/lshw/ and install with rpm -Uvh lshw*

You're quite right. I was using my desktop for my last post and I must have installed lshw on it some time ago and completely forgotten that I had. Just checked my laptop and - sure enough - 'command not found'.

But by using yumex I found something else, also in Dries - lshw-gui, a Gtk+ front-end for lshw (as it proclaims itself). I've installed them both on my laptop now and lshw-gui is... OK-ish. I can't find a menu entry so I had to run 'lshw-gui' from a terminal. It's a pretty app window but... well, see for yourself. :)

I only enable Livna for the nvidia driver updates to avoid those repository conflicts.


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