Solaris

To install Sar on your solaris box you need the following packages:

  • SUNWaccr System Accounting, (Root)
  • SUNWaccu System Accounting, (Usr)

To check if this packages are installed on your machine,issue the following command on you box:
root# pkginfo SUNWaccr SUNWaccu
system SUNWaccr System Accounting, (Root)
system SUNWaccu System Accounting, (Usr)
root#
you must see the two lines in bold.

Report CPU utilization (default)

-u : Reports CPU utilization (the default)

headers: runq-sz %runocc swpq-sz %swpocc

Report average queue length

-q : Reports average queue length while occupied,and percent of time occupied

headers: runq-sz %runocc swpq-sz %swpocc

Report buffer activity

-b : Reports buffer activity

headers: bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s

Report system swapping and switching

-w : Reports system swapping and switching activity

headers: swpin/s bswin/s swpot/s bswot/s pswch/s

Report system calls

-c : Reports system calls

headers: scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s

Report use of file access system routines

-a : Reports use of file access system routines

headers: iget/s namei/s dirbk/s

Report TTY device activity

-y : Reports TTY device activity

headers: rawch/s canch/s outch/s rcvin/s xmtin/s mdmin/s

Report message and semaphore activities

-m : Reports message and semaphore activities

headers: msg/s sema/s

Report activity for each block device

-d : Reports activity for each block device

headers: device %busy avque r+w/s blks/s avwait avserv

Report paging activities

-g : Reports paging activities

headers: pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf

Report paging activities

-p : Reports paging activities

headers: atch/s pgin/s ppgin/s pflt/s vflt/s slock/s

Report unused memory pages and disk blocks

-r : Reports unused memory pages and disk blocks

headers: freemem freeswap

Report kernel memory allocation (KMA) activities

-k : Reports kernel memory allocation (KMA) activities

headers: sml_mem alloc fail lg_mem alloc fail ovsz_alloc fail

Report status of process, i-node, file tables

Data Not graphed
sar arguement : -v
sar header: proc-sz ov inod-sz ov file-sz ov lock-sz