Results 1 to 11 of 11
  1. #1
    Join Date
    Sep 2008
    Location
    Toronto,Canada
    Posts
    655

    Unanswered: Watch cpu, disk and network ? how to ??

    Experts,

    I need to monitor cpu disk and network for few db2 V8.2 and db2 V9.1 servers on AIX 5.3.
    This has to be monitored for a week to capture peak hour stats.

    Can someone help me with any commands/scripts for this.

    Thanks

    DBFinder

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

  3. #3
    Join Date
    Sep 2008
    Location
    Toronto,Canada
    Posts
    655
    Thanks,

    I will try this.

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    There's another utility, sar, which may already be installed.

  5. #5
    Join Date
    Sep 2008
    Location
    Toronto,Canada
    Posts
    655
    Well, I do not have permission to sar.

    I can use nmon to log the info.

    Can some one help me narrow down the output for use : only I need disk, cpu, network and memory utilization metrics


    Thanks

  6. #6
    Join Date
    Aug 2008
    Location
    Toronto, Canada
    Posts
    2,367
    You can also use:

    memory/cpu/disk:
    vmstat -Itw 2 4
    iostat -DlT 2 4

    Change interval/count based on your needs.


    network:
    netstat

  7. #7
    Join Date
    Sep 2008
    Location
    Toronto,Canada
    Posts
    655
    Thanks Bella,

    I struggled with these two commands, was unable to figure out switches.
    I will try this @work and let you know.


    Regards

  8. #8
    Join Date
    Sep 2009
    Location
    Ontario
    Posts
    1,057
    Provided Answers: 1
    If sar is installed, it is usually used via cron to capture data every 20 minutes, and log each snapshot to a daily file, the daily files are overwritten the following month. The files are usually named sar01 thru sar31 for the printable version, and sa01 through sa31 for data only versions. On SCO systems (sorry I don't use AIX) these files are stored in /usr/adm/sa and have permissions of 0600, and are owned by root. Presumably all you need is read access to these files.

  9. #9
    Join Date
    Sep 2008
    Location
    Toronto,Canada
    Posts
    655
    Hey Kitaman,

    I know that sar is installed. But I could not find sar output files.

    Can you help me with the "sar command line" and its "output" that really is useful watching system activities for monitoring purposes.

    Since I did not use this so far, I would be able to request the access if that appeals to the ITAccess team.

    That will be a great help !

    Thanks
    DBFinder

  10. #10
    Join Date
    Sep 2009
    Location
    Ontario
    Posts
    1,057
    Provided Answers: 1
    Here is the man page for sar sar(ADM)
    You should also read System activity reporting

    The attachment is the output produced by a machine with about 50 active users
    On SCO systems, the data collection is implemented via two cron jobs.
    user sys
    Code:
    # The sys crontab should be used to do performance collection. See cron   
    # and performance manual pages for details on startup.                    
    #                                                                         
    0 * * * 0-6 /usr/lib/sa/sa1                                               
    20,40 8-17 * * 1-5 /usr/lib/sa/sa1
    and root
    Code:
    5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
    Attached Files Attached Files
    Last edited by kitaman; 09-11-11 at 11:07.

  11. #11
    Join Date
    Sep 2008
    Location
    Toronto,Canada
    Posts
    655
    Thanks alot,

    Pretty much like my own systems (home lab).
    But my employer has disabled all cron jobs.
    I could not find any sar files, binary or ascii.

    May be some how been hidden from non root users.

    DBFinder
    Last edited by DBFinder; 09-11-11 at 15:52.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •