Wednesday, May 27, 2009

AIX - SVMON

AIX - SVMON

svmon command is used to monitor the memory usage.

svmon -P

A) #svmon -P -v -t 10 | more (will give top ten processes)
B) #svmon -U -v -t 10 | more ( will give top ten user)

AIX - Performance Commands for Micro Partitions

AIX - Performance Commands for Micro Partitions

mpstat


Collects and displays performance statistics for all logical CPUs in the system.


lparstat

Reports logical partition (LPAR) related information and statistics

AIX - Trace Based Commands

AIX - Trace Based Commands

An Event Based Trace Facility collects information about events that occur on the system such as scheduling dispatches, interrupts, and I/O. Trace points are inserted in the kernel code to record the events to a trace buffer. User level tools are provided to view the trace events in a time sequenced fashion. The events can be analyzed to gain a better understanding of the dynamics of the system.

CPU Monitoring

tprof, curt, splat, trace, trcrpt

Memory Monitoring

trace, trcrpt


I/O Subsystem

trace, trcrpt

Network

iptrace, ipreport, trace, trcrpt

Processes & Threads

tprof, pprof, trace, trcrpt

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 –

Sunday, May 24, 2009

AIX - Installation - Perform a new and complete overwrite BOS installation from CD

AIX - Installation - Perform a new and complete overwrite BOS installation from CD

Step 1. Prepare your system

-There must be adequate disk space and memory available. AIX 5L Version 5.2 and AIX 5L Version 5.3 require 128MB of memory and 2.2GB of physical disk space.

-Make sure your hardware installation is complete, including all external devices.

Step 2. Boot from the AIX product CD

-Insert the AIX Volume 1 CD into the CD-ROM device.

-Make sure all external devices attached to the system, such as CD-ROM drives, tape drives, DVD drives, and terminals, are turned on. Only the CD-ROM drive from which you will install AIX should contain the installation media.

-Power on the system.

-When the system beeps twice, press F5 on the keyboard or 5 on an ASCII terminal. If you have a graphics display, you will see the keyboard icon on the screen when the beeps occur. If you have an ASCII terminal, you will see the word keyboard when the beeps occur.
-Select the system console by pressing F1 or 1 on an ASCII terminal and press Enter.

-Select the English language for the BOS installation menus by typing a 1 in the Choice field. Press Enter to open the Welcome to Base Operating System Installation and Maintenance screen.

-Type 2 to select 2 Change/Show Installation Settings and Install in the Choice field and press Enter.


Welcome to Base Operating System
Installation and Maintenance


Type the number of your choice and press Enter. Choice is
indicated by >>>.

1 Start Install Now with Default Settings

2 Change/Show Installation Settings and Install

3 Start Maintenance Mode for System Recovery

88 Help ?
99 Previous Menu
>>> Choice [1]: 2


Step 3. Set and verify BOS installation settings


-In the Installation and Settings screen, verify that the installation settings are correct by checking the method of installation (new and complete overwrite), the disk or disks you want to install, the primary language environment settings, and the advanced options.

If the default choices are correct, type 0 and press Enter to begin the BOS installation. The system automatically reboots after installation is complete.

-Go to Step 4. Configure the system after installation.

Otherwise, go to sub-step 2.
To change the System Settings, which includes the method of installation and disk where you want to install, type 1 in the Choice field and press Enter.


Installation and Settings


Either type 0 and press Enter to install with current settings,
or type the number of the setting you want to change
and press Enter.


1 System Settings:
Method of Installation..................New and Complete Overwrite
Disk Where You Want to Install..hdisk0


>>> Choice [0]: 1


Type 1 for New and Complete Overwrite in the Choice field and press Enter. The Change Disk(s) Where You Want to Install screen now displays.


Change Disk(s) Where You Want to Install


Type one or more numbers for the disk(s) to be used for
installation and press Enter. To cancel a choice, type the
corresponding number and Press Enter. At least one
bootable disk must be selected. The current choice is
indicated by >>>.

Name Location Code Size(MB) VG Status Bootable

1 hdisk0 04-B0-00-2,0 4296 None Yes
2 hdisk1 04-B0-00-5,0 4296 None Yes
3 hdisk2 04-B0-00-6,0 12288 None Yes

>>> 0 Continue with choices indicated above

66 Disks not known to Base Operating System Installation
77 Display More Disk Information
88 Help ?
99 Previous Menu

>>> Choice [0]:

In the Change Disk(s) Where You Want to Install screen:

-Select hdisk0 by typing a 1 in the Choice field and press Enter. The disk will now be selected as indicated by >>>. To unselect the destination disk, type the number again and press Enter.

-To finish selecting disks, type a 0 in the Choice field and press Enter. The Installation and Settings screen now displays with the selected disks listed under System Settings.

-Change the Primary Language Environment Settings to English (United States). Use the following steps to change the Cultural Convention, Language, and Keyboard to English.

-Type 2 in the Choice field on the Installation and Settings screen to select the Primary Language Environment Settings option.

-Type the number corresponding to English (United States) as the Cultural Convention in the Choice field and press Enter.

-Select the appropriate keyboard and language options.

-Verify that the selections are correct in the Overwrite Installation Summary screen, as follows


Overwrite Installation Summary

Disks: hdisk0
Cultural Convention: en_US
Language: en_US
Keyboard: en_US
64 Bit Kernel Enabled: No
JFS2 File Systems Created: No
Desktop: CDE
Enable System Backups to install any system: Yes

Optional Software being installed:

>>> 1 Continue with Install
88 Help ?
99 Previous Menu

>>> Choice [1]:

-Press Enter to begin the BOS installation. The system automatically reboots after installation is complete


Step 4. Configure the system after installation

-After a new and complete overwrite installation, the Configuration Assistant opens on systems with a graphics display. On systems with an ASCII display, the Installation Assistant opens.

-Select the Accept Licenses option to accept the electronic licenses for the operating system.

-Set the date and time, set the password for the administrator (root user), and configure the network communications (TCP/IP).

Use any other options at this time. You can return to the Configuration Assistant or the Installation Assistant by typing configassist or smitty assist at the command line.

-Select Exit the Configuration Assistant and select Next. Or, press F10 or ESC+0 to exit the Installation Assistant.

-If you are in the Configuration Assistant, select Finish now. Do not start the Configuration Assistant when restarting AIX and select Finish.


At this point, the BOS Installation is complete, and the initial configuration of the system is complete.

Saturday, May 23, 2009

AIX - BOS Installation Methods

AIX - BOS Installation Methods


AIX - Installation - Migration

AIX - Installation - Migration

This method upgrades from earlier versions of the AIX BOS to AIX 6.1 (see the release notes for restrictions). The migration installation method is used to upgrade from an existing version or release of AIX to a later version or release of AIX. A migration installation preserves most file systems, including the root volume group, logical volumes, and system configuration files. It overwrites the /tmp file system.