Re: [Discuss] Getting OS/HW details?

2012-11-05 Thread Ian Levesque
On Nov 2, 2012, at 1:09 PM, Scott Ehrlich wrote: If I wanted to write a script to obtain distro flavor (Ubuntu, CentOS, RH, Mint, BSD, Solaris, etc), major/minor version (5.3, 10.6, etc), hardware brand/make/model, at least for starters, what would be the best way to attack it? My approach

Re: [Discuss] Getting OS/HW details?

2012-11-04 Thread Derek Martin
On Sat, Nov 03, 2012 at 12:27:48PM -0400, Kurt Keville wrote: root@J1:~# uname -a Linux J1 3.0.0-9-generic #14-Ubuntu SMP Tue Aug 23 17:02:50 UTC 2011 i686athlon i386 GNU/Linux since it is Ubuntu and I have a date, I should be able to divine the distro... but 3.0.0-9-generic is unique

Re: [Discuss] Getting OS/HW details?

2012-11-04 Thread Bill Bogstad
On Sun, Nov 4, 2012 at 4:36 AM, Derek Martin inva...@pizzashack.org wrote: On Sat, Nov 03, 2012 at 12:27:48PM -0400, Kurt Keville wrote: root@J1:~# uname -a Linux J1 3.0.0-9-generic #14-Ubuntu SMP Tue Aug 23 17:02:50 UTC 2011 i686athlon i386 GNU/Linux since it is Ubuntu and I have a

Re: [Discuss] Getting OS/HW details?

2012-11-03 Thread Kurt Keville
It is the rare install indeed that won't be well-described by the command line calls you have identified... on the remote chance you don't have an /etc/issue you should be able to grep dmesg for some keyword like version ... and if lspci doesn't tell you the exact motherboard you have, you can

Re: [Discuss] Getting OS/HW details?

2012-11-02 Thread Bill Bogstad
On Fri, Nov 2, 2012 at 1:09 PM, Scott Ehrlich srehrl...@gmail.com wrote: If I wanted to write a script to obtain distro flavor (Ubuntu, CentOS, RH, Mint, BSD, Solaris, etc), major/minor version (5.3, 10.6, etc), hardware brand/make/model, at least for starters, what would be the best way to

Re: [Discuss] Getting OS/HW details?

2012-11-02 Thread Jerry Natowitz
I'd take a look at the perl script memconf and see how it works. Even though it was written for Solaris, it does a decent job on Linux. It does like to be run as root, however. http://www.4schmidts.com/unix.html There is a package lshw on Fedora (among others) you could look at the

Re: [Discuss] Getting OS/HW details?

2012-11-02 Thread Daniel Hagerty
Noah Friedman friedman aaat splode dawt com maintains a shell script that is basically GNU autoconf's hosttype detection logic, standalone. It doesn't need root, but in some obscure situations may require a C compiler. It is certainly thermonuclear overkill for your situation, but will