Table of Contents

AIX Info

Summary: ALthough AIX is by now on version 7.3 I find these old pages so fascinating I decided to keep them. On this page I'll show you how to retrieve information about the AIX installation and the hardware it's installed on. This page is for AIX 5.3 and 6.1.
Date: Between 2010-2013
Refactor: 21 December 2024: Checked formatting. Translated some stuff from Dutch to English.

Introduction

This is an overview of the commands to retrieve information about the AIX installation and the hardware it's installed on. The commands are grouped into these sections:

Hardware

Detect hardware

{sys034_partition3} / # cfgmgr

Devices per type

{sys034_partition3} / # lsdev -Cc adapter
ent0      Available       Logical Host Ethernet Port (lp-hea)
lhea0     Available       Logical Host Ethernet Adapter (l-hea)
sisscsia0 Available 01-08 PCI-XDDR Dual Channel Ultra320 SCSI Adapter
vsa0      Available       LPAR Virtual Serial Adapter

{sys034_partition3} / # lsdev -Cc disk
hdisk0 Available 01-08-01-8,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 01-08-01-9,0 16 Bit LVD SCSI Disk Drive

{sys034_partition3} / # lsdev -Cc processor
proc0 Available 00-00 Processor

{sys034_partition3} / # lsdev -Cc memory
L2cache0 Available  L2 Cache
mem0     Available  Memory

{sys054_partition4} / # lsdev -Cc disk -F 'name location physloc' -H
name   location physloc

hdisk0 01-08-02 U7311.D20.650445C-P1-C03-T1-W500507680140581E-L0
hdisk1 01-08-02 U7311.D20.650445C-P1-C03-T1-W500507680140581E-L1000000000000
hdisk2 01-08-02 U7311.D20.650445C-P1-C03-T1-W500507680140581E-L2000000000000

{sys054_partition4} / # lsdev -Cc disk -F 'name class subclass type' -H
name   class subclass type

hdisk0 disk  fcp      mpioosdisk
hdisk1 disk  fcp      mpioosdisk
hdisk2 disk  fcp      mpioosdisk

Installed resources

{sys034_partition3} / # lscfg
INSTALLED RESOURCE LIST

The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
*   = Diagnostic support not available.

  Model Architecture: chrp
  Model Implementation: Multiple Processor, PCI bus

+ sys0                                                 System Object
+ sysplanar0                                           System Planar
* vio0                                                 Virtual I/O Bus
* vsa0             U8204.E8A.65BF7E1-V3-C0             LPAR Virtual Serial Adapter
* vty0             U8204.E8A.65BF7E1-V3-C0-L0          Asynchronous Terminal
* pci0             U7311.D20.650442C-P1                PCI Bus
* pci1             U7311.D20.650442C-P1                PCI Bus
+ sisscsia0        U7311.D20.650442C-P1-C04            PCI-XDDR Dual Channel Ultra320 SCSI Adapter
+ scsi0            U7311.D20.650442C-P1-C04-T1         PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ scsi1            U7311.D20.650442C-P1-C04-T2         PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ hdisk0           U7311.D20.650442C-P1-C04-T2-L8-L0   16 Bit LVD SCSI Disk Drive (73400 MB)
+ hdisk1           U7311.D20.650442C-P1-C04-T2-L9-L0   16 Bit LVD SCSI Disk Drive (73400 MB)
+ ses0             U7311.D20.650442C-P1-C04-T2-L15-L0  SCSI Enclosure Services Device
* lhea0            U78A0.001.DNWGD21-P1                Logical Host Ethernet Adapter (l-hea)
+ ent0             U78A0.001.DNWGD21-P1-C6-T1          Logical Host Ethernet Port (lp-hea)
+ L2cache0                                             L2 Cache
+ mem0                                                 Memory
+ proc0                                                Processor

Location codes:

U7311.Unit type
D20.Model
650442C-Serial number
P1-Planar
C04-Card
T2-Poort
L8-Logical port
L0Lun

Example Unit Numbers

U787ESystem p5-510
U787ASystem p5-520
U787BSystem p5-550
U789System p5-570
U787DSystem p5-575
U787CSystem p5-590 and p5-595
U78A0Power System 550
U789DPower System 570

List attributes per resource

lsattr -El <resource from lscfg>

{sys034_partition3} / # lsattr -El ent0
alt_addr      0x000000000000   Alternate Ethernet address                True
flow_ctrl     no               Request Transmit and Receive Flow Control True
jumbo_frames  no               Request Transmit and Receive Jumbo Frames True
large_send    yes              Enable hardware Transmit TCP segmentation True
media_speed   Auto_Negotiation Requested media speed                     True
multicore     yes              Enable Multi-Core Scaling                 True
rx_cksum      yes              Enable hardware Receive checksum          True
rx_cksum_errd yes              Discard RX packets with checksum errors   True
rx_clsc       1G               Enable Receive interrupt coalescing       True
rx_clsc_usec  95               Receive interrupt coalescing window       True
rx_q1_num     8192             Number of Receive queue 1 WQEs            True
rx_q2_num     4096             Number of Receive queue 2 WQEs            True
rx_q3_num     2048             Number of Receive queue 3 WQEs            True
tx_cksum      yes              Enable hardware Transmit checksum         True
tx_isb        yes              Use Transmit Interface Specific Buffers   True
tx_q_num      512              Number of Transmit WQEs                   True
use_alt_addr  no               Enable alternate Ethernet address         True

List attribute range

lsattr -El <resource from lscfg> -a <attribute from lattr> -R

{sys034_partition3} / # lsattr -El ent0 -a media_speed -R
10_Full_Duplex
100_Full_Duplex
1000_Full_Duplex
10000_Full_Duplex
Auto_Negotiation

Change an attribute

chdev -l ent0 -a media_speed=1000_Full_Duplex
chdev -l hdisk2 -a queue_depth=128

Storage

See AIX Storage

CPU

{sys034_partition3} / # lsattr -El proc0
frequency   4204000000     Processor Speed       False
smt_enabled true           Processor SMT enabled False
smt_threads 2              Processor SMT threads False
state       enable         Processor state       False
type        PowerPC_POWER6 Processor type        False

Inside a partition you can see the processor settings with the lparstat command:

# lparstat

System configuration: type=Dedicated mode=Capped smt=On lcpu=2 mem=3072

%user  %sys  %wait  %idle
-----  ----  -----  -----
  0.0   0.1    0.0   99.9

Here you can see that the processors are dedicated, in capped mode, simultaneous multi threading is on and there are two logical processors. You can check this with the bindprocessor command:

# bindprocessor -q
The available processors are:  0 1

Simultaneous multi threading kun je bekijken en aan of uitzetten met het smtctl commando:

# smtctl

This system is SMT capable.
SMT is currently enabled.
SMT boot mode is not set.
SMT threads are bound to the same physical processor.

proc0 has 2 SMT threads.
Bind processor 0 is bound with proc0
Bind processor 1 is bound with proc0

# smtctl -m off
smtctl: SMT is now disabled. It will persist across reboots if
        you run the bosboot command before the next reboot.
# bindprocessor -q
The available processors are:  0
# smtctl -m on
smtctl: SMT is now enabled. It will persist across reboots if
        you run the bosboot command before the next reboot.

You can extend the lparstat command to see the entitlement for example:

# lparstat -i
Node Name                                  : lpar1
Partition Name                            : aix53
Partition Number                           : 2
Type                                       : Dedicated-SMT
Mode                                       : Capped
Entitled Capacity                          : 1.00
Partition Group-ID                         : 32770
Shared Pool ID                             : -
Online Virtual CPUs                        : 1
Maximum Virtual CPUs                       : 4
Minimum Virtual CPUs                       : 1
Online Memory                              : 3072 MB
Maximum Memory                             : 4096 MB
Minimum Memory                             : 128 MB
Variable Capacity Weight                   : -
Minimum Capacity                           : 1.00
Maximum Capacity                           : 4.00
Capacity Increment                         : 1.00
Maximum Physical CPUs in system            : 4
Active Physical CPUs in system             : 4
Active CPUs in Pool                        : -
Unallocated Capacity                       : -
Physical CPU Percentage                    : 100.00%
Unallocated Weight                         : -

Check CPU 32/64 bits

Give this command to check if you're on a 32 or a 64 bits system.

root@ms-lpar04:/tmp/sft>bootinfo -y
64

Memory

See AIX Memory

Network

Routetable

Routetable:

# netstat -rn
Routing tables
Destination        Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default            10.6.103.254      UG        3       456 en0      -      -
10.6.103.0         10.6.103.53       UHSb      0         0 en0      -      -   =>
10.6.103/24        10.6.103.53       U         2       257 en0      -      -
10.6.103.53        127.0.0.1         UGHS      5        77 lo0      -      -
10.6.103.255       10.6.103.53       UHSb      0         4 en0      -      -
127/8              127.0.0.1         U         4       243 lo0      -      -

Route Tree for Protocol Family 24 (Internet v6):
::1                ::1               UH        0         0 lo0      -      -

Add static route

Add a static route with smitty:

smitty tcpip

aixstaticroute.jpg

Netwerkkaart overzichten

You can see the network cards with the lsdev command:

# lsdev -Cc adapter
ent0   Available  Logical Host Ethernet Port (lp-hea)
ent1   Available  Logical Host Ethernet Port (lp-hea)
lhea0  Available  Logical Host Ethernet Adapter (l-hea)
vsa0   Available  LPAR Virtual Serial Adapter
vscsi0 Available  Virtual SCSI Client Adapter

As you can see here you have a logical host ethernet adapter with two ports. These ports each have an interface:

# lsdev | grep ^e
en0        Available       Standard Ethernet Network Interface
en1        Defined         Standard Ethernet Network Interface
ent0       Available       Logical Host Ethernet Port (lp-hea)
ent1       Available       Logical Host Ethernet Port (lp-hea)
et0        Defined         IEEE 802.3 Ethernet Network Interface
et1        Defined         IEEE 802.3 Ethernet Network Interface

The en0 and en1 devices are the interfaces where you can configure the IP configuration on:

# ifconfig en0
en0: flags=1e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),LARGESEND,CHAIN>
        inet 10.1.3.7 netmask 0xffff0000 broadcast 10.1.255.255
         tcp_sendspace 131072 tcp_recvspace 65536

Using lscfg you can see the physical port you are using:

# lscfg -l ent*
  ent1             U78A5.001.WIH091C-P1-T7    Logical Host Ethernet Port (lp-hea)
  ent0             U78A5.001.WIH091C-P1-T6    Logical Host Ethernet Port (lp-hea)

As you can see the ports are on the same card but have a different location code. The T6 and T7 are the physical ports on the same card.

Note: A IVE/HEA card with two ports has 1 group in which both ports are stopped to hang partitions on. This group has 16 logical ports which means you can hang 16 partitions on it. This can be changed by changing the MCS (multi core scaling) value. With a value of 1 you have 16 logical ports, with a value of 2 you have 8 logical ports and so on.

The logical ports can be viewed using the lsslot command:

# lsslot -c port
LHEA Port Name  Description       Device(s)
Port 3          Logical HEA Port  ent0
Port 5          Logical HEA Port  ent1

You have port 3 and 5 in use here.

Network Commands

Turn a network card on and off

ifconfig en0 up
ifconfig en0 down

Show current network cache statistics

netstat -c

Show statistics from specific NIC

netstat -v en0

Installed software

Also see AIX Software

AIX itself

OSlevel

{sys034_partition3} / # oslevel
6.1.0.0

Other software

lslpp -L

User Commands

Will give you a list of the history of user logins.

Will give you a list of the last 20 user logins.

LPAR and or managed system information

Lpar Partition ID en name

{sys034_partition3} / # uname -L
3 sys034_partition3

Lpar info

{sys034_partition3} / # lparstat -i
Node Name                                  : sys034_partition3
Partition Name                             : sys034_partition3
Partition Number                           : 3
Type                                       : Dedicated-SMT
Mode                                       : Capped
Entitled Capacity                          : 1.00
Partition Group-ID                         : 32771
Shared Pool ID                             : -
Online Virtual CPUs                        : 1
Maximum Virtual CPUs                       : 3
Minimum Virtual CPUs                       : 1
Online Memory                              : 640 MB
Maximum Memory                             : 1024 MB
Minimum Memory                             : 512 MB
Variable Capacity Weight                   : -
Minimum Capacity                           : 1.00
Maximum Capacity                           : 3.00
Capacity Increment                         : 1.00
Maximum Physical CPUs in system            : 8
Active Physical CPUs in system             : 8
Active CPUs in Pool                        : -
Shared Physical CPUs in system             : 0
Maximum Capacity of Pool                   : 0
Entitled Capacity of Pool                  : 0
Unallocated Capacity                       : -
Physical CPU Percentage                    : 100.00%
Unallocated Weight                         : -

Managed system serial number

{sys034_partition3} / # uname -u
IBM,0365BF7E1

Overview commands

You can use the prtconf command to list your AIX hardware configuration, including CPU's, memory, adapters, disks and network.

Operational commands

Shutdown LPAR

{sys034_partition3} / # shutdown
SHUTDOWN PROGRAM
Wed Sep  3 09:52:38 CEDT 2008
Broadcast message from root@sys034_partition3 (tty) at 09:52:38 ...
shutdown: PLEASE LOG OFF NOW !!!
All processes will be killed in 1 minute.

{sys034_partition3} / # shutdown -F
SHUTDOWN PROGRAM
Wed Sep  3 13:20:37 CEDT 2008
0513-044 The sshd Subsystem was requested to stop.
Wait for '....Halt completed....' before stopping.
Error reporting has stopped.

Restart LPAR

# shutdown -Fr

SHUTDOWN PROGRAM
Mon Nov 17 11:47:34 CET 2008
0513-044 The sshd Subsystem was requested to stop.
Wait for 'Rebooting...' before stopping.
Error logging stopped...

http://www.rootvg.net/