oslevel 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-oslevel
핵심 정리
- 설치된 AIX 수준을 보여 줍니다.
oslevel은 기본 수준(예:6.1.0.0),oslevel -r은 기술 수준(TL, 예:6100-09),oslevel -s는 서비스 팩(SP, 예:6100-09-12-1846)입니다. -s의 형식은버전-TL-SP-빌드순번입니다. 빌드 순번(YYWW)이 더 낮은 TL·SP는 적용할 수 없습니다.- 수준이 기대보다 낮게 나오면 일부 파일셋이 덜 올라간 것입니다.
oslevel -s -l 6100-09-12-1846으로 그 수준보다 낮은 파일셋을 찾습니다. -q와 함께 쓰면(oslevel -rq,-sq) 시스템이 아는 TL·SP 목록을 보여 줍니다.- 결과가 이상하면
-f로 캐시를 다시 만듭니다. 기본·장치·프린터·X11 파일셋만으로 판단합니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 서비스 팩 형식 설명이 더해지고 예의 수준 값이 6.1로 바뀜) |
| 원문 | IBM Commands Reference — 5.3 Volume 4, 6.1 Volume 4 |
| 파일 | /usr/bin/oslevel |
| 관련 명령어 | lslpp, instfix, installp, emgr, uname |
목적
시스템에 설치된 최신 수준(기술 수준, 유지 보수 수준, 서비스 팩)을 보고합니다.
영어 원문
Reports the latest installed level (technology level, maintenance level and service pack) of the system.
구문
oslevel [ -l Level | -g Level | -q ] [ -r | -s ] [ -f ]
설명
oslevel 명령은 시스템에 설치된 파일셋 가운데 일부로 운영 체제의 기술 수준과 서비스 팩을 보고합니다. 이 파일셋에는 기본 운영 체제(BOS), 기본 장치, 기본 프린터, X11이 들어갑니다.
또 기술 수준과 서비스 팩에 관한 정보, 곧 어느 파일셋이 지정한 기술 수준이나 서비스 팩에 이르지 않았는지도 보여 줍니다.
영어 원문
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.
플래그
| 플래그 | 설명 |
|---|---|
-l Level |
Level로 지정한 기술 수준이나 서비스 팩보다 이전(낮은) 파일셋을 나열합니다. |
-f |
이 작업을 위해 캐시를 다시 만듭니다. |
-g Level |
Level로 지정한 기술 수준이나 서비스 팩보다 이후(높은) 파일셋을 나열합니다. |
-q |
-l이나 -g에 쓸 수 있는, 알려진 기술 수준(-r과 함께)이나 서비스 팩(-s와 함께) 이름을 나열합니다. |
-r |
모든 플래그를 기술 수준에 적용합니다. |
-s |
모든 플래그를 서비스 팩에 적용합니다. (6.1) 서비스 팩 수준은 6100-00-01-0748 같은 형식입니다. 6100은 기본 수준 6.1.0.0, 00은 기술 수준 0, 01은 서비스 팩 1, 0748은 빌드 순번입니다. 빌드 순번으로 현재 수준에 적용할 수 있는 기술 수준과 서비스 팩을 정하며, 빌드 순번이 더 낮은 것을 적용하면 실패합니다. |
플래그가 없으면, 기본 시스템 소프트웨어가 모두 출력에 나온 수준 이상이라는 뜻입니다.
영어 원문
-lLevel — 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.-gLevel — 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-rflag) or service packs (when used with the-sflag) that can be specified using the-lor-gflag.-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.
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 |
기본 수준. 예: 6.1.0.0(5.3 문서는 5.3.0.0) |
oslevel -r |
현재 AIX 버전에서 도달한 가장 높은 기술 수준 |
oslevel -rq |
알려진 기술 수준 목록. -r -l, -r -g에 쓸 수 있음. 예: 5300-02, 5300-01, 5300-00 |
oslevel -r -l 5300-01 |
AIX 5.3 기술 수준 1보다 낮은 소프트웨어 |
oslevel -r -g 5300-01 |
AIX 5.3 기술 수준 1보다 높은 소프트웨어 |
oslevel -s |
현재 기술 수준에서 도달한 가장 높은 서비스 팩 |
oslevel -sq |
알려진 서비스 팩 목록. -s -l, -s -g에 쓸 수 있음. 예: 6100-00-02-0750, 6100-00-01-0748, 6100-00-00-0000 |
oslevel -s -l 6100-00-01-0748 |
AIX 6.1 기술 수준 0 서비스 팩 1보다 낮은 소프트웨어 |
oslevel -s -g 6100-00-01-0748 |
AIX 6.1 기술 수준 0 서비스 팩 1보다 높은 소프트웨어 |
출력 예:
$ oslevel -s
6100-09-12-1846
$ oslevel -rq
Known Technology Levels
-----------------------
6100-09
6100-08
영어 원문
- To determine the base level of the system, type:
oslevel
The output will be similar to the following: 6.1.0.0
To determine the highest technology level reached for the current version of AIX on the system, type:
oslevel -rTo 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
To list which software is below AIX Version 5.3 technology level 1, type:
oslevel -r -l 5300-01To list which software is at a level later than AIX Version 5.3 technology level 1, type:
oslevel -r -g 5300-01To determine the highest service pack reached for the current technology level on the system, type:
oslevel -sTo 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
To list which software is below AIX Version 6.1 technology level 0, service pack 1, type:
oslevel -s -l 6100-00-01-0748To 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
파일
| 파일 | 설명 |
|---|---|
/usr/bin/oslevel |
oslevel 명령 |
영어 원문
- /usr/bin/oslevel — Contains the oslevel command.
Related information:
- lslpp command
리눅스(GNU)와 다른 점
리눅스에서는 배포판의 패키지 관리자가 이 일을 합니다. AIX의 파일셋(fileset)은 RPM·DEB 패키지에, installp는 rpm -i/dnf install·dpkg -i/apt install에, lslpp -l은 rpm -qa·dpkg -l에, lslpp -f·-w는 rpm -ql·rpm -qf(또는 dpkg -L·dpkg -S)에 해당합니다. AIX의 TL·SP(기술 수준·서비스 팩) 개념은 없고 배포판 버전(/etc/os-release)과 커널 버전(uname -r)으로 봅니다. 긴급 수정(emgr)에 가까운 것은 커널 라이브 패치(kpatch, livepatch)입니다.