oslevel Command
Purpose
Reports the latest installed level (technology level, maintenance level and service pack) of the system.
Syntax
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 is the build sequence identifier, which is used to determine valid technology levels and service packs that can be applied to the current level. Attempts to apply a technology level or service pack with a lower build sequence identifier will fail. |
Examples
- To determine the
base level of the system, type:
The output will be similar to the following:oslevel
6.1.0.0
- To determine the highest technology level reached for the current
version of AIX® on the
system, type:
oslevel -r
- To list all known technology levels on the system, type:
The levels returned can be used with the [ -r -l ] or [ -r -g ] flags, and will be similar to the following:oslevel -rq
Known Recommended Maintenance Levels ------------------------------------ 5300-02 5300-01 5300-00
- To list which software is below AIX Version 5.3 technology
level 1, type:
oslevel -r -l 5300-01
- To list which software is at a level later than AIX Version 5.3 technology
level 1, type:
oslevel -r -g 5300-01
- To determine the highest service pack reached for the current
technology level on the system, type:
oslevel -s
- To list the known service packs on a system, type:
The levels returned can be used with the [ -s -l ] or [ -s -g ] flags, and will be similar to the following:oslevel -sq
Known Service Packs ------------------- 6100-00-02-0750 6100-00-01-0748 6100-00-00-0000
- To list which software is below AIX Version 6.1 technology level 0,
service pack 1, type:
oslevel -s -l 6100-00-01-0748
- 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. |