ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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 !!!!!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.