LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2007, 03:16 AM   #1
yrret
LQ Newbie
 
Registered: Nov 2007
Location: Italy
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
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.
 
Old 11-09-2007, 03:22 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Check out the lshw program.
 
Old 11-09-2007, 03:31 AM   #3
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
Lightbulb

Quote:
Originally Posted by matthewg42 View Post
Check out the lshw program.
Concur!!


and obviously requires that you are logged on to the server !!
 
Old 11-09-2007, 05:41 AM   #4
yrret
LQ Newbie
 
Registered: Nov 2007
Location: Italy
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 11-09-2007, 07:23 AM   #5
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
Quote:
Originally Posted by yrret View Post
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 !!!!!
 
Old 11-09-2007, 11:34 AM   #6
yrret
LQ Newbie
 
Registered: Nov 2007
Location: Italy
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 11-10-2007, 05:56 AM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
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.
 
Old 11-12-2007, 08:48 AM   #8
unixfoo
LQ Newbie
 
Registered: Nov 2007
Posts: 4

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


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
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 07:38 PM
KDE sound system doesn't play system notifications in SUSE with OSS driver mike1111 Linux - Software 0 07-17-2006 12:00 AM
LXer: Move an entire file system on a live Unix system LXer Syndicated Linux News 0 07-08-2006 05:33 PM
LXer: Auto Parts Manufacturer Selects Linux Networx System LXer Syndicated Linux News 0 06-05-2006 06:54 PM
Riva TNT2 Model 64 card not working well on my system. Jazzmantrp4 Linux - Hardware 5 01-16-2006 04:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:28 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