top

Display and update information about the top cpu processes

Compilation (V3.6/3.7)

AIX

Straightforward, example:
./configure CC=cc CFLAGS="-O2" --with-module=aix43 --prefix=/tmp/top-3.6  # for AIX 3.2?
./configure CC=cc CFLAGS="-O2" --with-module=aix43 --prefix=/tmp/top-3.6  # for AIX 4.x
./configure CC=cc CFLAGS="-O2"                     --prefix=/tmp/top-3.7  # for AIX >=5.x
make clean
make
make install       # into /tmp directory

ULTRIX

Needs specific module machine/m_ultrix with functions:
proc_owner
machine_init
format_header
get_system_info
get_process_info
format_next_process
In addition, ULTRIX lacks the following general utility functions:
strdup
snprintf
vsnprintf

Installation/Configuration (V3.6/3.7)

V3.6

AIX

To allow ordinary users to use top on AIX, access to /dev/mem and /dev/kmem has to be enabled. This is accomplished by means of acl options.
  1. Check if the group kmem exists (lsgroup kmem). If not, create it, either locally or on the appropriate NIS server.
  2. Create (or use an already existing) file top.acl
    base permissions
        owner(root):  r--
        group(system):  r--
        others:  ---
    extended permissions
        enabled
        permit   r--     g:kmem
        permit   r--     g:kmem
        permit   r--     g:kmem
    
    (Existing acl-options can be read out by aclget /dev/mem > top.acl )
  3. Set the acl-options
    aclput -i top.acl /dev/mem
    aclput -i top.acl /dev/kmem
    
  4. Modify the binary's permissions:
    chgrp kmem top
    chmod g+s  top
    

Tru64

To allow all users to top, change the binary:
chgrp kmem top
chmod g+s  top

V3.7

AIX 6.1/7.1

No special action necessary?
Last updated: 1-Jun-2013, M.Kraemer

Impressum Data privacy protection