home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] How to find extended system information?

  • Subject: Re: [OCLUG-Tech] How to find extended system information?
  • From: "Dave O'Neill" <dmo [ at ] dmo [ dot ] ca>
  • Date: Thu, 09 Apr 2009 12:59:12 -0400
John C Nash wrote:
> For some benchmarking tests I want to do, I'd like to be able to use
> command line tools to get the following information (not only for Linux
> -- my tests will be on Mac and PC too, but that will come later):
> 
> - OS version, by which I mean not just the "uname -a" stuff, but also
> whether I'm running Ubuntu 8.04 or Debian Lenny.
> - Processor (uname seems to be a bit sketchy on this)
> - RAM installed (Is free good enough? It needs interpretation. I'd like
> RAM available to the application I'm running.)
> - possibly other stuff

I think you can get most of this information with Perl, using the
Sys::Info module (http://search.cpan.org/perldoc?Sys::Info).  I haven't
used it myself, but based on the docs it should support most UNIX and
Windows flavours.

Cheers,
Dave