AIX: administration command cheat sheet
Common AIX commands: processes, processor, disk space, error log and performance monitoring (topas, vmstat, svmon, nmon).
A command cheat sheet for day-to-day AIX administration: processes, processor, disk space, error log and performance monitoring. For a broader reference, see the AIX memo by linux-france and the IBM AIX quick sheet.
Processes and Oracle environment
# check that Oracle background processes (pmon) are running
ps -ef | grep pmon
# Oracle environment variables (example values)
export ORACLE_SID=ORCL
export ORACLE_HOME=/u1/app/oracle/product/11.2.0/dbhome_1
export PATH=$PATH:/u1/app/oracle/product/11.2.0/dbhome_1
Shell
# edit the command line in vi mode
set -o vi
# then, in command mode: Esc, then k (previous command)
export TERM=xterm
Processor
# processor type
prtconf | grep -i "Processor Type"
# number of processors
/usr/sbin/lsdev -C -c processor
lscfg -v | grep proc
In topas, press c to display the per-processor view.
Disk space
The equivalent of df --max-depth=1 on AIX is to use du:
du | grep -v '/.*/'
Error log
errpt -a
Performance monitoring
# real-time view (CPU, memory, I/O)
topas
# system statistics (5 samples, every 2 seconds)
vmstat 2 5
# global memory usage
svmon -G
# interactive monitoring
nmon
Notes
- The Oracle variables above are examples: adapt the SID and paths to your installation.
- The
/message/errorlogpath present in the source note is not an option oferrpt; the command above uses the standard syntax.