[AIX 진단 서브시스템 15] 진단 객체 클래스(ODM)
https://archive.horanglab.com/posts/aix-diag-odm
핵심 정리
- 사전 정의(predefined) 클래스는 시스템·자원에 관한 고정 정보를, 사용자 정의(customized) 클래스는 진단 실행 중에 만들어 쓰는 정보를 담습니다.
- PDiagRes는 진단이 지원하는 자원과 시험 정보(DA 이름 DaName, 지원 시험 SupTests, 메뉴 Menu, 다음 시험 DNext, 실행 환경 DiagEnvironment, 적재할 커널 확장 KernExt 등)를 정의합니다. PDiagDev와 DSMOptions는 하위 호환용이며 새로 개발할 때는 PDiagRes를 씁니다.
- PDiagAtt는 장치별 속성입니다. SupTasks(지원 작업), 작업용 응용 프로그램(DApp),
platform_task+,notify_service/notify_extern(외부 알림 프로그램 등록),extend_gen_eed(추가 EED 수집) 등을 정의합니다. 검색 순서는 DClass·DSClass·DType → DClass·DSClass → DClass입니다. - PDiagTask는 작업 메뉴의 작업을 정의합니다(TaskId, 표시 순서, 자원 선택 메뉴 여부 ResourceFlag, 환경 비트, Action 프로그램).
- 실행 중에는 CDiagAtt(주기 시험 시각, 목록에서 지운 자원), TMInput(DA 입력: 실행 환경, 고급 여부, 진단 모드, 루프 모드 등), MenuGoal, FRUB/FRUs(FRU 보고), DAVars(DA 변수)를 씁니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (내용이 같음) |
| 원문 | Understanding the Diagnostic Subsystem for AIX — 5.3판 3장(177194쪽), 6.1판 168184쪽 |
| 헤더 | /usr/include/diag/*.h(값 정의), /usr/include/diag/tmdefs.h(TMInput 값) |
| 관련 명령 | odmget, odmadd, lscfg, diag |
이 주제는 여러 진단 ODM 객체 클래스의 유형을 설명합니다.
진단 패키지에는 진단 구성 요소가 널리 쓰는 ODM 객체 클래스가 들어 있습니다. 어떤 객체 클래스는 시스템과 자원에 관한 '사전 정의(predefined)' 진단 정보를 저장합니다. 다른 객체 클래스는 진단이 실행되는 동안 만들어 쓰는 '사용자 정의(customized)' 정보를 저장합니다.
진단 ODM 객체 클래스는 다음과 같습니다.
영어 원문
Diagnostic object classes
This topic describes the types of various Diagnostic ODM object classes.
The Diagnostic Package contains ODM object classes that are used extensively by the Diagnostic components. Some object classes store 'predefined' diagnostic information about the system and resources. Other object classes store 'customized' information that is built and used during runtime operation of diagnostics.
The following is a list of the Diagnostic ODM object classes:
사전 정의 진단 자원 객체 클래스(PDiagRes)
사전 정의 진단 자원 객체 클래스(PDiagRes)는 진단이 지원하는 자원을 나타내며, 자원을 시험하는 데 필요한 추가 정보를 줍니다.
PDiagRes 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class PDiagRes {
char Uniquetype[48];
short Ports;
short PSet;
short PreTest;
char AttUniquetype[48];
short SupTests;
short Menu;
short DNext;
vchar DaName[255];
char PkgBlock[5];
vchar EnclDaName[255];
vchar SysxApp[255];
vchar SupTasks[255];
long FFC;
short Fru;
long TestSuiteId;
long DiagEnvironment;
vchar KernExt[255];
char Version[5];
};
| 필드 | 설명 |
|---|---|
| Uniquetype | 사전 정의 장치 "class/subclass/type" |
| Ports | 자원 선택(Resource Selection) 메뉴에서 장치를 그 자식으로 나타낼지 정합니다. 사용자에게 잘 알려진 장치 이름(예: 직렬 포트보다 프린터)을 쓰려는 것입니다. DIAG_NO(0): 자식 장치를 정의하지 않음. DIAG_YES(1): 자식 장치를 정의함. 자식 장치를 정의할지 정할 때는 장치가 스스로 판별되는지, 곧 장치가 실제로 없으면 mkdev 명령이 실패하는지 생각합니다. |
| PSet | dcda.cat이나 그 장치용으로 예약한 진단 응용 프로그램 카탈로그 파일의 메시지 세트. Ports가 0이 아니면 세트의 첫 메시지는 어댑터 포트를 설명합니다. 이 어댑터 텍스트를 실제 장치 텍스트 대신 써서, 실제로 없는 장치가 있다고 고객이 오해하지 않게 합니다. 나머지 메시지는 DA가 FRU를 보고할 때 이름을 대는 이유 코드 텍스트에 씁니다. 진단 패키지에 통합한 모든 진단 응용 프로그램은 진단 응용 프로그램 카탈로그 파일을 써야 하며, 이렇게 하면 진단 코드를 설치하고 유지하기가 더 유연해집니다. 이 카탈로그 파일을 쓰려면 Menu 필드의 DIAG_DA_SRN 비트를 설정합니다. |
| PreTest | 시스템을 올리기 전에 장치를 시험해야 함을 나타냅니다. 사전 시험은 키를 서비스 위치에 두고 시스템을 IPL할 때 일어납니다. 키보드 장치, 내장 직렬 포트, 디스플레이 어댑터는 보통 사전 시험합니다. |
| AttUniquetype | Ports 필드가 설정되었을 때 정의할 자식 장치의 class/subclass/type. 지정한 장치에는 진단을 지원하는 장치 드라이버 묶음이 있어야 합니다. |
| SupTests | DA가 지원하는 시험 유형(아래 표). 둘 이상 지정할 수 있습니다. 자세한 내용은 "진단의 영향 단계 나누기(Staging the Impact of Diagnostics)"를 봅니다. |
| Menu | 장치를 넣을 진단 메뉴(아래 표) |
| DNext | 다음에 시험할 자원. DIAG_PAR(0x0001) 부모 자원, DIAG_SIB(0x0002) 형제 자원 |
| DaName | 장치에 연결된 DA의 이름 |
| PkgBlock | 이동식 매체 진단 패키지에서 장치의 DA가 든 블록 번호. DA가 보조(Supplemental) 디스켓에 있으면 "S", 콘솔 장치로 쓸 수 있는 그래픽 어댑터의 DA면 "3S"여야 합니다. |
| EnclDaName | 장치 구성에 명시적으로 나타나지 않지만 빠진 장치보다 먼저 처리해야 하는 인클로저의 빠진 장치 분석을 하는 DA 이름. 많은 인클로저에는 케이블, 전원, 표시등 등을 확인하는 자체 문제 판별 절차가 있으며, 같은 인클로저에 있는 빠진 장치의 형제를 쓸 수 있는지 알면 도움이 되는 경우가 많습니다. 나타나지 않은 장치(예: 외부 인클로저나 서랍)의 빠진 장치 진단에 별도 DA를 지정하면, 이 논리를 브리지 박스나 서랍에서 동작할 수 있는 장치를 지원하는 DA마다 흩어 두지 않고 명령 하나에 모을 수 있습니다. 대부분의 장치에서는 비어 있습니다. 사용자가 장치를 옮기거나 끄지 않았다고 하면 진단 컨트롤러가 EnclDaName을 부르며, DaName보다 먼저 부릅니다. |
| SysxApp | 이 자원에 대해 시스템 실행기(system exerciser) 기능을 하는 응용 프로그램. 지금은 쓰지 않는 예약 필드이며 비워 둡니다. |
| SupTasks | 예약. 호환을 위해 남겨 둔 필드이며 쓰면 안 됩니다. 자세한 내용은 PDiagAtt를 봅니다. |
| FFC | 자원의 고장 기능 코드(Failing Function Code). PdDv의 led 값을 덮어쓰는 데 쓸 수 있습니다. |
| Fru | 현장 교체 단위(FRU) 표시. PdDv의 fru 값을 덮어쓰는 데 쓸 수 있습니다. 0 FRU 아님, 1 자기 자신이 FRU, 2 부모가 FRU, 3 혼합(통합 장치일 수도 비통합 장치일 수도 있음) |
| TestSuiteId | 이 자원이 속한 시험 묶음(test suite)을 나타내는 비트 마스크(아래 표) |
| DiagEnvironment | 이 자원이 실행될 수 있는 여러 시험 모드 환경을 나타내는 비트 마스크(아래 표) |
| KernExt | 이 자원에 적재할 커널 확장의 쉼표 구분 목록. 커널 확장 앞에 플랫폼 유형을 붙여 그 플랫폼에서만 적재하게 할 수 있습니다. 예를 들어 chrp:device_kext,pdiagex는 pdiagex는 늘 적재하고 device_kext는 'chrp' 플랫폼에서만 적재하라는 뜻입니다. 플랫폼 이름은 lscfg 명령의 출력에서 Architecture 줄을 찾아(grep Architecture) 얻습니다. |
| Version | 이 자원 스탠자의 버전 변경 번호. 1.0이어야 합니다. |
SupTests 값
| 값 | 뜻 |
|---|---|
SUPTESTS_SHR (0x0001) |
공유(shared) 시험 지원 |
SUPTESTS_SUB (0x0002) |
하위(sub) 시험 지원 |
SUPTESTS_FULL (0x0004) |
전체(full) 시험 지원 |
SUPTESTS_MS1 (0x0008) |
장치가 왜 감지되지 않았는지 알아내는 선택 절차. 보통 외부 전원 공급 장치가 있는 장치에 지정하며, 빠진 자원(Missing Resource) 메뉴의 첫 번째 선택에 연결됩니다. |
SUPTESTS_MS2 (0x0010) |
장치를 뺐을 때 장치별 동작을 하는 선택 절차. 예를 들어 DA가 하위 시스템(LVM)에 물리 자원(디스크)이 빠졌다고 알리거나 장치 삭제에 대해 경고할 수 있습니다. 지정하지 않으면 진단 컨트롤러가 장치를 지우고, 지정하면 DA가 장치를 지워야 합니다. 장치는 장치의 Undefine 메서드를 불러 지웁니다. 빠진 자원 메뉴의 두 번째 선택에 연결됩니다. |
Menu 값
| 값 | 뜻 |
|---|---|
DIAG_DTL (0x0001) |
진단 시험 목록(Diagnostic Test List) 메뉴 |
DIAG_NOTDLT (0x0002) |
진단 시험 목록 메뉴에서 장치를 지우지 못하게 함(예: 외부 디스플레이 인클로저의 VME 어댑터) |
DIAG_DS (0x0004) |
진단 선택(Diagnostic Selection) 메뉴에 장치를 넣음 |
DIAG_CON (0x0008) |
자식이 붙어 있지 않으면 장치를 자원 선택 메뉴에 넣고, 붙어 있으면 자식 장치를 넣고 이 장치는 넣지 않음 |
DIAG_DA_SRN (0x0010) |
장치의 SRN 텍스트가 진단 응용 프로그램 카탈로그 파일에 있음 |
TestSuiteId 비트
| 비트 | 시험 묶음 |
|---|---|
| 1 | 기본 시스템(플레이너, 메모리 등) |
| 2 | I/O 장치(키보드, 마우스 등) |
| 4 | 비동기 장치 |
| 8 | 그래픽 |
| 16 | SCSI 어댑터 |
| 32 | 저장 장치(디스크, 디스켓, 테이프 등) |
| 64 | 통신(Commo) |
| 128 | 멀티미디어 |
| 256 | 기타 장치 |
DiagEnvironment 비트
| 비트 | 뜻 |
|---|---|
| 1 | 동시(concurrent) 모드 진단 지원 |
| 2 | ELA 지원 |
| 4 | LFT 장치(X와 함께 실행하면 안 됨) |
| 8 | 그룹 구성원. 메모리나 SIMM처럼 묶음 그룹의 일부인 자원이면 설정 |
| 16 | 동시 모드에서만 ELA 지원 |
| 32 | WEBDIAG 모드에서 지원하지 않음 |
| 64 | 이 객체가 여러 자원 유형을 지원함. 자원의 유형은 CuAt 객체 attribute=aix-subtype에서 찾으며, 그 속성 값이 유형이고 이 값으로 자원을 지원하는 특정 PDiagRes를 찾습니다. CuAt 객체 값이 "nodiag"면 진단이 그 자원을 지원하지 않는다는 뜻입니다. |
| 1024 | KernExt에 나열한 커널 확장이 64비트 커널에서 지원됨 |
참고: 모든 값은 /usr/include/diag 디렉터리 아래 헤더 파일에 있습니다.
영어 원문
Predefined Diagnostic Resource Object Class
The Predefined Diagnostic Resource object class (PDiagRes) identifies the resources supported by diagnostics and provides additional information needed to test the resource.
The PDiagRes object class structure is defined as:
(21줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
- Uniquetype — Predefined device "class/subclass/type."
- Ports — Indicates if the device will be represented in the Resource Selection menu by its children. The intent is to use device names that are well known to the user (for example, printers rather than serial ports). The values are as follows:
DIAG_NO(0) Child devices should not be defined.DIAG_YES(1) Child devices should be defined. When determining whether a child device should be defined, consider whether the device is self-determining. Will the mkdev command be unsuccessful if the device is not really there? - PSet — Identifies the message set in either dcda.cat or the diagnostic application catalog file reserved for the device. If the Ports field is not equal to 0, the first message in the set describes the adapter port. This adapter text is used in place of the real device text so that the customers are not misled into thinking that they have devices that are not actually present. The additional messages are used for reason-code text, which the DAs name when reporting FRUs. The diagnostic application catalog file should be used by all diagnostic applications integrated into the Diagnostic Package. This capability allows for greater flexibility in installing and maintaining the diagnostic code. To use this catalog file, set bit
DIAG_DA_SRNin the Menu field. - PreTest — Indicates that the device should be tested before the system is brought up. Pretest occurs when the system is initial-program loaded with the key in service position. The keyboard device, native serial ports, and display adapters are normally pretested.
- AttUniquetype — The device class/subclass/type of the child device to define when the Ports field is set. The device named should include a set of device drivers that contain support for diagnostics.
- SupTests — Identifies the types of tests supported by the DA. See Staging the Impact of Diagnostics for more information. More than one of the following types may be specified:
SUPTESTS_SHR(0x0001) Shared tests are supported.SUPTESTS_SUB(0x0002) Sub-tests are supported.SUPTESTS_FULL(0x0004) Full-tests are supported.SUPTESTS_MS1(0x0008) An optional procedure that determines why the device was not detected. This procedure is typically specified for devices that have external power supplies. This procedure is associated with the first selection at the Missing Resource menu.SUPTESTS_MS2(0x0010) An optional procedure that performs device-specific actions when a device is removed. For example, the DA might notify a subsystem (LVM) that a physical resource (disk) has been removed. Or the DA might provide warning about deleting a device. If this procedure is not specified, the Diagnostic Controller deletes the device. If it is specified, the DA should delete the device. Devices are deleted by calling the device's Undefine Method. This procedure is associated with the second selection at the Missing Resource menu. - Menu — Identifies the diagnostic menus in which the device should be included. The values are as follows:
DIAG_DTL(0x0001) The Diagnostic Test List menu.DIAG_NOTDLT(0x0002) Indicates that the device should not be allowed to be deleted from the Diagnostic Test List menu; for example, the VME adapters in the external display enclosure.DIAG_DS(0x0004) Indicates that the device should be included in the Diagnostic Selection menu.DIAG_CON(0x0008) Indicates that the device should be put in the Resource Selection menu if no children are attached; otherwise, the child device is put in the menu and the named device is not.DIAG_DA_SRN(0x0010) Indicates that the device's SRN text resides in the diagnostic applications catalog file. - DNext — Indicates the resource to be tested next. The values are as follows:
DIAG_PAR(0x0001) The parent resource.DIAG_SIB(0x0002) A sibling resource. - DaName — The name of the DA associated with the device.
- PkgBlock — The block number that includes the DA associated with the device for the Removable Media Diagnostic package. This value should be an "S" if the DA is on a Supplemental Diskette, or a "3S" if the DA is a graphics adapter that can be used as a console device.
- EnclDaName — This field names a DA that provides missing-device analysis for an enclosure that is not explicitly represented in the device configuration, but that needs to be processed before the missing device. Many enclosures have their own problem-determination procedures for checking cabling, power, idiot lights, and so on, and frequently, it is helpful to know if a sibling of the missing device in the same enclosure is available. The specification of a separate DA to missing-device diagnostics for devices not represented (for example, external enclosures or drawers) centralizes this logic in a single command instead of distributing it among each DA supporting a device that can operate in a bridge box or drawer. For most devices, this field is null. The Diagnostic Controller calls the EnclDaName field, if the user indicates that the device has not been moved or turned off. The EnclDaName field is called before DaName.
- SysxApp — Identifies the application to invoke that performs a system exerciser function for this resource. While not currently used, this is a reserved field, and should be left blank.
- SupTasks — Reserved. This field is retained for compatibility and should not be used. For more information, see Predefined Diagnostic Attribute Device.
- FFC — Failing Function Code for the resource. (may be used to override the PdDv led value)
- Fru — Field Replaceable Unit indicator. (may be used to override the PdDv fru value): 0 No-Fru 1 Self-FRU 2 Parent-FRU 3 Hybrid - Could be integrated or nonintegrated device.
- TestSuiteId — Bit mask indicating test suite this resource is a member of:
- 1 — Base system (planars, memory, etc.)
- 2 — I/O Device (keyboard, mouse, etc.)
- 4 — Asynchronous Device
- 8 — Graphics
- 16 — SCSI Adapters
- 32 — Storage Device (disks, diskettes, tapes, etc.)
- 64 — Commo
- 128 — Multimedia
- 256 — Miscellaneous Devices
- DiagEnvironment Bit mask indicating various test mode environments this resource is capable of running in:
- 1 — Supports Diagnostics in concurrent mode
- 2 — Supports ELA
- 4 — LFT Device (should not be run with X)
- 8 — Group Member, set if this resource is part of a conglomerate group, such as memory, or SIMMS.
- 16 — Resource supports ELA in concurrent mode only
- 32 — Resource is not supported under WEBDIAG mode.
- 64 — This object supports multiple resource types. The type for a given resource is found in the CuAt object attribute=aix-subtype. The value of the attribute is the type and is used to find the specific PDiagRes that supports the resource. A value of "nodiag" in the CuAt object indicates that the resource is not supported by diagnostics.
- 1024 — The kernel extensions listed in KernExt are supported on the 64-bit kernel.
- KernExt — ',' separated list of kernel extensions to load for this resource. Each kernel extension may be preceded by a platform type to indicate the platform that the kernel extension should be loaded on. For example,
chrp:device_kext, pdiagex would indicate to always load pdiagex, and to conditionally loaddevice_kextonly on a 'chrp' platform. The platform name is derived as the output from the lscfg|grep Architecture command. - Version — Version change number for this resource stanza. This value should be 1.0.
- Note: All values can be found in header files under /usr/include/diag directory.
사전 정의 진단 속성 장치 객체 클래스(PDiagAtt)
사전 정의 진단 속성 장치 객체 클래스(PDiagAtt)에는 DA, 진단 컨트롤러, 서비스 보조가 쓰는 장치별 속성이 들어 있습니다.
PDiagAtt 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class PDiagAtt {
char DClass[16];
char DSClass[16];
char DType[16];
char attribute[16];
vchar value[255];
char rep[8];
vchar DApp[255];
};
| 필드 | 설명 |
|---|---|
| DClass | 사전 정의 장치 클래스. 장치는 DClass, DSClass, DType의 조합으로 고유하게 식별됩니다. |
| DSClass | 사전 정의 장치 하위 클래스. 장치는 DClass, DSClass, DType의 조합으로 고유하게 식별됩니다. |
| DType | 사전 정의 장치 유형 |
| attribute | 16바이트 char 필드. 서비스 보조가 장치의 시험 모드를 정하는 데 쓰는 속성 값은 test_mode이며 value 필드를 씁니다. |
| value | 255바이트 가변 char 필드 |
| rep | 8바이트 char 필드 |
| DApp | 255바이트 가변 char 필드 |
각 필드의 뜻은 PDiagAtt를 쓰는 응용 프로그램마다 따로 정해집니다.
예
자원이 지원하는 작업을 지정하려면 자원에 대한 PDiagAtt 스탠자를 만들고 value 필드에 지원 작업을 적습니다.
PDiagAtt:
DClass = "disk"
DSClass = "scsi"
DType = ""
attribute = "SupTasks"
value = "1,2,7,8,9,10,13,14,16,31,33"
rep = "s"
PDiagAtt:
DClass = "disk"
DSClass = "scsi"
DType = "355mb"
attribute = "SupTasks"
value = "1,2,7,8,9,10,13,14,31,33"
rep = "s"
자원이 지원하는 작업을 정할 때 컨트롤러가 찾는 순서는 다음과 같습니다.
DClass, DSClass, DType
DClass, DSClass
DClass
위 예에서 디스크 유형이 355mb면 ODM을 찾는 첫 호출에서 맞는 것이 나오고, 아니면 두 번째 호출에서 나옵니다.
참고: 355mb에는 마이크로코드 내려받기인 작업 ID 16이 없습니다.
작업을 지원하는 특정 자원에 대해 진단 컨트롤러가 실행할 응용 프로그램을 지정하려면 다음과 비슷한 스탠자가 필요합니다. 이 예는 diskette/siofd/fd 조건에 맞는 선택 자원에서 포맷 작업을 시작하려고 컨트롤러가 ufd를 부르게 합니다.
PDiagAtt:
DClass = "diskette"
DSClass = "siofd"
DType = "fd"
attribute = "format"
value = ""
rep = "s"
DApp = "ufd"
다음 스탠자는 진단 컨트롤러의 현재 릴리스 수준을 나타냅니다.
PDiagAtt:
DType = "Dctrl"
attribute = "version"
value = "xxx" #This is the diagnostic
#version level seen on
#the Operating
#Instructions Menu.
rep = "s"
NoScreen 속성은 테스트 패턴 표시(Display Test Pattern) 서비스 보조가 그래픽 어댑터 전용 응용 프로그램으로 서비스 보조 화면을 표시해야 할 때를 정하는 데 씁니다.
PDiagAtt:
DType = "2b101a05"
DSClass = "pci"
attribute = "NoScreen"
value = "/usr/lpp/diagnostics/da/dsage -P"
rep = "NotOpen"
DClass = "adapter"
DApp = "u5081"
이 스탠자를 쓰는 서비스 보조는 /usr/lpp/diagnostics/bin/u5081입니다. 만들어 실행하는 명령은 다음과 같습니다.
/usr/lpp/diagnostics/da/dsage <device name> -P
platform_task+ 속성은 제3자가 하드웨어 플랫폼에 따라 작업 목록(Task List)에 작업을 더할 수 있게 합니다. DApp 필드는 작업 목록에 넣을 작업의 플랫폼을 지정하고, value 필드는 더할 작업 ID를 쉼표로 구분해 담습니다.
PDiagAtt:
DType = ""
DSClass = ""
attribute = "platform_task+"
value = "101,102,110"
rep = ""
DClass = ""
DApp = "rspc"
위 예에서는 ID가 101, 102, 110인 작업이 ISA 버스 기반 플랫폼의 작업 목록에 들어갑니다. platform_task+ 속성을 가진 PDiagAtt 스탠자를 여럿 둘 수 있습니다.
참고: DApp 필드의 플랫폼 값은 lscfg | grep Architecture 명령으로 얻는 문자열입니다.
진단 컨트롤러에 외부 알림 프로그램을 등록하려면 다음과 같이 합니다.
- 시스템을 HMC(Hardware Management Console)가 관리할 때의 PDiagAtt:
DType = <fileset nickname>
DSClass = " "
attribute = "notify_service"
value = " "
rep = "s"
DClass = " "
Dapp = <complete path to external notification program>
- 시스템을 HMC가 관리하지 않을 때의 PDiagAtt:
DType = <fileset nickname>
DSClass = " "
attribute = "notify_extern"
value = " "
rep = "s"
DClass = " "
Dapp = <complete path to external notification program>
여기서 <fileset nickname>은 이 스탠자를 실어 보내는 파일 세트를 나타내는 15자 이하의 문자열입니다. 예를 들어 devices.chrp.base.diag 파일 세트는 DevChrBasDiag라는 별칭을 쓸 수 있습니다. DApp에 지정한 응용 프로그램은 진단 이벤트 로그 순번 하나나 순번 목록을 인수로 실행됩니다.
외부 알림 프로그램을 위해 추가 확장 오류 데이터(EED)를 모으는 응용 프로그램을 등록하려면 다음과 같이 합니다.
PDiagAtt:
DType = <fileset nickname>
DSClass = " "
attribute = "extend_gen_eed"
value = " "
rep = "s"
DClass = " "
Dapp = <complete path to the collection application>
여기서 <fileset nickname>은 위와 같습니다. DApp에 지정한 응용 프로그램은 디렉터리 이름을 인수로 실행되며, 모은 데이터를 그 디렉터리의 파일에 넣어야 합니다. DApp 문자열에 -s가 있으면 응용 프로그램을 -s <오류 로그 순번>과 -d <디렉터리> 플래그로 실행합니다.
영어 원문
Predefined Diagnostic Attribute Device Object Class
The Predefined Diagnostic Attribute Device object class (PDiagAtt) contains device- specific attributes for the DAs, diagnostic controller, and service aids to use.
The PDiagAtt object class structure is defined as:
class PDiagAtt {
char DClass[16];
char DSClass[16];
char DType[16];
char attribute[16];
vchar value[255];
char rep[8];
vchar DApp[255];
};
- DClass — Predefined device class. Devices are uniquely identified by a combination of DClass, DSClass, and DType.
- DSClass — Predefined device sub-class. Devices are uniquely identified by a combination of of DClass, DSClass, and DType.
- DType — Predefined device type.
- attribute — 16-byte char field. The attribute value used by service aids to determine test mode for devices is
test_mode. Uses value field. - value — 255-byte variable char field.
- rep — 8-byte char field.
- DApp — 255-byte variable char field.
Each field has specific meaning to each application that utilizes the Predefined Diagnostic Attribute Device object class (PDiagAtt).
EXAMPLES
- To specify the tasks that are supported by a resource, create a PDiagAtt stanza for the resource, indicating the supported tasks in the value field.
(14줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The search order performed by the Controller when determining the tasks a resource supports is as follows:
DClass, DSClass, DType
DClass, DSClass
DClass
In the above example, if the disk type is 355mb, a match on the first call to search ODM is made; if not, a match will be made on the second call.
Note: The 355mb does not have task id 16, which is microcode download.
- To specify the application for the Diagnostic Controller to execute for a specific resource that supports a task, then a stanza similar to the following is needed. This example tells the Controller to invoke ufd to start a format task on the selected resource that matches the diskette/siofd/fd criteria.
PDiagAtt:
DClass = "diskette"
DSClass = "siofd"
DType = "fd"
attribute = "format"
value = ""
rep = "s"
DApp = "ufd"
- The following stanza indicates the current release level of the Diagnostic Controller:
PDiagAtt:
DType = "Dctrl"
attribute = "version"
value = "xxx" #This is the diagnostic
#version level seen on
#the Operating
#Instructions Menu.
rep = "s"
- The NoScreen attribute is used by Display Test Pattern Service Aid to determine when a graphics adapter specific application should be used to display the screens for the service aid.
PDiagAtt:
DType = "2b101a05"
DSClass = "pci"
attribute = "NoScreen"
value = "/usr/lpp/diagnostics/da/dsage -P"
rep = "NotOpen"
DClass = "adapter"
DApp = "u5081"
The service aid that uses this stanza is /usr/lpp/diagnostics/bin/u5081. The command that is built and executed is:
/usr/lpp/diagnostics/da/dsage <device name> -P
- The
platform_task+attribute allows third parties to add tasks to the Task List based on the hardware platform. The DApp field specifies the platform for the tasks in the Task List. The value field of the stanza contains a comma delimited list of the task IDs to be added.
PDiagAtt:
DType = ""
DSClass = ""
attribute = "platform_task+"
value = "101,102,110"
rep = ""
DClass = ""
DApp = "rspc"
In the example above, the tasks whose IDs are 101, 102 and 110 will be included in the task list on an ISA-bus based platform. Multiple PDiagAtt stanzas with the platform_task+ attribute are allowed.
Note: The platform value for the DApp field is the string obtained by using the lscfg | grep Architecture command.
- To register external notification programs with the Diagnostic Controller:
- When the system is managed by a Hardware Management Console. PDiagAtt:
DType = <fileset nickname>
DSClass = " "
attribute = "notify_service"
value = " "
rep = "s"
DClass = " "
Dapp = <complete path to external notification program>
- When the system is not managed by a Hardware Management Console. PDiagAtt:
DType = <fileset nickname>
DSClass = " "
attribute = "notify_extern"
value = " "
rep = "s"
DClass = " "
Dapp = <complete path to external notification program>
where <fileset nickname> is any 15 character or less string that represents which fileset ships this stanza. For example, fileset devices.chrp.base.diag might use a nickname DevChrBasDiag. The application named in DApp will be executed with a diagnostics event log sequence number, or a list of sequence numbers.
- To register an application to gather additional Extended Error Data for external notification programs:
PDiagAtt:
DType = <fileset nickname>
DSClass = " "
attribute = "extend_gen_eed"
value = " "
rep = "s"
DClass = " "
Dapp = <complete path to the collection application>
where <fileset nickname> is any 15 character or less string that represents which fileset ships this stanza. For example, fileset devices.chrp.base.diag might use a nickname DevChrBasDiag. The application named in DApp will be executed with a directory name as an argument. The application should put the collected data in files in the given directory. If the string in DApp contains -s, then the application will be executed with flags -s <error log sequence number> and -d <directory>.
사전 정의 진단 작업 객체 클래스(PDiagTask)
사전 정의 진단 작업 객체 클래스(PDiagTask)는 진단이 지원하는 작업을 나타내며, 작업을 실행하는 데 필요한 추가 정보를 줍니다.
PDiagTask 객체 클래스 구조는 다음과 같습니다.
class PDiagTask {
long TaskId;
long SetId;
long MsgId;
long Multisession;
short Order;
long ResourceFlag;
long DiagEnvironment;
short Builtin;
vchar Action[255];
vchar Catalog[255];
vchar KernExt[255];
short DescriptionSetId;
short DescriptionMsgId;
char PkgBlock[5];
};
| 필드 | 설명 |
|---|---|
| TaskId | 작업을 나타내는 고유 번호 |
| SetId | '내장(built-in)' 작업이면 Dctrl.cat의, 아니면 이 작업에 지정한 카탈로그 파일의 카탈로그 세트 번호. SetId와 MsgId로 작업 선택(Task Selection) 메뉴에 작업 설명을 표시합니다. |
| MsgId | '내장' 작업이면 Dctrl.cat의, 아니면 이 작업에 지정한 카탈로그 파일의 카탈로그 메시지 번호. 쓰임은 SetId와 같습니다. |
| Multisession | 이 작업의 인스턴스 여럿을 동시에 실행할 수 있는지. 지금은 쓰지 않는 예약 필드이며 비워 둡니다. 0 아니요, 1 예 |
| Order | 작업 선택 메뉴에 작업을 표시할 순서. 0이면 순서가 필요 없다는 뜻이며 작업은 끝에 놓입니다. 900보다 크면 하위 작업(subtask)입니다. |
| ResourceFlag | 작업을 고른 뒤 자원 선택 메뉴를 보여 줄지 나타내는 플래그(아래 표). 자원을 고르면 그 자원 이름을 명령줄 인수로 작업을 부릅니다. 0이면 작업을 바로 부릅니다. |
| DiagEnvironment | 이 작업이 실행될 수 있는 여러 시험 모드 환경을 나타내는 비트 마스크(아래 표) |
| Builtin | 내장 작업(컨트롤러의 일부) |
| Action | 이 작업의 프로그램 기본 이름. 경로가 없으면 기본 경로 /usr/lpp/diagnostics/bin을 쓰고, 전체 경로를 주면 그 경로를 씁니다. 하위 작업 목록을 표시하는 작업을 만들 때는 action에 %이름과 각 하위 작업의 TaskId를 쉼표로 구분해 넣습니다. 작업과 하위 작업의 TaskId가 같으면 %이름을 쓸 수 있습니다(아래 예). |
| Catalog | 이 작업의 카탈로그 파일. 기본 메시지 텍스트가 든 카탈로그 파일은 /usr/lpp/diagnostics/catalog/default 디렉터리에, 번역된 파일은 /usr/lib/nls/msg/$LANG 디렉터리에 있다고 가정합니다. |
| KernExt | 이 작업에 적재할 커널 확장의 쉼표 구분 목록 |
| DescriptionSetId | '내장' 작업이면 Dctrl.cat의, 아니면 이 작업에 지정한 카탈로그 파일의 도움말 메시지 텍스트 세트 번호. DescriptionSetId와 DescriptionMsgId로 작업 선택 메뉴에 도움말 작업 설명을 표시합니다. |
| DescriptionMsgId | 도움말 메시지 텍스트의 카탈로그 메시지 번호. 쓰임은 DescriptionSetId와 같습니다. |
| PkgBlock | 이동식 매체 진단 패키지에서 작업이 든 블록 번호. 작업이 보조(Supplemental) 매체에 있으면 "S"여야 합니다. |
ResourceFlag 비트
| 비트 | 뜻 |
|---|---|
| 1 | 자원 선택 메뉴를 보여 주고 고른 자원을 넘김 |
| 2 | 자원 선택 메뉴를 보여 주고 고른 자원들을 넘김 |
| 4 | 자원 선택 메뉴를 보여 주고 All을 고르면 "ALL"을 넘김 |
| 8 | 작업을 실행한 뒤 자원 목록을 다시 만듦 |
| 16 | PDiagAtt에서 작업에 연결된 DApp을 찾음 |
| 32 | 작업이 콘솔 없음(No Console) 모드를 지원함 |
| 64 | 모든 자원이 작업을 지원해야 함 |
DiagEnvironment 비트
| 비트 | 뜻 |
|---|---|
| 1 | 서비스 모드 |
| 2 | 하드 파일 |
| 4 | 다중 프로세서 플랫폼 전용 |
| 8 | ISA 버스 기능 |
| 16 | RS6K와 RS6KSMP 플랫폼 전용 |
| 32 | 이동식 독립형(standalone) 매체 |
| 64 | 숨김. 작업 선택 목록에 표시하지 않음 |
| 128 | CHRP 플랫폼 |
| 256 | RSPC 플랫폼 |
| 512 | 웹 진단(WEB Diagnostics)에서 표시하지 않음 |
| 1024 | 작업과 KernExt에 나열한 커널 확장이 64비트 커널에서 지원됨 |
| 2048 | 작업이 지원되는지 알아보려면 -S 플래그로 작업에 물어야 함 |
작업과 하위 작업의 TaskId가 같은 경우의 Action 예입니다.
"%ThisTask,73,12,19" or "%ThisTask"
영어 원문
Predefined Diagnostic Task Object Class
The Predefined Diagnostic Task object class (PDiagTask) identifies the tasks supported by diagnostics and provides additional information needed to execute the task.
The PDiagTask object class structure is:
(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
- TaskId — Unique number identifying the task.
- SetId — Catalog set number in either Dctrl.cat for the 'built-in' tasks, or in the catalog file specified for this task. The Setid and Msgid are used to display the task description on the Task Selection Menu.
- MsgId — Catalog message number in either Dctrl.cat for the 'built-in' tasks, or in the catalog file specified for this task. The Setid and Msgid are used to display the task description on the Task Selection Menu.
- Multisession — Flag indicating whether multiple instances of this task can be run simultaneously. While not currently used, this is a reserved field, and should be left blank. 0 No 1 Yes
- Order — Order to display the tasks in the Task Selection Menu. Value of 0 implies no order required, and the task will be placed at the end. An order value greater than 900 implies that Task is a subtask.
- ResourceFlag — Flag indicating whether the Resource Selection menu should be presented after the task has been selected. If a resource is selected, then the task will be called with the resource name as a command-line argument to the task. If this value is 0, then the task is invoked directly.
- 1 — Present Resource Selection menu, and pass in selected Resource
- 2 — Present Resource Section menu, and pass in selected Resources
- 4 — Present Resource Selection menu, and pass in "ALL" if All is selected.
- 8 — Rebuild Resource List after executing Task
- 16 — Search PDiagAtt for DApp associated with Task
- 32 — Task supports No Console mode
- 64 — Task should be supported by all resources.
- DiagEnvironment Bit mask indicating various test mode environments this task is capable of running in.
- 1 — Service Mode
- 2 — Hardfile
- 4 — Multiple Processor Platform Specific
- 8 — ISA Bus Capability
- 16 — RS6K and RS6KSMP Platform Specific
- 32 — Removable Standalone Media
- 64 — Hidden, do not display in Task Selection List
- 128 — CHRP Platform
- 256 — RSPC Platform
- 512 — Do not display under WEB Diagnostics
- 1024 — Task and the kernel extensions listed in KernExt are supported on the 64-bit kernel.
- 2048 — The task should be queried with the
-Sflag to determine if it is supported. - Builtin Built-in task (part of the Controller). Action Basename of the program for this task. If no path given, then the default path of /usr/lpp/diagnostics/bin is used. If a complete path is given, then that path is used. When you
are creating a task that displays a subtask list, the action should include a %name,comma-separated list of TaskIds of each subtask. In cases where task and subtask have the same TaskId, a %name can be used. The following is an example of a task and a subtask that have the same TaskId:
"%ThisTask,73,12,19" or "%ThisTask"
Catalog Catalog file for this task. Catalog files containing default message text are assumed to be located in /usr/lpp/diagnostics/catalog/default directory. Translated files are assumed to be in /usr/lib/nls/msg/$LANG directories.
- KernExt — ',' separated list of kernel extensions to load for this task.
- DescriptionSetId — Catalog set number of the help message text in either Dctrl.cat for the 'built-in' tasks, or in the catalog file specified for this task. The DescriptionSetId and DescriptionMsgId are used to display the help task description on the Task Selection Menu.
- DescriptionMsgId — Catalog message number of the help message text in either Dctrl.cat for the 'built-in' tasks, or in the catalog file specified for this task. The DescriptionSetId and DescriptionMsgId are used to display the help task description on the Task Selection Menu.
- PkgBlock — Block number that includes the task on the Removable Media Diagnostic package. This value should be an "S" if the task is on a Supplemental Media.
사용자 정의 진단 속성 객체 클래스(CDiagAtt)
사용자 정의 진단 속성 객체 클래스(CDiagAtt)에는 현재 구성에서 찾은 장치 가운데 진단이 지원하는 일부 장치에 대한 사용자 정의 항목이 들어 있습니다.
CDiagAtt 객체 클래스는 장치의 특수한 진단 속성 상태를 나타냅니다. 현재 구성에서 찾은 장치에 관한 진단 정보를 세션이 바뀌어도 유지하는 데 씁니다.
CDiagAtt 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class CDiagAtt {
char name[16];
char attribute[16];
vchar value[255];
char type[8];
char rep[8];
};
| 필드 | 설명 |
|---|---|
| name | CuDv에 지정된 자원 이름 |
| attribute | 16바이트 char 필드. 컨트롤러가 장치의 영구 상태 데이터를 식별하는 데 쓰는 속성 값이며 value 필드를 씁니다. |
| value | 255바이트 가변 char 필드 |
| type | 데이터 형을 지정하는 8바이트 char 필드 |
| rep | 8바이트 char 필드 |
예
진단 컨트롤러는 진단 데몬이 주기적으로 시험하는 장치마다 CDiagAtt 항목을 만듭니다. 스탠자 형식은 다음과 같습니다(값 오른쪽은 설명입니다. p_test_time은 주기 시험 시각, 0300은 오전 3시, 9999는 시험하지 않음 표시).
CDiagAtt:
name = "hdisk0" Resource to test
attribute = "p_test_time" Attribute: periodic-test-time
value = "0300" Test time ( 3AM )
type = "T" Data type of ’text’
rep = "s" ’String’ representation
CDiagAtt:
name = "ent0" Resource name
attribute = "p_test_time"
value = "9999" Not tested
indication
type = "T"
rep = "s"
진단 컨트롤러는 자원 목록에서 지운 장치마다 CDiagAtt 항목을 만듭니다. 스탠자 형식은 다음과 같습니다.
CDiagAtt:
name = "mem0" Resource name
attribute = "not_in_tst_list" Device has been deleted from
value = "1" the Resource List
type = "T"
rep = "n"
영어 원문
Customized diagnostic attribute object class
The Customized Diagnostic Attribute object class (CDiagAtt) contains customized entries for selected devices found in the current configuration, which is supported by diagnostics.
The CDiagAtt object class indicates specialized diagnostic attribute status of the device. It is used to maintain diagnostic information about devices found in the current configuration across sessions.
The CDiagAtt object class structure is defined as:
class CDiagAtt {
char name[16];
char attribute[16];
vchar value[255];
char type[8];
char rep[8];
};
- name — Resource name as specified in CuDv.
- attribute — 16-byte char field. The attribute value used by the Controller to identify persistent state data for the device. Uses value field.
- value — 255-byte variable char field.
- type — 8-byte char field specifying data type.
- rep — 8-byte char field.
Examples
- The Diagnostic Controller creates a CDiagAtt entry for each device that is tested periodically by the Diagnostic daemon. The format of the stanza looks like:
(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
- The Diagnostic Controller creates a CDiagAtt entry for each device that has been deleted from the resource list. The format of the stanza looks like:
CDiagAtt:
name = "mem0" Resource name
attribute = "not_in_tst_list" Device has been deleted from
value = "1" the Resource List
type = "T"
rep = "n"
시험 모드 입력 객체 클래스(TMInput)
진단 응용 프로그램의 입력 매개변수는 TMInput 객체 클래스에 저장됩니다. 이 객체 클래스에서 시험 모드 입력 데이터 값을 가져오려면 getdainput 서브루틴을 써야 합니다.
TMInput 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class TMInput {
short exenv;
short advanced;
short system;
short dmode;
char date[80];
short loopmode;
short lcount;
short lerrors;
short console;
char parent[16];
char parentloc[16];
char dname[16];
char dnameloc[16];
char child1[16];
short state1;
char childloc1[16];
char child2[16];
short state2;
char childloc2[16];
long pid;
short cpuid;
};
| 필드 | 설명 |
|---|---|
| exenv | 실행 환경. EXENV_IPL: 사전 시험 모드에서 진단 실행. 시험이 1분을 넘으면 안 됩니다. EXENV_STD: 독립형과 온라인 서비스 진단. 서비스 IPL로 시스템을 올렸으며, 디스크나 이동식 매체에서 IPL해 할 수 있습니다. 일반 IPL로 올린 뒤 shutdown -m 명령으로 유지 보수 모드에 들어간 경우도 해당합니다. EXENV_CONC: 온라인 동시 진단. 일반 IPL로 시스템을 올렸습니다. |
| advanced | 기능 선택(Function Selection) 메뉴에서 정해집니다. ADVANCED_TRUE: 훈련받은 서비스 담당자가 실행하는 고급 진단 루틴. 랩 플러그 등을 요청할 수 있습니다. ADVANCED_FALSE: 고객이 실행하는 진단 루틴 |
| system | 진단 선택이나 자원 선택 메뉴에서 정해집니다. SYSTEM_TRUE: 시스템 점검(모든 자원)을 골랐으며 DA는 비대화형 시험을 합니다. SYSTEM_FALSE: 옵션 점검을 골랐으며 DA는 대화형 시험을 합니다. |
| dmode | 진단 모드. 할 분석의 종류를 나타냅니다(아래 표). |
| date | 오류 로그를 훑기 시작할 날짜. 데이터를 나타내는 구문은 date 명령을 봅니다. |
| loopmode | 유지 보수 모드와 서비스 모드 진단 패키지는 루프 시험을 지원하며, 시스템 전체나 일부를 여러 번 시험할 수 있습니다(아래 표). |
| lcount | 루프 모드에서 마친 실행 횟수 |
| lerrors | 루프 모드에서 기록된 오류 수 |
| console | 진단 컨트롤러가 데이터베이스를 조회해 기본 콘솔이 구성되었는지 판단합니다. CONSOLE_TRUE: 콘솔을 쓸 수 있음. CONSOLE_FALSE: 콘솔이 없거나 콘솔 출력을 원하지 않음. (플랫폼이 LED를 지원하면) LED로 오류를 알립니다. |
| parent | dname의 부모 이름 |
| parentloc | 부모의 위치. 문자열 형식은 "00-00-00-00" |
| dname | 시험할 장치 이름 |
| dnameloc | dname의 위치. 문자열 형식은 "00-00-00-00" |
| child1 | 이미 시험한 자식 장치 이름. 옵션 점검에만 해당합니다. |
| childloc1 | child1의 위치. 문자열 형식은 "00-00-00-00" |
| state1 | child1의 상태: STATE_NOTEST 시험하지 않음, STATE_GOOD 시험 통과, STATE_BAD 시험 실패 |
| child2 | 이미 시험한 다른 자식 장치 이름. 옵션 점검에만 해당합니다. |
| childloc2 | child2의 위치. 문자열 형식은 "00-00-00-00" |
| state2 | child2의 상태: STATE_NOTEST 시험하지 않음, STATE_GOOD 시험 통과, STATE_BAD 시험 실패 |
| pid | 컨트롤러가 시작한 DA의 프로세스 ID |
| cpuid | 컨트롤러가 시작한 DA가 자신을 바인드해야 할 논리 프로세서 번호에 1을 더한 값. 지금은 쓰지 않는 예약 필드이며 비워 둡니다. |
dmode 값
| 값 | 뜻 |
|---|---|
DMODE_ELA |
오류 로그 분석. 진단 시험은 실행하지 않습니다. |
DMODE_MS1 |
사용자가 지정한 장치를 빼거나 옮기거나 끄지 않았다고 해서 시작하는 절차. 옵션이 왜 감지되지 않았는지 알아내야 합니다. 보통 사용자에게 케이블, 전원 공급 장치, 팬, 패널 표시등 등을 확인하게 합니다. 장치를 구성에서 지우지 않습니다. |
DMODE_MS2 |
사용자가 지정한 장치를 시스템에서 뺐고 시스템 구성에서도 지워야 한다고 해서 시작하는 절차. 고유한 "의사(pseudo)" 장치 처리, 알림 등을 해야 합니다. 예를 들어 물리 디스크를 빼면 LVM에 알려야 합니다. 장치를 구성에서 지우는 것은 DA의 책임이며, 이를 위해 장치의 Undefine 메서드가 있습니다. |
DMODE_PD |
문제 판별. 오류 로그 분석과 진단 시험을 모두 합니다. |
DMODE_REMIND |
진단 알림. 기본으로 일주일에 한 번 실행되며, 앞서 보고했지만 고치지 않은 구성 해제된 자원이나 다른 문제를 찾습니다. |
DMODE_REPAIR |
수리 점검. 진단 시험만 합니다. 사용자가 새 하드웨어를 검증하려는 것이므로 오류 로그는 쓰지 않습니다. |
loopmode 값
| 값 | 뜻 |
|---|---|
LOOPMODE_NOTLM |
루프 모드 아님. 동시 진단의 기본값 |
LOOPMODE_ENTERLM |
루프 모드에 들어감. DA는 시험을 준비하거나 문제를 격리하려고 사용자와 대화할 수 있습니다. 다음에 DA가 실행되면 루프 모드에 있게 됩니다. |
LOOPMODE_INLM |
루프 모드 중. 사용자 대화를 허용하지 않습니다. DA는 키보드를 폴링하며 사용자가 Cancel을 누르면 시험을 멈춰야 합니다. |
LOOPMODE_EXITLM |
시스템을 사전 시험 상태로 되돌림. DA가 사용자에게 시스템을 사전 시험 상태로 되돌리도록 안내합니다(예: 랩 플러그를 빼고 케이블을 다시 꽂음). 시험은 실행하지 않습니다. |
모든 값은 /usr/include/diag/tmdefs.h에 있습니다.
영어 원문
Test mode input object class
The input parameters to the Diagnostic Application are stored in the TMInput object class. The subroutine getdainput should be used to retrieve the test mode input data values from this object class.
The TMInput object class structure is defined as:
(23줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
- exenv — The execution environment. Possible values include the following:
EXENV_IPLDiagnostics is being run in pre-test mode. Tests should not take longer than one-minute.EXENV_STDStandalone and Online Service diagnostics. The Service IPL was used to load the system. This can be accomplished either by initial program loading from disk or removable media. This mode also applies if the normal IPL was used to load the system and then maintenance mode was entered by issuing the command shutdown-m.EXENV_CONCOnline Concurrent diagnostics. The Normal IPL was used to load the system. - advanced — Derived from the Function Selection menu. Possible values include the following:
ADVANCED_TRUEAdvanced Diagnostic Routines, which are run by a trained service representative. May prompt for wrap plugs, etc.ADVANCED_FALSEDiagnostic Routines, which are run by the customer. - system — Derived from the Diagnostic or Resource Selection menu. Possible values include the following;
SYSTEM_TRUESystem Checkout (All Resources) was chosen. The DAs perform noninteractive tests.SYSTEM_FALSEOption Checkout was chosen. The DAs perform interactive tests. - dmode — The diagnostic mode indicates the type of analysis that should be undertaken. Possible values include the following:
DMODE_ELAError-log analysis. No diagnostic tests are executed.DMODE_MS1This procedure is started because the user indicated that the named device was not removed, moved, or turned off. This procedure should determine why the option was not detected. Generally, this type of analysis involves asking the user to check cables, power supplies, fans, panel lights, and so on. The device is not deleted from the configuration.DMODE_MS2This procedure is started because the user indicated that the named device has been removed from the system and should be removed from the system configuration. This procedure should perform any unique "pseudo" device manipulation, notification, and so on. For example, when a physical disk is removed from the system, the LVM should be notified. The DA is responsible for deleting the device from the configuration. The Device's Undefine Method is provided for this purpose.DMODE_PDProblem determination, including error-log analysis and diagnostics tests.DMODE_REMINDDiagnostic reminder, which defaults to running once a week, looks for deconfigured resources or other problems that have been previously reported, but have not been fixed.DMODE_REPAIRRepair checkout, which includes only diagnostics tests. The error log is not used because the user is attempting to verify new hardware. - date — The date from which the error log should be scanned. For the syntax used to describe the data, see the date command.
- loopmode — The maintenance mode and service mode diagnostic package supports loop testing. All or part of the system can be tested multiple times. Possible values include the following:
LOOPMODE_NOTLMNot loop mode. The default value for concurrent diagnostics.LOOPMODE_ENTERLMEntering loop mode. The DA can interact with the user to set up a test or to isolate a problem. The next time the DA is executed, it will be in loop mode.LOOPMODE_INLMIn loop mode. No user interaction is allowed. The DA polls the keyboard. The tests should be stopped when the user presses Cancel.LOOPMODE_EXITLMThe system is restored to its pretest state. The DA guides the user in the restoration of the system to its pretest state. For example, wrap plugs are removed and cables are replugged. No tests are executed. - lcount — Number of passes in loop mode that have been completed.
- lerrors — Number of errors logged while in loop mode.
- console — Diagnostic Controller queries the database to determine if the default console has been configured. Configuration states include:
CONSOLE_TRUEA console is available.CONSOLE_FALSENo console is available, or no console output is desired. The LEDs are used to signal an error (if the platform supports LEDs). - parent — Name of the parent of dname.
- parentloc — Location of parent. Format of string is "00-00-00-00".
- dname — Name of the device to be tested.
- dnameloc — Location of dname. Format of string is "00-00-00-00".
- child1 — Name of the child device that has already been tested. Relevant for Option Checkout only.
- childloc1 — Location of child1. Format of string is "00-00-00-00".
- state1 — State associated with child1. The resource states include:
STATE_NOTESTThe resource has not been tested.STATE_GOODThe resource passed its tests.STATE_BADThe resource failed its tests. - child2 — Name of another child device that has already been tested. Relevant for Option Checkout only.
- childloc2 — Location of child2. The format of the string is "00-00-00-00".
- state2 — State associated with child2. The resource states include:
STATE_NOTESTThe resource has not been tested.STATE_GOODThe resource passed its tests.STATE_BADThe resource failed its tests. - pid — Process ID of the DA when started from the Controller.
- cpuid — Logical processor number plus one which the DA when started from the Controller should bind itself to. While not currently used, this is a reserved field, and should be left blank.
All values can be found in /usr/include/diag/tmdefs.h.
메뉴 목표 객체 클래스(MenuGoal)
메뉴 목표 객체 클래스(MenuGoal)는 진단 응용 프로그램이 진단 컨트롤러에 돌려주려는 추가 텍스트 정보를 저장하는 데 씁니다. 이 텍스트는 사용자에게 표시되며, 보통 자원의 상태에 관해 사용자에게 쓸모 있는 추가 정보입니다. 예를 들어 테이프 드라이브에 청소가 필요하다는 정보가 있습니다.
MenuGoal 기능을 쓰는 모든 응용 프로그램은 menugoal 진단 라이브러리 서브루틴을 써야 합니다.
MenuGoal 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class MenuGoal {
char dname[16];
longchar tbuffer1[1000];
longchar tbuffer2[1000];
};
| 필드 | 설명 |
|---|---|
| dname | CuDv에 지정된 자원 이름 |
| tbuffer1 | 텍스트 1000바이트를 저장하는 버퍼 |
| tbuffer2 | 텍스트 1000바이트를 저장하는 버퍼 |
영어 원문
Menu Goal Object Class
The Menu Goal object class (MenuGoal) is used to store additional text information that the Diagnostic Application wants to pass back to the Diagnostic Controller. This text information is displayed to the user. This information is usually additional information that would be useful to the user concerning the state of the resource. One example would be that the Tape Drive requires cleaning.
All applications using the MenuGoal capability must use the menugoal diagnostic library subroutine.
The MenuGoal object class structure is defined as:
class MenuGoal {
char dname[16];
longchar tbuffer1[1000];
longchar tbuffer2[1000];
};
- dname — Resource name as specified in CuDV
- tbuffer1 — Buffer used to store 1000 bytes of text
- tbuffer2 — Buffer used to store 1000 bytes of text
FRU 버킷 객체 클래스(FRUB)
FRU 버킷 객체 클래스(FRUB)는 고장 난 교체 단위 정보를 저장하는 데 씁니다. 이 정보는 오류를 감지한 뒤 진단 응용 프로그램이 지정해 진단 컨트롤러에 돌려줍니다.
FRU 기능을 쓰는 모든 응용 프로그램은 addfrub 진단 라이브러리 서브루틴을 써야 합니다.
FRUB 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class FRUB {
char dname[16];
short ftype;
short sn;
short rcode;
short rmsg;
char timestamp[80];
};
| 필드 | 설명 |
|---|---|
| dname | 시험할 장치의 이름 |
| ftype | 시스템에 더할 FRU 버킷의 유형(아래 표) |
| sn | 고장의 소스 번호 |
| rcode | 고장에 연결된 이유 코드(아래 SRN 형식 참고) |
| rmsg | 이유 코드를 설명하는 텍스트의 메시지 번호. 텍스트의 세트 번호는 PDiagRes 객체 클래스의 PSet 필드로 미리 정해집니다. |
| timestamp | FRU 버킷을 더한 시각 |
ftype 값
| 값 | 뜻 |
|---|---|
| FRUB1 | FRU에 고장 난 자원, 그 부모, 자원을 부모에 붙이는 데 필요한 케이블이 들어갑니다. |
| FRUB2 | FRUB1과 비슷하지만 부모 자원은 넣지 않습니다. |
FRUB_ENCLDA |
I/O 인클로저의 빠진 장치에 쓰는 FRU 버킷 |
SRN 형식과 sn 값
서비스 요청 번호(SRN)는 SSS-RRR 형식이며 SSS는 sn, RRR은 rcode입니다. 어떤 장치는 SRN에 다른 명명법을 쓸 수 있는데, 이때는 sn 매개변수가 rcode 값의 형식을 정합니다.
| sn | rcode 해석 |
|---|---|
| 0 | 10진수 |
| -1 | 4자리 16진수 |
| -2 | DAVars 객체 클래스에서 Error_code 속성을 찾아 8자리 16진 오류 코드를 표시합니다. |
sn이 -2일 때는 진단 응용 프로그램이 다음과 비슷한 DAVars 객체를 만들어 둬야 합니다. 자세한 내용은 getdavar/putdavar 서브루틴을 봅니다.
DAVars:
dname: <시험할 장치 이름>
vname: Error_code "Error_code는 ASCII 문자열"
vtype: DIAG_STRING "리터럴 값"
val: <8자리 16진 문자열>
영어 원문
FRU bucket object class
The Fru Bucket Object Class (FRUB) is used to store failing replaceable unit information. This information is specified by the Diagnostic Application and passed back to the Diagnostic Controller after an error has been detected.
All applications using the FRU capability must use the addfrub diagnostic library subroutine.
The FRUB object class structure is defined as:
class FRUB {
char dname[16];
short ftype;
short sn;
short rcode;
short rmsg;
char timestamp[80];
};
- dname — Names the device under test.
- ftype — Indicates the type of FRU Bucket being added to the system. The following values are defined: FRUB1 The FRUs include the resource that failed, its parent, and any cables needed to attach the resource to its parent. FRUB2 This FRU Bucket is similar to FRU Bucket FRUB1, but does not include the parent resource.
FRUB_ENCLDAThis FRU Bucket is used for missing devices in the I/O enclosure(s). - sn — Source number of the failure.
- rcode — Reason code associated with the failure. Note: A Service Request Number is formatted as follows:
SSS - RRRwhere SSS is the sn and RRR is the rcode. Some devices may use a different nomenclature for their service request numbers. For this special case, the sn parameter indicates how the rcode value should be formatted. If sn = 0, then rcode is interpreted as decimal. If sn = -1, then rcode is interpreted as a 4-digit hexadecimal number. If sn = -2, then the object class DAVars is searched for an attribute ofError_code. This allows the displaying of eight-digit hex error codes. The diagnostic application is responsible for setting up a DAVars object similar to the following: DAVars:dname: <device name under test> vname: Error_code "Error_code is an ascii string" vtype: DIAG_STRING "Literal value" val: <8 digit hex character string>See the getdavar/putdavar subroutine for more information. - rmsg — Message number of the text describing the reason code. The set number of the text is predefined by the PSet field in the Predefined Diagnostic Resources object class.
- timestamp — Specifies the time the FRU bucket was added.
FRU 보고 객체 클래스(FRUs)
FRU 보고 객체 클래스(FRUs)는 고장 난 교체 단위 정보를 저장하는 데 씁니다. 이 정보는 오류를 감지한 뒤 진단 응용 프로그램이 지정해 진단 컨트롤러에 돌려줍니다.
FRU 기능을 쓰는 모든 응용 프로그램은 addfrub 진단 라이브러리 서브루틴을 써야 합니다.
FRUs 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class FRUs {
char dname[16];
char fname[16];
char floc[16];
short ftype;
short fmsg;
short conf;
};
| 필드 | 설명 |
|---|---|
| dname | 시험할 장치의 이름 |
| fname | FRU 이름. fname이 사용자 정의 장치(CuDv) 객체 클래스에 없으면 floc와 fmsg를 지정해야 하고, 있으면 둘 다 0으로 설정합니다. |
| floc | fname의 위치 코드 |
| ftype | 시스템에 더할 FRU 버킷의 유형(FRUB의 ftype 값과 같음) |
| fmsg | fname을 설명하는 텍스트의 메시지 번호. 세트 번호는 PDiagRes 객체 클래스의 PSet 서술자로 미리 정해집니다. |
| conf | FRU가 올바른지 나타냅니다. 0이면 올바르지 않은 FRU이며, FRU 버킷에서 올바르지 않은 FRU가 나오면 그 뒤의 FRU는 표시하지 않습니다. 다만 fname에 REF-CODE 문자열이 들어 있으면 fmsg와 conf 값으로 8자리 참조 코드를 만듭니다. |
영어 원문
FRU reporting object class
The Fru Reporting Object Class (FRUs) is used to store failing replaceable unit information. This information is specified by the Diagnostic Application and passed back to the Diagnostic Controller after an error has been detected.
All applications using the FRU capability must use the addfrub diagnostic library subroutine.
The FRUs object class structure is defined as:
class FRUs {
char dname[16];
char fname[16];
char floc[16];
short ftype;
short fmsg;
short conf;
};
- dname — Names the device under test.
- fname — Names the FRU. The parameters floc and fmsg must be specified, if fname is not represented in the Customized Devices object class. Otherwise, they should be set to 0.
- floc — Location icode for fname.
- ftype — Indicates the type of FRU Bucket being added to the system. The following values are defined: FRUB1 The FRUs include the resource that failed, its parent, and any cables needed to attach the resource to its parent. FRUB2 This FRU Bucket is similar to FRU Bucket FRUB1, but does not include the parent resource.
FRUB_ENCLDAThis FRU Bucket is used for missing devices in the I/O enclosure(s). - fmsg — Message number of the text describing fname. The set number is predefined by the PSet descriptor in the Predefined Diagnostic Resources object class.
- conf — Indicates whether an FRU is valid. A value of 0 indicates an invalid FRU. No other FRUs are displayed once an invalid FRU is found in the FRU bucket. However, if fname contains the string REF-CODE, then the fmsg and conf values are used to make the 8-digit ref code.
진단 응용 프로그램 변수 객체 클래스(DAVars)
진단 응용 프로그램 변수 객체 클래스(DAVars)는 진단 응용 프로그램에 필요한 실행 시간 정보를 저장하는 데 씁니다. 루프 시험을 지원하는 상태 변수를 저장하는 데도 씁니다.
DAVars 기능을 쓰는 모든 응용 프로그램은 getdavar/putdavar 진단 라이브러리 서브루틴을 써야 합니다.
DAVars 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class DAVars {
char dname[16];
char vname[30];
short vtype;
char vvalue[30];
long ivalue;
};
| 필드 | 설명 |
|---|---|
| dname | 변수가 연결된 장치 이름 |
| vname | 변수 이름 |
| vtype | 변수 유형. DIAG_STRING 문자열로 다룸, DIAG_INT 정수로 다룸, DIAG_SHORT short로 다룸 |
| vvalue | 문자열 변수를 저장 |
| ivalue | 변수의 정수나 short 값을 저장 |
영어 원문
Diagnostic application variables object class
The Diagnostic Application Variables Object Class (DAVars) is used to store run time information needed by the Diagnostic Application. This object class is used to store state variables to support Loop Testing.
All applications using the DAVars capability must use the getdavar/putdavar diagnostic library subroutine.
The DAVars object class structure is defined as:
class DAVars {
char dname[16];
char vname[30];
short vtype;
char vvalue[30];
long ivalue;
};
- dname — Name of the device with which the variable is associated.
- vname — Name of the variable.
- vtype — Type of the variable. The following values are defined:
DIAG_STRINGThe variable should be treated as a character string.DIAG_INTThe variable should be treated as an integer.DIAG_SHORTThe variable should be treated as a short. - vvalue — Stores character string variable.
- ivalue — Stores integer or short value of variable.
사전 정의 진단 장치 객체 클래스(PDiagDev)
사전 정의 진단 장치 객체 클래스(PDiagDev)는 진단이 지원하는 자원을 나타내며, 자원을 시험하는 데 필요한 추가 정보를 줍니다. 운영 체제는 이전 수준과의 호환을 위해 이 객체 클래스를 인식합니다. 개발할 때는 PDiagRes를 대신 씁니다.
PDiagDev 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class PDiagDev {
char DType[16];
char DSClass[16];
short Ports;
short PSet;
short PreTest;
char AttDType[16];
char AttSClass[16];
short Conc;
short SupTests;
short Menu;
short DNext;
vchar DaName[255];
char Diskette[5];
vchar EnclDaName[255];
short Sysxflg;
char DClass[16];
};
| 필드 | 설명 |
|---|---|
| DType | 사전 정의 장치 유형 |
| DSClass | 사전 정의 장치 하위 클래스 |
| DClass | 사전 정의 장치 클래스 |
| Ports | PDiagRes->Ports와 같음 |
| PSet | PDiagRes->PSet과 같음 |
| PreTest | PDiagRes->PreTest와 같음 |
| AttDType | Ports 필드가 설정되었을 때 정의할 자식 장치의 사전 정의 유형. 지정한 장치에는 진단을 지원하는 장치 드라이버 묶음이 있어야 합니다. |
| AttSClass | Ports 필드가 설정되었을 때 정의할 자식 장치의 하위 클래스 |
| Conc | 다중 사용자 모드에서 장치를 지원하는지. DIAG_YES 지원함, DIAG_NO 지원하지 않음 |
| SupTests | DA가 지원하는 시험 유형(아래 표). 둘 이상 지정할 수 있습니다. |
| Menu | PDiagRes->Menu와 같음 |
| DNext | PDiagRes->DNext와 같음 |
| DaName | PDiagRes->DaName과 같음 |
| Diskette | 독립형 진단 패키지에서 장치의 DA가 든 디스켓 식별. DA가 보조 디스켓에 있으면 "S", 콘솔 장치로 쓸 수 있는 그래픽 어댑터의 DA면 "3S"여야 합니다. |
| EnclDaName | PDiagRes->EnclDaName과 같음 |
| SysxFlg | 시스템 실행기(System Exerciser) 환경에서 실행할 때 DA가 지원하는 시험 유형(아래 표) |
SupTests 값
| 값 | 뜻 |
|---|---|
SUPTESTS_SHR (0x0001) |
공유(shared) 시험 지원 |
SUPTESTS_SUB (0x0002) |
하위(sub) 시험 지원 |
SUPTESTS_FULL (0x0004) |
전체(full) 시험 지원 |
SUPTESTS_MS1 (0x0008) |
장치가 왜 감지되지 않았는지 알아내는 선택 절차. 보통 외부 전원 공급 장치가 있는 장치에 지정하며, 빠진 자원(Missing Resource) 메뉴의 첫 번째 선택에 연결됩니다. |
SUPTESTS_MS2 (0x0010) |
장치를 뺐을 때 장치별 동작을 하는 선택 절차. 예를 들어 DA가 하위 시스템(LVM)에 물리 자원(디스크)이 빠졌다고 알리거나 장치 삭제에 대해 경고할 수 있습니다. 지정하지 않으면 진단 컨트롤러가 장치를 지우고, 지정하면 DA가 장치를 지워야 합니다. 장치는 장치의 Undefine 메서드를 불러 지웁니다. 빠진 자원 메뉴의 두 번째 선택에 연결됩니다. |
SUPTESTS_HFT |
그래픽 관련 장치면 설정 |
SUPTESTS_DIAGEX |
장치가 진단 커널 확장 DIAGEX를 쓰면 설정. DA에 두 번째 커널 확장을 적재해야 할 때도 씁니다. 이때는 PDiagAtt 데이터베이스를 쓰며 아래와 비슷한 스탠자가 있어야 합니다. |
SUPTESTS_DIAGEX의 두 번째 커널 확장용 PDiagAtt 스탠자 필드:
| 필드 | 값 |
|---|---|
| DClass | 장치 클래스 |
| DSClass | 장치 하위 클래스 |
| DType | 장치 유형 |
| attribute | diag_kext여야 합니다. |
| value | 커널 확장 드라이버 이름. /usr/lib/drivers 디렉터리에 있어야 합니다. |
SysxFlg 값
| 값 | 뜻 |
|---|---|
SYSX_NO |
시스템 실행기가 DA를 실행하면 안 되면 설정 |
SYSX_ALONE |
같은 비트가 설정된 다른 DA와 함께 실행할 수 없으면 설정. 어댑터에 리셋을 내는 디스켓 DA가 해당하며, 다른 디스켓 DA가 동시에 실행 중이면 문제가 생깁니다. 키보드, 마우스, 태블릿, 다이얼, LPFKeys 같은 그래픽 관련 장치도 예입니다. |
SYSX_INTERACTION |
시험할 매체와 함께 DA를 실행할 수 있으면 설정. 디스켓, 테이프, CD-ROM DA가 해당합니다. 예전 이름은 SYSX_MEDIA입니다. |
SYSX_LONG |
DA가 1분 남짓 넘게 실행되면 설정. 긴 DA가 실행 중이 아닐 때 다른 DA를 몇 번 실행할지 정하는 데 쓸 수 있습니다. 실행이 오래 걸리지 않는 DA의 현재 루프 횟수는 25회입니다. |
영어 원문
Predefined Diagnostic Devices Object Class
The Predefined Diagnostic Devices object class (PDiagDev) identifies the resources supported by diagnostics and provides additional information needed to test the resource. This object class is recognized by the operating system for backlevel compatibility purposes. For development purposes, use PDiagRes instead.
The PDiagDev object class structure is defined as:
(18줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
- DType — Predefined device type.
- DSClass — Predefined device subclass.
- DClass — Predefined device class.
- Ports — Same definition as PDiagRes->Ports.
- PSet — Same definition as PDiagRes->PSet.
- PreTest — Same definition as PDiagRes->PreTest.
- AttDType — Device predefined type of the child device to define when the Ports field is set. The device named should include a set of device drivers that contain support for diagnostics.
- AttSClass — Device subclass of the child device to define when the Ports field is set.
- Conc — Indicates if the device is supported in multiuser mode. The values are as follows:
DIAG_YESThe device is supported in multiuser mode.DIAG_NOThe device is not supported in multiuser mode. - SupTests — Identifies the types of tests supported by the DA. More than one of the following types may be specified:
SUPTESTS_SHR(0x0001) Shared tests are supported.SUPTESTS_SUB(0x0002) Sub-tests are supported.SUPTESTS_FULL(0x0004) Full-tests are supported.SUPTESTS_MS1(0x0008) An optional procedure that determines why the device was not detected. This procedure is typically specified for devices that have external power supplies. This procedure is associated with the first selection at the Missing Resource menu.SUPTESTS_MS2(0x0010) An optional procedure that performs device-specific actions when a device is removed. For example, the DA might notify a subsystem (LVM) that a physical resource (disk) has been removed. Or the DA might provide warning about deleting a device. If this procedure is not specified, the Diagnostic Controller deletes the device. If it is specified, the DA should delete the device. Devices are deleted by calling the device's Undefine Method. This procedure is associated with the second selection at the Missing Resource menu.SUPTESTS_HFTSet if the device is a graphics-related device.SUPTESTS_DIAGEXSet if the device uses DIAGEX, the diagnostic kernel extension. Also used if the DA requires a second kernel extension loaded. The PDiagAtt database is used in this instance. A stanza similar to the following must be used: PDiagAtt: DClass The device Class. DSClass The device SubClass. DType The device Type. attribute Must bediag_kext. value Set to the kernel extension driver name. Must reside in /usr/lib/drivers directory. - Menu — Same definition as PDiagRes->Menu.
- DNext — Same definition as PDiagRes->DNext.
- DaName — Same definition as PDiagRes->DaName.
- Diskette — A diskette identification that includes the DA associated with the device for the Standalone Diagnostic package. This value should be an "S" if the DA is on a Supplemental Diskette, or a "3S" if the DA is a graphics adapter that can be used as a console device.
- EnclDaName — Same definition as PDiagRes->EnclDaName.
- SysxFlg — Identifies the types of tests supported by the DA while running in the System Exerciser Environment.
SYSX_NOSet if the DA should not be run by the System Exerciser.SYSX_ALONESet if the DA cannot be run with others with the same bit also set. This includes the diskette DAs that issue a reset to the adapter, which would cause problems if another diskette DA was running at the same time. Another example would be graphics-related devices such as the keyboard, mouse, tablet, dials, and LPFKeys.SYSX_INTERACTIONSet if the DA can be run with media to be tested. This includes the diskette, tape and CD-ROM DAs.SYSX_INTERACTIONwas formerlySYSX_MEDIA.SYSX_LONGSet if the DA runs for more than a minute or so. This bit can be used to determine how many times to run the other DAs if no long DAs are running. The current loop count for DAs that do not take long to run is 25 loops.
진단 감독자 메뉴 옵션 객체 클래스(DSMOptions)
진단 감독자 메뉴 옵션 객체 클래스(DSMOptions)에는 진단 서비스 보조를 설명하는 스탠자가 들어 있습니다. 운영 체제는 이전 수준과의 호환을 위해 이 객체 클래스를 인식합니다.
개발할 때는 PDiagRes를 대신 씁니다.
DSMOptions 객체 클래스 구조는 다음과 같이 정의되어 있습니다.
class DSMOptions {
char msgkey[4];
vchar catalogue[255];
short order;
short setid;
short msgid;
vchar action[255];
char Diskette[5];
};
| 필드 | 설명 |
|---|---|
| msgkey | 서비스 보조 유틸리티 컨트롤러가 이 항목을 서비스 보조로 알아보는 키. 서비스 보조면 "USM"으로 설정해야 합니다. |
| catalogue | 서비스 보조의 제목과 설명 메시지를 꺼낼 카탈로그 이름 |
| order | 메뉴를 만들 때 메시지를 덧붙일 순서. 0: 제3자 서비스 보조가 씀. 서비스 보조를 메뉴 끝에 덧붙입니다. 99: 8MB 시스템에서 실행 중이 아닐 때만 이 서비스 보조를 표시합니다. |
| setid | 메시지의 세트 번호 |
| msgid | 메시지의 메시지 ID |
| action | 사용자가 이 옵션을 고르면 시작할 명령 |
| Diskette | 서비스 보조가 보조 디스켓에 있는지, 서비스 보조를 처리하기 전에 무엇을 할지 나타냅니다. S: 보조 디스켓. 100X: 이 서비스 보조를 시작하기 전에 모든 디스켓을 읽어 처리해야 함. 200X: 이 서비스 보조는 하드 파일에서 서비스 모드로만 지원함 |
영어 원문
Diagnostic supervisor menu options object class
The Diagnostic Supervisor Menu Options object class (DSMOptions) contains stanzas describing Diagnostic Service Aids. This object class is recognized by the operating system for backlevel compatibility purposes.
For development purposes, use PDiagRes instead.
The DSMOptions object class structure is defined as:
class DSMOptions {
char msgkey[4];
vchar catalogue[255];
short order;
short setid;
short msgid;
vchar action[255];
char Diskette[5];
};
- msgkey — Key used by the Service Aid Utility Controller to identify this entry as a Service Aid. Must be set to "USM" for Service Aids.
- catalogue — Catalog name from which to extract the message for the Service Aid title and description.
- order — Order in which the messages should be appended to build the menu. The following values are defined: 0 Used by Third Party Service Aids. This causes the service aid to be appended to the end of the menu. 99 Only display this service aid if not running in an 8MB system.
- setid — Set number of the message.
- msgid — Message ID of the message.
- action — Command to start, if the user selects the specified option.
- Diskette — Indicates that the Service Aid is on a Supplemental Diskette, and what actions to take before processing the Service Aid. The following values are defined: S Supplemental Diskette. 100X Indicates that all diskettes should be read in and processed before starting this service aid. 200X Indicates that this service aid is only supported in Service Mode from hardfile.
관련 글: 진단 컨트롤러, 진단 작업 (1), 진단 라이브러리 (2), 진단 라이브러리 (5)