Tuesday, May 26, 2009

AIX - Performance Tools - In Depth

AIX - Performance Tools - In Depth

CPU Monitoring

netpmon

Memory Monitoring

svmon, netpmon, and filemon


I/O Subsystem

filemon, fileplace

Network

netpmon, tcpdump

Processes & Threads

svmon, truss,kdb, dbx, gprof, fuser, prof

AIX - Performance Tools

AIX - Performance Tools

CPU Monitoring

vmstat, iostat, topas, sar, time/timex

Memory Monitoring

vmstat, topas, ps, lsps, ipcs

I/O Subsystem

vmstat, topas, iostat, lvmstat, lsps, lsatt/lsdev, lspv/lsvg/lslv

Network

netstat, topas, atmstat, entstat, tokstat, fddistat, nfsstat, ifconfig

Processes & Threads

ps, pstat, topas

AIX - Most Used Commands - Performance

AIX - Most Used Commands

Performance:

vmstat

Run queue, virtual memory statistics, paging, CPU Utilization and more.

iostat

Disk and adapters statistics and CPU Utilization

netstat

Network statistics (obviously) but hard to use to monitor

topas

Excellent online screen and a good summary of everything you need

ps

Process list with lots of options and details

AIX - Backup Files from Remote Computer

The local host MUST be included in remote's hosts /etc/hosts.equiv file. The local host and user name MUST be included in the $HOME/.rhosts file at the user account at the remote machine.

Restores files FROM a remote tape drive on a host named 'Alpha'

#rsh Alpha -l roger "dd if=/dev/rmt0" | tar -xvf-

The tar command will write it's output to the rsh command which pipes the data to the remote host (Alpha) and the tape drive (/dev/rmt0). Specify -l if the local user is different from the remote user.

#tar -cvf- * | rsh Alpha -l roger "dd of=/dev/rmt0 bs=64k conv=block"

Uses the floppy drive device on node Alpha to store files in tar format.

#tar -cvf- * | rexec Alpha " dd of=/dev/fd0 bs=4096”

Commands for remote tape backup

#tar cvf - $DIRNAME | rsh $SYS dd of=$TAPEDEV

To retrieve the backed up info...

#rsh $REM dd if=$TAPEDEV | tar xvf –