There is an interesting article by Rick Weisner on sun.com about the use of kstat and libkstat APIs to extract metrics from the Solaris OS. The alternative is a system() call to run a script or external program to extract these metrics, but for performance reasons, you should avoid it. Instead, you should use the appropriate APIs. Have a look at Rick's article and see how the use of kstat and libkstat can make your code faster, cleaner and better.
» View PDF: Using kstat From Within a Program in the Solaris OS
Extract metrics from Solaris with kstat and libkstat
Posted by : Dr. Root | 28 March, 2007 | Published in
Subscribe to:
Post Comments (Atom)
(0) Comments
Post a Comment