kstat

How can I use Solaris::Kstat on Solaris 5.10?

Hi, I am looking to find the SunOS system details using Kstat. I have found Solaris::Kstat module in CPAN but this only supports Solaris 2.5.1, 2.6 & 2.7. The Sun developer's site mentions a Sun::Solaris::Kstat which I have not found in CPAN. Can anyone please help me with the Perl scripting to find details from kstat on Solaris 5.10. ...

How do I make a hash with the output of kstat -p using Perl?

I am working so some stuffs where I need to get some information using kstat -p. So I am thinking to create a hash variable with all output of kstat -p. Sample output from kstat -p cpu_stat:0:cpu_stat0:user 18804249 To access values @{$kstat->{cpu_stat}{0}{cpu_stat0}}{qw(user)}; I have also looked at CPAN for any available m...