CodingExperts
asked on
Hardware Inventory Collection on Linux
Hello Experts.
I want to write a program preferably in C using which I can query various Hardware infrastructure present on the machine where Linux is installed, say how much ram does the machine has, processor speed, no of hard disks etc.
How should I go about doing this.
Thanks for any help
CE
I want to write a program preferably in C using which I can query various Hardware infrastructure present on the machine where Linux is installed, say how much ram does the machine has, processor speed, no of hard disks etc.
How should I go about doing this.
Thanks for any help
CE
Not sure if this will help you as I'm not a programmer. To get memory info, the "free" command will give you information on memory and swap. For more details, run "cat /proc/meminfo". If you run "cat /proc/cpuinfo" that will provide info on the cpu. In the file "/etc/sysconfig/hwconf", all hardware that is detected, is listed. Hope that helps.
ASKER
How can I find all the information of all the services running. I mean all .so processes running....
CodingExpert
CodingExpert
Not sure about .so processes. I use "ps -elf" to show all running processes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.