Favorite Commands on Least Favorite Os

Aixlogo3dHey, take a look at the ugly AIX image that I just stole. Since I ran into the image thought that I would take a bit of time to get my AIX notes together and put my new image to good use.

Here are some of my favorite commands and other info.

prtconf

Shows system config

prtconf
System Model: IBM,9113-550
Machine Serial Number: blahblah
Processor Type: PowerPC_POWER5
Number Of Processors: 4
Processor Clock Speed: 1656 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 hostname
Memory Size: 15808 MB
Good Memory Size: 15808 MB
Platform Firmware level: SF230_143
Firmware Version: IBM,SF230_143
Console Login: enable
Auto Restart: true
Full Core: false

ipcs -mob

Shows shared memory config

IPC status from /dev/mem as of Fri Dec 28 10:52:23 EST 2007
T        ID     KEY        MODE       OWNER    GROUP NATTCH     SEGSZ
Shared Memory:
m   4194304 0xffffffff --rw-rw----     root   system      1      4096
m   6291457 0xffffffff --rw-rw----     root   system      1      4096
m   6291458 0xffffffff --rw-rw----     root   system      1      4096
m   9437187 0xdd9369d4 --rw-r-----  dbpcomf      dba     47 1090523136
m  6291460 0xf6e89580 --rw-r-----   dbpisv      dba    104 8640286720v

Memory and Paging

lsattr  -E  -l  sys0  |  grep  realmem

To determine how much physical memory resides on the hardware, use the
AIX following command to determine the amount of physical memory:

lsps –a
To determine how much paging space is
installed; use the command above.
To increase Paging Space; use the following AIX path in SMIT (System
Management Interface Tool)
Physical and Logical Storage -> Paging Space -> Change/Show
Characteristics of Paging Space
Do not add a new paging logical volume. Add specified PP’s (as needed)
to the existing paging logical volume. Select logical volume and press
return. Type 1 for the Number of additional logical partitions.

Networking

netstat -v | grep Speed

Show NIC speed

Collect System Dump on an AIX System

  • Verify dump size by typing sysdumpdev –L at the command line.
  • Find a repository large enough for the dump.
  • Type snap –r at the command line to remove any previous dumps.
  • Type snap  -gfkDGL at the command line to create the new dump.
  • Type snap –c to compress into the pax file.

Intro to SMIT/SMITTY

  • System Management Interface Tool
  • smit will run GUI version if $DISPLAY is set, text version otherwise
  • Use smitty to force use of text version
  • Important keystrokes (If you don’t have function keys, use ESC+n for Fn):

Function Keys

F3 > Cancel (go back to previous screen)

F4 > List options for a given field

F6 > Show command that SMIT is executing

F7 > Tag item from list (e.g., when selecting software to install)

F10 > Exit SMIT

Useful files:

smit.log >Logs what you’ve done (menu selections, command output, etc)

smit.script > listing of all commands SMIT has executed for you (same as shown by F6)

Command prefix naming conventions:

o ch (change)

o ls (list)

o mk or cr (make or create)

o rm (remove)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s