LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   System Manufacturer and System Model (https://www.linuxquestions.org/questions/programming-9/system-manufacturer-and-system-model-598269/)

yrret 11-09-2007 03:16 AM

System Manufacturer and System Model
 
Hi,
I'm developing a Software to collected some HW informatiom from Linux Server. I need to collect information about System Manufacturer and System Model, I' m looking for a command or a file where I'can read this information.

Sorry for my bad english.

matthewg42 11-09-2007 03:22 AM

Check out the lshw program.

keratos 11-09-2007 03:31 AM

Quote:

Originally Posted by matthewg42 (Post 2953012)
Check out the lshw program.

Concur!!


and obviously requires that you are logged on to the server !!

yrret 11-09-2007 05:41 AM

Thank's for reply.
I can't use lshw, I must use an utility that is install by default in more common distribution, or I must read this information from file system /proc but I don't know where.Can you help me?

keratos 11-09-2007 07:23 AM

Quote:

Originally Posted by yrret (Post 2953113)
Thank's for reply.
I can't use lshw, I must use an utility that is install by default in more common distribution, or I must read this information from file system /proc but I don't know where.Can you help me?

Install it then!

Or get the sysadmin to do it.

Better still, why not just ASK the sysadmin.

Is there some veiled attempt here to get round a sysadmin or something?? Just ask them what the spec is. If you cannot access these programs or ask the sysadmin, there's probably a reason for it !!!!!

yrret 11-09-2007 11:34 AM

I'm develop this tool for my university, and I must collect varios information from a Server Farm(linux).
I'm already collect a lot of data cpu,ram, kernel version...I read this data in /proc. I' m not to exepert in Linux and I don't know where find System Model and System Manufacturer.
I'can't install any software but if there is no way I can ask root Privileges.

matthewg42 11-10-2007 05:56 AM

If you have no root permissions, you won't be able to get this sort of information anyway. Much of it comes from the BIOS, and only root has permission to access it.

I have run lshw as root and as a non-root user. Here's the differences - i.e. things which root can see, but non-root cannot:
  • product name (e.g. Inspiron 8600)
  • vendor (e.g. Dell Computer Corporation)
  • serial (I assume some system serial number specific to the vendor)
  • capabilities (e.g. smbios-2.3 dmi-2.3)
  • mothereboard product ID & vendor
  • correct CPU clock speed and bus speed
  • CPU cache details
  • memory module information per bank
  • NIC speed
  • Block device info (fixed disks and optical drives)
  • Many extra device capability options in capability lists

As you can see there is a lot of stuff which only root can see about the hardware. The regular users can access it via the /dev/ and other interfaces, but only root can look at a lot of the device meta-data.

unixfoo 11-12-2007 08:48 AM

If you have root permission , you can use dmidecode . Chk out http://unixfoo.blogspot.com/2007/10/dmidecode.html


All times are GMT -5. The time now is 05:03 PM.