Much of the same information (and even configurable access to the kstat
structures themselves) is available through the
libkstat library contains C-language functions available
to programs which need to access the kstat structure. The
pseudo-device is the driver for this access.
Prior to Solaris 10, the
netstat -k provided a listing of several kstat structures.
Starting with Solaris 8, the
/bin/kstat command has allowed
access to particular kstats. The rest of this page focuses on the
A particular statistic man be specified by 4-tuples of the following sort:
where each element may be either a shell glob or a Perl regular expression enclosed in '/' (forward-slash) characters. The
-s options may be used to match
a particular object (or glob of objects).
At the end of a
kstat command, numbers representing intervals
and count may be added.
lists kstat names but not values. For a given kernel module, the command
kstat -l -m module-name
lists all available kstat measurements for that module.