시스템 · 명령 참조
qzx getDiskHealth
기능
smartctl로 디스크의 S.M.A.R.T. 상태를 검사하고 디스크 경고와 명령 실패를 구분합니다.
명령 성숙도: Alpha
실제 사용과 피드백에 사용할 수 있지만 인터페이스와 동작은 아직 바뀔 수 있습니다. 현재 개발 체크아웃에 대한 평가입니다. 이후의 각 불변 릴리스 태그는 해당 버전에 포함된 정확한 평가를 보존합니다. PyPI 0.2.2.0.9에서 사용할 수 있습니다. 문서는 alpha 체크아웃 0.2.2.0.9에 해당합니다.
동작 및 내장 보호
상태를 변경하지 않고 검사합니다
이 작업은 직접 실행됩니다
필요할 때 네이티브 도구를 사용합니다
네트워크를 사용하지 않고 작동합니다
현재 권한을 사용하며 결과는 달라질 수 있습니다
디스크 식별자를 검증하고 smartctl의 정확한 경로를 해석해 셸 없이 15초 제한으로 실행합니다. 종료 코드를 비트마스크로 해석하여 구문, 열기, SMART 명령 또는 checksum 실패는 중단시키고 디스크 상태 지표는 구조화된 관찰값으로 유지합니다.
이 안전 분류는 2026-08-25에 OpenAI GPT-5.6 Pro가 구현 다이제스트 sha256:47f465256648751136fa6647d37cd65a70675a7f074f7d0811a3d7466dadc860를 기준으로 검토했습니다.
정확한 구문
qzx getDiskHealth <disk> [view] --json매개변수
밀거나 가로 스크롤 막대를 사용해 모든 열을 확인하세요.
| 이름 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| disk | str | 예 | 선언되지 않음 | 경로 구분자가 없는 식별자(예: sda, nvme0n1, disk0 또는 PhysicalDrive0) |
| view | str | 아니요 | "health" | 상세 수준: 요약은 "health", smartctl JSON은 "full" |
입력 예제
qzx getDiskHealth sda/dev/sda의 S.M.A.R.T. 상태 검사
qzx getDiskHealth PhysicalDrive0 --view fullWindows의 PhysicalDrive0에서 전체 S.M.A.R.T. JSON 읽기
전체 구조화 페이로드를 받으려면 --json을 추가하세요: qzx getDiskHealth <disk> [view] --json
대표 출력 예제
이 예시 JSON은 현재 구현이 뒷받침하는 결과 계약에서 파생됩니다. 기록된 실행이라고 주장하지 않고 명령이 반환할 수 있는 내용을 보여 주며, 값은 입력, 장비, 권한 및 선택 도구에 따라 달라집니다.
예제 명령: qzx getDiskHealth sda --json
{
"success": true,
"message": "Inspects one disk's S.M.A.R.T. health with smartctl and reports status flags without treating health warnings as command failures. In this illustrative example, the command completed successfully.",
"meta": {
"command": "getDiskHealth",
"command_maturity": {
"stage": "alpha",
"label": "Alpha",
"sequence": 2,
"public_executable": true,
"stability": "interface_may_change",
"summary": "Available for real use and feedback while its interface and behavior can still evolve.",
"promotion_review_required": false,
"assessment_scope": "development_checkout"
},
"duration_ms": 0,
"schema_version": 1
},
"device": "Example value",
"disk": "Example value",
"health_status": [
{
"name": "example",
"status": "ok"
}
],
"output": "Command completed successfully with structured details.",
"smart_data": "Example value",
"stdout": "Command completed successfully.",
"view": "Example value"
}JSON 결과 계약 보기
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"success",
"message",
"meta"
],
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"meta": {
"type": "object",
"required": [
"command",
"command_maturity",
"duration_ms",
"schema_version"
],
"properties": {
"command": {
"type": "string"
},
"command_maturity": {
"type": "object",
"required": [
"stage",
"label",
"sequence",
"public_executable",
"stability",
"summary",
"promotion_review_required",
"assessment_scope"
],
"properties": {
"stage": {
"type": "string"
},
"label": {
"type": "string"
},
"sequence": {
"type": "integer"
},
"public_executable": {
"type": "boolean"
},
"stability": {
"type": "string"
},
"summary": {
"type": "string"
},
"promotion_review_required": {
"type": "boolean"
},
"assessment_scope": {
"type": "string"
},
"note": {
"type": "string"
},
"review": {
"type": "object",
"required": [
"reviewed_on",
"rationale",
"evidence"
],
"properties": {
"reviewed_on": {
"type": "string",
"format": "date"
},
"rationale": {
"type": "string"
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"replacement": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": true
},
"duration_ms": {
"type": "number"
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
"device": [],
"disk": [],
"error": {
"type": "string"
},
"error_code": {
"type": "string"
},
"health_status": [],
"output": [],
"smart_data": [],
"stdout": [],
"view": []
},
"additionalProperties": true
}오류 및 제한
공개 계약은 실패 시 success=false와 설명적인 message를 요구합니다. 이 카탈로그는 아직 명령별 오류 분류 체계를 선언하지 않으므로 결과를 확인하고 존재하지 않는 코드를 추정하지 마세요.
QZX는 alpha 단계입니다. 선택적 종속성, 권한 및 호스트 기능에 따라 결과가 달라질 수 있습니다.
근거 흐름: 통제된 특권 환경 필요.
근거 및 출처
- 문서 채널
- 개발 문서 0.2.2.0.9 · main · sha256:cfba936e39931c286ca23add0ae546693db17d8b316e7cbc3891d26642d9b7e8
- 제공 여부
- 0.2.2.0.9 또는 이전
실전 가이드
실제 상황에서 이 명령 사용하기
qzx getDiskHealth가 어떤 작업에 적합한지, 네이티브 도구와 어떻게 비교되는지, 자동화할 때 어떤 세부 사항이 중요한지 알아보세요.
계속 살펴보기
관련 명령
이 명령들도 시스템 범주에 속합니다. 비교하여 작업에 가장 적합한 작업을 선택하세요.