[kanchilug] 1D1C

  • From: Dhana Sekar <tkdhanasekar@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, kanchilug@xxxxxxxxxxxxx
  • Date: Wed, 19 Jun 2013 18:51:26 +0530

command: sar

purpose: Collects, reports, or saves system activity information.

1. To report system unit activity, enter:
    #sar
2. To report current tty activity for each 2 seconds for the next 40
seconds,
    #sar -y -r 2 20
3. To watch system unit for 10 minutes and sort data, enter:
    #sar -o temp 60 10
4. To report processor activity for the first two processors, enter:
    #sar -u -P 0,1
5. To report message, semaphore, and processor activity for all processors
    and system-wide
    #sar -mu -P ALL
6. To report all activities with multiple sets of headers for every 2
seconds
    for the next 40 seconds
    #sar -MA 2 20
7. To report system call, kernel process, and paging activities with
separate
    headers for each of the three lines of data at each iteration for every
2
    seconds for the next 40 seconds,
    #sar -Mckr 2 20


file: /usr/sbin/sar/   contains the sar command
      /bin/sar/           Indicates the symbolic link to the sar command

for more info: #man sar

regards,
dhanasekar

Other related posts: