[Orca-users] status.pl by JDK [was Re: Orca License]

Bruce Shaw Bruce.Shaw at gov.ab.ca
Tue Oct 7 08:26:30 PDT 2003


>Just something for folks to think on in regards to Solaris and what
statistics SE collects - the kstat command (which I think is nothing more
then a perl script) exists that displays a LARGE amount of data by grabbing
it from the - guess what ? - the /dev/kstat device.  Basically what SE does.

>So most if not all of the statistics that SE collects for Orca are there
available to be stripped from the kstat output.  It would just take some
coding to make the stored output look like how SE does it.

>I'm pretty sure the kstat command requires the Sun provided Perl package.
The Sun Perl provides several modules that this script requires e.g. like a
module for reading stuff from the kstat device.  Considering SE is a
scripting language and the Sun provided Perl has a kstat module - most if
not all of what SE does can now be "scripted" using Perl.

You're close.  Sun implements kstat as a series of libraries available to C
(and hence to Perl).  The Perl kstat program is merely a convenience.  SE
uses the C libraries.  You can examine the kstat output by typing "netstat
-k".


This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.




More information about the Orca-users mailing list