sysinfo.py :: display succinct...
...yet detailed system information
sysinfo.py prints detailed system information to the console. Different reports can be generated depending on the modules choosen at run time. Current modules include CPU info, memory info, kernel info, hardware info, network info, partition/filesystem info, user/group info, and installed package info.
Usage is fairly simple. For a full report simply run the script. To choose individual modules, the command line options are:
- '-c' or '--cpu': print CPU information
- '-m' or '--memory': print memory info
- '-k' or '--kernel': print kernel information
- '-h' or '--hardware': print hardware information
- '-n' or '--network': print networking information
- '-f' or '--filesystem': print filesystem information
- '-u' or '--user': print user/group information
- '-p' or '--package': print installed package information
- '-a' or '--help': print usage information
I still need some help to finish this script and make it polished. Here is a short list of things you can help me with:
- HDD size: I would like to print the size of hard disks, but /proc/ide/* only provides the number of sectors. What is the bytes/sector? Is this always the same, or does it vary by HDD?
- SATA: I don't currently have any SATA hardware, so I have no idea how to report it. Feel free to send me output, and please do tell where it came from.
- Dual CPUs: I need /proc/cpuinfo output from dual-cpu x86, amd64, ppc, and any other systems.
- RAID: I don't have any RAID systems, so I don't know how to report it.
- Installed packages: The script only reports packages for Gentoo, Arch Linux, and RPM based distros. I need to know how to report all installed packages for Debian (dpkg) based systems. Slackware? Others?
View online sysinfo.py source code.
Download the compressed source.
stats
It is
Sunday May 18, 2008 1:48 am
This page served 1517 times
This page last modified: April 14, 2008 11:28 am
Your IP address is: 38.103.63.17
You are browsing using: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
You are browsing from: United States.
badcomputer.org's uptime: 01:48:22 up 24 days, 02:30, 0 users, load average: 0.00, 0.00, 0.00
local
home | unix stuff | dir2ogg | sneetchalizer | wmainfo | q&d guide to permissions | q&d guide to tar and gzip | code | MS rant | browser shootout | linux & iAudio X5 | photos | music | programming poetry | sieve of Eratosthenes | plea | rain | suffer | archive | about | recipes | compaqr3000 | sitemap
search
credits
This page, and all pages on this site were created and are maintained by Darren Kirby using valid XHTML 1.0 and CSS, and are ©copyright 2002 - 2008. The Penguin image was created by Tukka, and is used by permission. Inspiration for the look of this site was provided by Eric A. Meyer's CSS gallery. This website runs on Gentoo Linux. It is served by Apache. PHP and MySQL hold together the backend.