djberg96
1/18/2005 10:28:00 PM
Hi all,
I'm happy to announce the release of solaris-kstat 0.2.0. This is a
simple wrapper for the kstat library. This release allows you to pass
values to the constructor in order to narrow your results. You can now
also get results for nfs/mntinfo as well.
# Quick synopsis
require "solaris/kstat"
require "pp"
include Solaris
k = Kstat.new("cpu_info",0,"cpu_info0")
pp k
{"cpu_info"=>
{0=>
{"cpu_info0"=>
{"chip_id"=>0,
"fpu_type"=>"sparcv9",
"device_ID"=>0,
"cpu_type"=>"sparcv9",
"implementation"=>"Unknown",
"clock_MHz"=>502,
"state_begin"=>1105974702,
"state"=>"on-line"}}}}
Available on the RAA. Enjoy!
Dan