How to monitor AIX user's productivity?

Posted on 2009-02-23
Last Modified: 2013-11-17
Hi all,

I had a request come down from the IT manager who wanted me to find ways to monitor user's productivity on AIX.  We have a remote user who's logging in at all times and we'd like some evidence (other than simple "last" commands) of the work she's doing by getting a count of CPU usage time, disk usage time, etc.

Any ideas?
Question by:dsstao
    LVL 40

    Accepted Solution

    LVL 68

    Assisted Solution

    you will have to setup accounting to accomplish this.
    A redbook is here -
    If you have an IBM ID, you can use this tutorial -
    In short -
    Accounting is not _that_ heavy to implement. Just look at adm's crontab ('crontab -e adm') and activate the following lines -
    #  runacct at 11:10 every night
    #  dodisk at 11:00 every night
    #  ckpacct every hour on the hour
    #  monthly accounting 4:15 the first of every month
    #10 23 * * 0-6 /usr/lib/acct/runacct -X 2>/usr/adm/acct/nitex/accterr > /dev/null
    #0 23 * * 0-6 /usr/lib/acct/dodisk -X > /dev/null 2>&1
    #0 * * * * /usr/lib/acct/ckpacct > /dev/null 2>&1
    #15 4 1 * * /usr/lib/acct/monacct -o -X > /dev/null 2>&1
    Have a look at 'man runacct', too.
    The reports which are of interest for you are stored in /var/adm/acct/sumx/rprt[mmdd]. Look at the DAILY USAGE REPORT section at the end.
     To use disk accounting you will have to issue chdev -l sys0 -a iostat=true
    For filesystem accounting, each FS to account needs the account flag. Set it with chfs -t yes [filesystem]
    I advise you to not only rely on these short instructions. Please read the above document(s)!


    LVL 1

    Author Closing Comment

    Guys, these are perfect solutions.  Thank you very much for them, and for how fast you gave to me, I really appreciate it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now