Thursday, June 07, 2007

Display Kernel Statistics with kstat

The kstat command is a handy command for providing kernel statistics to users. For each matching statistic, it reports the instance, module, name fields and actual values. Here are some examples of its use.

#kstat | more

#kstat -p | grep cpu
#kstat -m cpu_info
#kstat -n cpu_stat0
#kstat -s dfree

Do a listing
#kstat -l | more

No comments: