oslevel Command

Purpose

Reports the latest installed level (technology level, maintenance level and service pack) of the system.

Syntax

oslevel [ -l Level | -g Level | -q ] [-r | -s ] [-f]

Description

The oslevel command reports the technology level and service pack of the operating system using a subset of all filesets installed on your system. These filesets include the Base Operating System (BOS), base devices, base printers, and X11.

The oslevel command also prints information about the technology level and service pack, including which filesets are not at a specified technology level or service pack.

Flags

Item Description
-l Level Lists filesets that are earlier (less) than the technology level or service pack specified by the Level parameter.
-f Forces the oslevel command to rebuild the cache for this operation.
-g Level Lists filesets that are later (greater) than the technology level or service pack specified by the Level parameter.
-q Lists names of known technology levels (when used with the -r flag) or service packs (when used with the -s flag) that can be specified using the -l or -g flag.
-r Applies all flags to technology levels.
-s Applies all flags to service packs. The service pack level returned is in the format 6100-00-01-0748, where 6100 refers to base level 6.1.0.0; 00 refers to technology level 0; 01 refers to service pack 1; and 0748 refers to the yyww build date in year and weeks, in this case, the 48th week of the year 2007.
If no flags are specified, the base system software is entirely at or above the level that is listed in the output of the oslevel command.

Examples

  1. To determine the base level of the system, type:
    oslevel
    The output will be similar to the following:
    6.1.0.0
  2. To determine the highest technology level reached for the current version of AIX® on the system, type:
    oslevel -r
  3. To list all known technology levels on the system, type:
    oslevel -rq
    The levels returned can be used with the [ -r -l ] or [ -r -g ] flags, and will be similar to the following:
    Known Recommended Maintenance Levels
    ------------------------------------
    5300-02
    5300-01
    5300-00
  4. To list which software is below AIX Version 5.3 technology level 1, type:
    oslevel -r -l 5300-01
  5. To list which software is at a level later than AIX Version 5.3 technology level 1, type:
    oslevel -r -g 5300-01
  6. To determine the highest service pack reached for the current technology level on the system, type:
    oslevel -s
  7. To list the known service packs on a system, type:
    oslevel -sq
    The levels returned can be used with the [ -s -l ] or [ -s -g ] flags, and will be similar to the following:
    Known Service Packs
    -------------------
    6100-00-02-0750
    6100-00-01-0748
    6100-00-00-0000
  8. To list which software is below AIX Version 6.1 technology level 0, service pack 1, type:
    oslevel -s -l 6100-00-01-0748
  9. To list which software is at a level later than AIX Version 6.1 technology level 0, service pack 1, type:
    oslevel -s -g 6100-00-01-0748

Files

Item Description
/usr/bin/oslevel Contains the oslevel command.