instfix 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-instfix
핵심 정리
- APAR 번호나 키워드만 알면 그 수정에 딸린 파일셋을 설치합니다:
instfix -k IZ12345 -d /dev/cd0. - 더 자주 쓰는 것은 확인입니다.
instfix -ik IZ12345(설치됐는지),instfix -i | grep ML(TL),instfix -i | grep SP,instfix -icqk 6100-09_AIX_ML | grep ":-:"(TL에 덜 올라간 파일셋). -v를 더하면 수정에 딸린 파일셋별 상태를 보여 주며, 설치되지 않은 것은!로 표시합니다.- 설치는 root만 할 수 있고, 확인은 누구나 할 수 있습니다. 임시 수정(efix)은 설치할 수 없고
emgr로 합니다. - 반환 코드는
/usr/include/inuerr.h에 있습니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 -R(설치 위치)과 -t i(임시 수정)가 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3 |
| 파일 | /usr/sbin/instfix, /usr/lib/objrepos/fix |
| 관련 명령어 | installp, lslpp, oslevel, emgr |
목적
키워드나 수정에 딸린 파일셋을 설치합니다.
영어 원문
Installs filesets associated with keywords or fixes.
구문
instfix [ -T [ -M Platform ] ] [ -s String ] [ -S ] [ -k Keyword | -f File ] [ -p ] [ -d Device ] [ -i [ -c ] [ -q ] [ -t Type ] [ -v ] [ -F ] ] [ -a ] [ -R ]
설명
instfix 명령은 APAR(Authorized Program Analysis Report) 번호나 수정을 식별하는 다른 고유 키워드만 알면 수정 하나나 여러 개를 설치할 수 있게 합니다.
수정은 파일셋 하나나 여러 개로 이루어집니다. 수정 정보는 설치 매체의 목차(TOC)에 있고, 수정을 설치한 뒤에는 시스템의 수정 데이터베이스에 남습니다.
instfix로 수정이 시스템에 설치되었는지 확인할 수도 있습니다.
참고:
- 반환 코드는
bos.adt.include파일셋에 든/usr/include/inuerr.h파일에 있습니다. 일반 실패 코드 1과,/usr/include/errno.h의 EACCES(13)도 씁니다. - 임시 수정 정보는
-f,-i,-k,-q,-r,-t,-v를 쓸 때만 나열할 수 있습니다.instfix로 임시 수정을 설치할 수는 없습니다.
영어 원문
The instfix command allows you to install a fix or set of fixes without knowing any information other than the Authorized Program Analysis Report (APAR) number or other unique keywords that identify the fix.
Any fix can have a single fileset or multiple filesets that comprise that fix. Fix information is organized in the Table of Contents (TOC) on the installation media. After a fix is installed, fix information is kept on the system in a fix database.
The instfix command can also be used to determine if a fix is installed on your system.
Notes:
Return codes for the instfix command are documented in the
/usr/include/inuerr.hfile, which is shipped with thebos.adt.includefileset. There is also a general failure code of 1 and a single reference to EACCES (13) from the/usr/include/errno.hfile.Listing interim fix information is possible only when using the
-f,-i,-k,-q,-r,-t, and-vflags. You cannot install the interim fixes using the instfix command.
플래그
| 플래그 | 설명 |
|---|---|
-a |
수정에 딸린 증상(symptom) 설명을 보여 줍니다. -i, -k, -f와 함께 쓸 수 있습니다. |
-c |
-i와 함께 콜론으로 구분한 출력을 냅니다. 키워드, 파일셋, 필요 수준, 설치 수준, 상태, 요약이 나옵니다. 설치되지 않은 파일셋도 보려면 -v도 줘야 합니다. 상태 값은 -(낮은 수준), =(맞는 수준), +(더 높은 수준으로 대체됨), !(설치되지 않음)입니다. |
-d Device |
입력 장치. -i, -a와 함께 쓸 수 없습니다. |
-F |
수정에 딸린 파일셋이 모두 설치되어 있지 않으면 실패를 돌려줍니다. |
-f File |
키워드나 수정이 든 입력 파일. -(빼기)는 표준 입력입니다. -T가 -f에 알맞은 입력 형식을 만듭니다. |
-i |
수정이나 키워드가 설치되었는지 보여 줍니다. -k나 -f와 함께 쓰며, 설치는 하지 않습니다. 둘 다 없으면 알려진 수정을 모두 보여 줍니다. |
-k Keyword |
설치할 APAR 번호나 키워드. 여럿이면 따옴표로 감싸고 공백으로 구분합니다. |
-M Platform |
그 플랫폼의 수정을 나열합니다. R은 POWER 프로세서 기반 플랫폼 전용, N은 POWER 전용이 아닌 중립 수정, A는 모든 수정. |
-p |
키워드에 딸린 파일셋을 보여 줍니다. -k나 -f와 함께 쓰며, 설치는 하지 않습니다. |
-q |
조용한 모드. -i와 함께 씁니다. -c를 쓰면 머리글을 보여 주지 않고, 아니면 아무것도 출력하지 않습니다. |
-R |
(6.1) 사용자 지정 설치 위치(USIL)를 지정합니다. |
-s String |
지정한 문자열이 든 수정을 매체에서 찾아 보여 줍니다. |
-S |
설치 장치가 CD-ROM일 때 다중 볼륨 처리를 하지 않습니다. CD-ROM 설치는 다중 볼륨 CD 세트의 정보가 있어도 늘 단일 볼륨으로 처리합니다. 환경 변수 INU_SINGLE_CD를 정해도 같습니다. |
-T |
매체에 있는 수정 목록 전체를 보여 줍니다. |
-t Type |
-i와 함께 검색을 지정한 유형으로 제한합니다. f는 수정, p는 예방 유지 보수, (6.1) i는 임시 수정. |
-v |
-i와 함께 자세한 모드로, 수정이나 키워드에 딸린 파일셋마다 정보를 보여 줍니다. 설치되지 않은 파일셋은 !(느낌표)로 표시합니다. |
영어 원문
-a— Displays the symptom text associated with a fix. Can be combined with the-i,-k, or-fflag.-c— Displays colon-separated output for use with-iflag. Output includes keyword name, fileset name, required level, installed level, status, and abstract. To display filesets that are not installed, the-vflag must also be used. Status values are:-Down level = Correct level+Superseded ! Not installed-dDevice — Specifies the input device. Not valid with the-iand-aflags.-F— Returns failure unless all filesets associated with the fix are installed.-fFile — Specifies the input file containing keywords or fixes. Use-(dash) for standard input. The-Tflag produces a suitable input file format for-f.-i— Displays whether fixes or keywords are installed. Use this flag with either the-kor the-fflag. Installation is not attempted when the-iflag is used. If you do not specify the-kor the-fflag, all known fixes are displayed.-kKeyword — Specifies an APAR number or keyword to be installed. Multiple keywords can be entered. A list of keywords entered with the-kflag must be contained in quotation marks and separated with spaces.-MPlatform — Specifies that any of the Platform values might be used to list the fixes for that particular platform. R Specifies POWER processor-based platform fixes only. N Specifies neutral fixes, that is, fixes that are not restricted to the POWER processor-based platform. A Specifies all fixes.-p— Displays file sets associated with keywords. This flag is used with either the-kor the-fflag. Installation is not attempted when the-pflag is used.-q— Specifies quiet mode. Use this flag with the-iflag. If you use the-cflag, no heading is displayed, otherwise there is no output.-R— Specifies the User Specified Installation Location (USIL).-sString — Searches for and displays fixes on media containing a specified string.-S— Suppresses multiple volume processing when the installation device is a CD-ROM. Installation from aCD_ROMis always treated as a single volume, even if the CD-ROM contains information for a multiple volume CD set. This same suppression of multiple volume processing is performed if theINU_SINGLE_CDenvironment is set.-T— Displays the entire list of fixes present on the media.-tType — Limits the search operation to a given type when used with the-iflag. Valid types are: f fix p preventive maintenance i interim fix-v— Specifies verbose mode when used with the-iflag. Displays information about each fileset associated with a fix or keyword. Use this flag with the-iflag to display filesets that are not installed. An uninstalled fileset is indicated by an!(exclamation point).
보안
특권 제어: instfix로 설치하려면 root여야 하지만, 수정 데이터베이스 조회는 누구나 할 수 있습니다.
영어 원문
Privilege Control: You must be the root user to install using the instfix command, but any user can run the instfix command to query the fix database.
예제
| 명령 | 하는 일 |
|---|---|
instfix -k IX38794 -d /dev/rmt0.1 |
/dev/rmt0.1 테이프에서 수정 IX38794에 딸린 파일셋을 모두 설치 |
instfix -s SCSI -d /dev/rmt0.1 |
테이프에서 문자열 SCSI가 든 키워드 항목을 모두 나열 |
instfix -i -k "IX38794 IX48523" |
수정 IX38794, IX48523이 설치되었는지 알려 줌 |
instfix -T -MN -d /dev/cd0 |
POWER 전용이 아닌 수정을 모두 나열 |
테이프의 수정을 모두 설치합니다. 앞쪽이 매체의 수정 목록을 만들고 뒤쪽이 그 목록을 입력으로 씁니다.
instfix -T -d /dev/rmt0.1 | instfix -d /dev/rmt0.1 -f-
/bffs 디렉터리의 BFF에서 수정 IX12345에 딸린 파일셋 목록을 만들어 installp로 적용·확정합니다. 표시한 플래그로 installp가 필요하면 파일 시스템을 늘리며, 다른 installp 플래그를 골라 쓸 수 있습니다. -p를 쓰지 않으면 instfix가 installp를 직접 부릅니다.
instfix -p -k IX12345 -d /bffs | installp -acgX -f- -d /bffs
자주 쓰는 형태:
instfix -i | grep ML # 모든 TL이 완전히 설치됐는지
instfix -i | grep SP
instfix -icqk 6100-09_AIX_ML | grep ":-:" # TL보다 낮은 파일셋
instfix -ivk IZ12345
영어 원문
- To install all filesets associated with fix
IX38794from the tape mounted on/dev/rmt0.1, type:
instfix -k IX38794 -d /dev/rmt0.1
- To install all fixes on the media in the tape drive, type:
instfix -T -d /dev/rmt0.1 | instfix -d /dev/rmt0.1 -f-
The first part of this command lists the fixes on the media, and the second part of this command uses the list as input.
- To list all keyword entries on the tape containing the string
SCSI, type:
instfix -s SCSI -d /dev/rmt0.1
- To inform the user on whether fixes
IX38794andIX48523are installed, type:
instfix -i -k "IX38794 IX48523"
- To create a list of filesets associated with fix
IX12345forbffsin the/bffsdirectory, type:
instfix -p -k IX12345 -d /bffs | installp -acgX -f- -d /bffs
This sequence passes the list of fixes to the installp command to be applied and committed. The installp command extends filesystems as needed with the flags shown. This example shows that you can select other installp flags. The instfix command calls installp if the -p flag is not used.
- To list all of the fixes that are not restricted to the POWER processor-based platform, type:
instfix -T -MN -d /dev/cd0
파일
| 파일 | 설명 |
|---|---|
/usr/sbin/instfix |
instfix 명령 |
/usr/lib/objrepos/fix |
ODM 수정 데이터베이스 경로 |
영어 원문
- /usr/sbin/instfix — Contains the instfix command.
- /usr/lib/objrepos/fix — Specifies the path to the Object Data Manager database.
Related reference:
- installp 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)입니다. APAR 단위 확인에 가까운 것은 rpm -q --changelog 패키지 | grep CVE-…나 dnf updateinfo list입니다.