oslevel PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Michael Felt   

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.

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

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.

oslevel
 -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.
   -l level
Lists filesets that are earlier (less) than the technology level or service pack specified by the Level parameter.
   -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.
   -f Forces the oslevel command to rebuild the cache for this operation.

Example

# oslevel -s
6100-07-00-0000
# oslevel -q -s | head -5
Known Service Packs
-------------------
6100-07-03-1207
6100-07-02-1150
6100-07-01-1141
6100-07-00-0000
6100-06-06-1140
# oslevel -l 6100-07-03-1207 -s | head -5
Fileset                                 Actual Level       Service Pack Level
-----------------------------------------------------------------------------
X11.base.lib                            6.1.7.0            6.1.7.1       
X11.base.rte                            6.1.7.0            6.1.7.1       
X11.compat.lib.X11R6                    6.1.6.0            6.1.7.1       
X11.compat.lib.X11R6_motif              6.1.6.15           6.1.7.1       
X11.motif.lib                           6.1.6.15           6.1.7.1