Status of LPARs

With the LPAR tool, the status of one, several or all LPARs can be easily determined using the “lpar status” command.

Example 1: Status of exactly one LPAR

$ lpar status aixdb21
         LPAR                                                    PROC     
NAME     ID    LPAR_ENV  STATE    PROFILE   SYNC  RMC     PROCS  UNITS  MEM     OS_VERSION
aixdb21  10    aixlinux  Running  standard  1     active  2      0.2     50 GB  AIX 7.2 7200-05-08-2419
$

In addition to the status (Running), further information is displayed, such as

    • Name of the activated profile (here standard)
    • type of LPAR (here aixlinux)
    • State of the RMC connection to the HMC (here active)
    • Current number of processors (here 2)
    • Processing units (only for shared processor LPARs, here 0.2)
    • Current main memory size (here 50 GB)
    • Installed OS (here AIX 7.2 TL5 SP8)

Of course, any number of LPARs can be specified explicitly on the command line:

$ lpar status aixdb21 aixdb22 aixnim1
         LPAR                                                    PROC     
NAME     ID    LPAR_ENV  STATE    PROFILE   SYNC  RMC     PROCS  UNITS  MEM     OS_VERSION
aixdb21  10    aixlinux  Running  standard  1     active  2      0.2     50 GB  AIX 7.2 7200-05-08-2419
aixdb22  8     aixlinux  Running  standard  1     active  2      0.2     50 GB  AIX 7.2 7200-05-08-2419
aixnim1  42    aixlinux  Running  standard  0     active  4      2.0      8 GB  AIX 7.2 7200-05-07-2346
$

Instead of the LPAR name, the serial number of an LPAR can also be specified.

Example 2: Status of multiple LPARs

The example shows all LPARs whose name starts with “aix” and ends with “1”:

$ lpar status "aix*1"
          LPAR                                                    PROC     
NAME      ID    LPAR_ENV  STATE    PROFILE   SYNC  RMC     PROCS  UNITS  MEM     OS_VERSION
aixappl21 15    aixlinux  Running  standard  1     active  2      0.2     16 GB  AIX 7.2 7200-05-08-2419
aixmaf01  44    aixlinux  Running  standard  0     active  2      0.2      8 GB  AIX 7.2 7200-05-08-2419
aixmq01   28    aixlinux  Running  standard  1     active  2      0.2     32 GB  AIX 7.2 7200-05-08-2419
aixora21  7     aixlinux  Running  standard  0     active  2      0.2     32 GB  AIX 7.2 7200-05-08-2419
aixnim1   42    aixlinux  Running  standard  0     active  4      2.0      8 GB  AIX 7.2 7200-05-07-2346
aixtsmp01 3     aixlinux  Running  standard  1     active  4      -      280 GB  AIX 7.2 7200-05-07-2346
aixwas01  18    aixlinux  Running  standard  0     active  6      0.6    222 GB  AIX 7.2 7200-05-08-2419
$

The wildcards “*” and “?” known from the shell are supported. Instead of names, serial numbers including wildcards can be used here too. Multiple arguments can be specified here too.

It doesn’t matter which managed system the LPARs are on or which HMC they are connected to. The LPAR tool takes all HMCs and all managed systems into account!

Example 3: Status of all LPARs on a specific managed system

View the status of the LPARs on the managed system named ms12:

$ lpar status ms12
             LPAR                                                     PROC     
NAME         ID    LPAR_ENV   STATE    PROFILE   SYNC  RMC     PROCS  UNITS  MEM     OS_VERSION
aixtsm02     40    aixlinux   Running  standard  1     active  3      -       96 GB  AIX 7.2 7200-05-08-2419
aixtsmlib02  31    aixlinux   Running  standard  1     active  3      0.9     32 GB  AIX 7.2 7200-05-08-2419
aixtsm06     4     aixlinux   Running  standard  1     active  2      -      168 GB  AIX 7.2 7200-05-08-2419
aixwasmq02   3     aixlinux   Running  standard  1     active  8      1.0     84 GB  AIX 7.2 7200-05-08-2419
ms02-vio1    1     vioserver  Running  standard  1     active  2      -       16 GB  VIOS 4.1.0.21
ms02-vio2    2     vioserver  Running  standard  0     active  2      -       16 GB  VIOS 4.1.0.21
$

