该命令的帮助如下:
-bash-3.00$ man oslevel
Commands Reference, Volume 4, n - r
oslevel Command
Purpose
Reports the latest installed maintenance and technology level of the system.
Syntax
oslevel [ -l Level | -g | -q ] [-r | -s ] [-f]
Description
The oslevel command reports the maintenance and technology levels 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 2d.
The oslevel command also prints information about maintenance and technology levels, including which filesets are not at a specified maintenance and technology level.
Flags
Standard input
-l Level
Lists file sets at maintenance and technology levels earlier than the maintenance and technology level specified by the Level parameter.
-finput
Forces the oslevel command to rebuild the cache for this operation.
-ginput
Lists file sets at maintenance and technology levels later than the current maintenance and technology level.
-qinput
Lists names of known maintenance and technology levels that can be specified using the -l flag.
-rinput
Applies all flags to the recommended maintenance and technology levels.
-sinput
Applies all flags to Service Packs.
Standard input
If no flags are specified, the base system software is entirely at or above the maintenance and technology levels that are listed in the output of the oslevel command.
Standard input
Examples input
1 To determine the maintenance and technology level of the system, type:
Standard input
oslevel
2 To determine the file sets that are below maintenance level 4.1.2.0, type: oslevel -l
4.1.2.0
Standard input
3 To determine the file sets at levels later than the current maintenance and technology
level, type: oslevel -g
Standard input
4 To determine the highest recommended maintenance and technology level reached for the current version of AIX on the system, type:
Standard input
oslevel -r
5 To list all known recommended maintenance and technology levels on the system, type:
Standard input
oslevel -rq
Standard input
6 To list which software is below the recommended maintenance and technology level, AIX 5L Version 5.3 with the 5300-03 Recommended Maintenance package, type:
Standard input
oslevel -r -l 5300-03
7 To list the known Service Packs on a system, type:
Standard input
oslevel -q -s
The output will be similar to the following:
Standard input
Known Service Packs
-------------------
5300-04-01
5300-04-00
Standard input
Filesard input
Standard input
/usr/bin/oslevel
Contains the oslevel command.
Standard input
Related Information
Standard input
The lslpp command.
Standard input
-bash-3.00$ ut: END
关于一些参数的意义,在这个帮助文档里有一些示例:
-bash-3.00$ oslevel
5.3.0.0
-bash-3.00$ oslevel -g
Fileset Actual Level Maintenance Level
-----------------------------------------------------------------------------
bos.rte 5.3.7.0 5.3.0.0
-bash-3.00$ oslevel -q -s
Known Service Packs
-------------------
5300-07-10-0943
5300-07-09-0920
5300-07-08-0918
...
5300-03-CSP-0000