Example 4: Status of all LPARs on all S1022 Managed Systems

$ lpar status 9105-22A
            LPAR                                                      PROC     
NAME        ID    LPAR_ENV   STATE    PROFILE    SYNC  RMC     PROCS  UNITS  MEM     OS_VERSION
aixappl21   15    aixlinux   Running  standard   1     active  2      0.2     16 GB  AIX 7.2 7200-05-08-2419
aixappl22   5     aixlinux   Running  standard   1     active  2      0.2     16 GB  AIX 7.2 7200-05-08-2419
aixdb21     10    aixlinux   Running  standard   1     active  2      0.2     50 GB  AIX 7.2 7200-05-08-2419
aixdb22     8     aixlinux   Running  standard   1     active  2      0.2     50 GB  AIX 7.2 7200-05-08-2419
aixmq01     28    aixlinux   Running  standard   1     active  2      0.2     32 GB  AIX 7.2 7200-05-08-2419
aixmq02     12    aixlinux   Running  standard   1     active  2      0.2     32 GB  AIX 7.2 7200-05-08-2419
aixora21    7     aixlinux   Running  standard   0     active  2      0.2     32 GB  AIX 7.2 7200-05-08-2419
aixora22    32    aixlinux   Running  standard   0     active  2      0.2     32 GB  AIX 7.2 7200-05-08-2419
…
$

Of course, further arguments can be given here as well.

Example 5: Status of all LPARs connected to a specific HMC

List the status of all LPARs connected to the HMC hmc03:

$ lpar status hmc03
           LPAR                                                             PROC     
NAME       ID    LPAR_ENV   STATE          PROFILE   SYNC  RMC       PROCS  UNITS  MEM     OS_VERSION
web01      3     aixlinux   Running        standard  0     none      2      0.4     16 GB  Unknown
web02      5     aixlinux   Running        standard  1     none      2      0.2     16 GB  Unknown
web03      8     aixlinux   Running        standard  1     none      2      0.4     32 GB  Unknown
ms01-vio1  1     vioserver  Not Activated  standard  1     inactive  6      -        8 GB  Unknown
ms01-vio2  2     vioserver  Not Activated  standard  1     inactive  6      -        8 GB  Unknown
ms03-vio1  1     vioserver  Running        standard  1     active    6      2.0      8 GB  VIOS 3.1.4.21
ms03-vio2  2     vioserver  Running        standard  1     active    6      2.0      8 GB  VIOS 3.1.4.21
$

(Note: the HMC and the managed systems in this example are old and in the process of being dismantled.)

Example 6: Status of all LPARs on a specific HMC model

It is also possible to display only the LPARs that are connected to a specific HMC model, e.g. 7042-CR9:

$ lpar status 7042-CR9
           LPAR                                                             PROC     
NAME       ID    LPAR_ENV   STATE          PROFILE   SYNC  RMC       PROCS  UNITS  MEM     OS_VERSION
web01      3     aixlinux   Running        standard  0     none      2      0.4     16 GB  Unknown
web02      5     aixlinux   Running        standard  1     none      2      0.2     16 GB  Unknown
web03      8     aixlinux   Running        standard  1     none      2      0.4     32 GB  Unknown
ms01-vio1  1     vioserver  Not Activated  standard  1     inactive  6      -        8 GB  Unknown
ms01-vio2  2     vioserver  Not Activated  standard  1     inactive  6      -        8 GB  Unknown
ms03-vio1  1     vioserver  Running        standard  1     active    6      2.0      8 GB  VIOS 3.1.4.21
ms03-vio2  2     vioserver  Running        standard  1     active    6      2.0      8 GB  VIOS 3.1.4.21
$

Note: The output is identical to the output in example 6 because the HMC hmc03 is the only 7042-CR9 HMC in the environment managed by the LPAR tool.

Example 7: Status of all LPARs of type Virtual I/O Server

You can also specifically display only virtual I/O servers. To do this, simply specify the value vioserver of the lpar_env attribute:

$ lpar status vioserver
           LPAR                                                             PROC     
NAME       ID    LPAR_ENV   STATE          PROFILE   SYNC  RMC       PROCS  UNITS  MEM     OS_VERSION
ms11-vio1  1     vioserver  Running        standard  1     active    2      -       16 GB  VIOS 4.1.0.21
ms11-vio2  2     vioserver  Running        standard  1     active    2      -       16 GB  VIOS 4.1.0.21
ms16-vio1  1     vioserver  Running        standard  1     active    2      -       16 GB  VIOS 4.1.0.21
ms16-vio2  2     vioserver  Running        standard  1     active    2      -       16 GB  VIOS 4.1.0.21
ms21-vio1  1     vioserver  Running        standard  1     active    2      -       16 GB  VIOS 4.1.0.21
ms21-vio2  2     vioserver  Running        standard  1     active    2      -       16 GB  VIOS 4.1.0.21
ms26-vio1  1     vioserver  Running        standard  1     active    2      -       16 GB  VIOS 4.1.0.21
ms26-vio2  2     vioserver  Running        standard  0     active    2      -       16 GB  VIOS 4.1.0.21
…
$

Example 8: Status of all LPARs (all managed systems, all HMCs)

If the command “lpar status” is called without arguments, all LPARs are listed:

$ lpar status
           LPAR                                                                    PROC     
NAME       ID    LPAR_ENV   STATE          PROFILE          SYNC  RMC       PROCS  UNITS  MEM     OS_VERSION
aixappl21  15    aixlinux   Running        standard         1     active    2      0.2     16 GB  AIX 7.2 7200-05-08-2419
aixappl22  5     aixlinux   Running        standard         1     active    2      0.2     16 GB  AIX 7.2 7200-05-08-2419
aixdb21    10    aixlinux   Running        standard         1     active    2      0.2     50 GB  AIX 7.2 7200-05-08-2419
aixdb22    8     aixlinux   Running        standard         1     active    2      0.2     50 GB  AIX 7.2 7200-05-08-2419
…
$

Note: The runtime for the command was about 9 seconds. A total of 126 commands were issued on the HMC CLI on 5 different HMCs to display the status of about 500 LPARs.

There are many other ways to display only certain LPARs.

Overview of the LPAR tool.

Status of LPARs

4.2. Status of LPARs

It is very easy to determine whether an LPAR is currently active or powered off by printing the status of an LPAR. The “lpar status” command can be used to display the status of a single LPAR or the status of several LPARs (or all LPARs):

$ lpar status aix\*
NAME   LPAR_ID  LPAR_ENV  STATE    PROFILE   SYNC  RMC     PROCS  PROC_UNITS  MEM    OS_VERSION
aix01  3        aixlinux  Running  standard  0     active  4      0.4         33792  AIX 7.1 7100-04-05-1720
aix02  3        aixlinux  Running  standard  0     inactive  1      0.2         16384  AIX 7.1 7100-04-05-1720
aix03  11       aixlinux  Running  standard  0     active  2      0.3         32768  AIX 7.1 7100-04-05-1720
aix04  19       aixlinux  Not Activated  standard  0     inactive  4      0.4         33792  AIX 7.1 7100-04-05-1720

$

The STATE column shows that the LPARs aix01, aix02 and aix03 are active, whereas the LPAR aix04 is powered off (Not Activated). The LPARs aix01 and aix03 have an active RMC connection to at least one of the HMCs, the two LPARs aix02 and aix04 do not have an active RMC connection. The reason for the LPAR aix04 is clear – it is powered off and therefore cannot have an active RMC connection. With LPAR aix02, however, there seems to be a problem because RMC is not active, although the LPAR is active.

In addition to the status, information on the number of processors (as well as entitlement for shared processor LPARs) and the main memory size are displayed. Finally, the operating system used and the version of the operating system are displayed. However, this information is only available if there is an active RMC connection or has existed at some point in time.

%d bloggers like this: