jetson-print-device-info
NVIDIA/skills
성능 테스트 또는 검증을 위해 Jetson 장치의 모듈 모델, L4T 버전, 커널, OS 버전 및 전원 모드의 기준 스냅샷을 캡처합니다.
...모든 것을 확장하십시오jetson-print-device-info
이 스킬이 실행되는 Jetson 장치의 간략한 요약 정보를 출력합니다.
이 스킬은 jetson-device-skills 저장소 및 NVIDIA 전체 차원의 스킬 CI를 위한 참조 예제로 의도되었습니다. 이 스킬은 호스트 PC가 아닌 Jetson 타겟에서 실행되며 읽기 전용 검사를 수행합니다. 이는 성능 테스트를 실행하기 전에 기준값을 캡처하는 데 유용합니다.
목적
성능, 회귀 또는 호환성 테스트를 실행하기 전에 Jetson 타겟의 소프트웨어 스택과 전원 모드의 기준값 스냅샷을 캡처합니다.
사용 시기
- 성능 실행을 시작할 때 장치의 소프트웨어 스택과 전원 모드에 대한 캡처된 기준값이 필요한 경우.
- 새로 플래시된 Jetson이 예상되는 L4T / JetPack 버전과 일치하는지 확인하는 경우.
사전 요구 사항
- Jetson 타겟에서 실행 중이어야 합니다(호스트 PC가 아님).
- 표준 CLI 사용 가능:
tr,cat,uname,uptime,lsb_release(또는/etc/os-release). - 전원 모드 확인을 위해
nvpmodel사용 가능(선택 사항 — 스킬이 우아하게 폴백 처리함).
입력
없음. 이 스킬은 로컬 Jetson 파일 시스템과 표준 CLI에서만 읽습니다.
지시사항
각 단계를 순서대로 실행하고, 출력 형식 섹션 아래에 표시된 보고서에 캡처된 값을 출력합니다.
모듈 모델을 캡처하고 그것이 Jetson 타겟인지 검증합니다. 그렇지 않으면 조기에 종료합니다:```
장치 트리 문자열은 NULL로 종료되므로, 출력하기 전에 NUL 문자를 제거합니다.
model=$(tr -d '\0' /dev/null) case "$model" in Jetson) ;; *) echo "Jetson 타겟에서 실행 중이 아님 (모델: '${model:-unknown}')"; exit 1 ;; esac echo "$model"
L4T 릴리스 헤더 행을 추출합니다 — 파일의 나머지 부분(긴 라이브러리 SHAs 목록)은 건너뜁니다:``` head -1 /etc/nv_tegra_release 2>/dev/null || echo "L4T release info not found"
Equivalent: grep -m1 '^# R' /etc/nv_tegra_release
nvpmodel -q를 실행하고 두 개의 출력 행(NV Power Mode: <name></name>및 모드 번호)을 하나의 행으로 병합합니다.paste -sd는 구분자의 첫 번째 문자만 사용하므로, 리터럴/구분자를 삽입하기 위해awk를 사용합니다:``` nvpmodel -q 2>/dev/null | awk 'NR==1{a=$0; next} {print a" / "$0}' \ || echo "nvpmodel not available"커널 버전과 가동 시간을 출력합니다:``` uname -r uptime -p
OS 버전을 출력합니다(
lsb_release를 선호하고,/etc/os-release로 폴백):``` lsb_release -ds 2>/dev/null || (. /etc/os-release && echo "$PRETTY_NAME") || echo "OS version not found"
출력 형식
다음 섹션으로 구성된 짧은 보고서를 출력합니다. 가능한 경우 각 섹션은 한 행으로 구성됩니다:
Model: <device-tree>
L4T release: <release>
Power mode: <nvpmodel> / <mode>
Kernel: <uname>
Uptime: <uptime>
OS version: <lsb_release></lsb_release></uptime></uname></mode></nvpmodel></release></device-tree>예시
Orin AGX 개발 키트(L4T R36 / Ubuntu 22.04)에서의 예시 출력:
Model: NVIDIA Jetson AGX Orin Developer Kit
L4T release: # R36 (release), REVISION: 3.0
Power mode: NV Power Mode: MAXN / 0
Kernel: 5.15.136-tegra
Uptime: up 2 hours, 14 minutes
OS version: Ubuntu 22.04.4 LTS
AGX Thor(L4T R39 / Ubuntu 24.04)에서의 예시 출력:
Model: NVIDIA Jetson AGX Thor Developer Kit
L4T release: # R39 (release), REVISION: 0.0
Power mode: NV Power Mode: 120W / 1
Kernel: 6.8.0-tegra
Uptime: up 12 minutes
OS version: Ubuntu 24.04 LTS
오류 처리
기반 파일이나 바이너리가 누락된 경우, 각 명령은 명확히 레이블이 지정된 "... not found" / "... not available" 문자열로 폴백합니다 — 스킬은 보고서 중간에 오류를 발생시키지 않습니다. /proc/device-tree/model이 누락되었거나 Jetson 문자열을 포함하지 않는 경우, "Jetson 타겟에서 실행 중이 아님"이라는 명확한 메시지와 함께 조기에 종료합니다.
제한 사항
- 읽기 전용 검사만 수행 — GPU/CPU 클럭, 열 상태 또는 레일별 전원을 감지하지 않습니다.
- L4T 버전 간에
nvpmodel출력 형식이 다릅니다 — 스킬은 구문 분석하지 않고 원문을 그대로 출력합니다.
문제 해결
- 오류:
/proc/device-tree/model: No such file or directory원인: Jetson 타겟이 아닌 호스트 PC에서 실행 중입니다. 해결책: Jetson 장치에서 직접 스킬을 실행합니다(예: SSH를 통해). - 오류:
nvpmodel: command not found원인: L4T BSP가 설치되지 않았거나,nvpmodel이 없는 최소 컨테이너에서 실행 중입니다. 해결책: 비-Jetson 또는 축소된 환경에서 예상되는 동작입니다 — 스킬은"nvpmodel not available"을 출력하고 계속 진행합니다.
참고 사항
- 읽기 전용입니다. 전원 모드를 변경하거나 패키지를 설치하거나 파일을 수정하지 마십시오.
- 실수로 호스트 PC에서 스킬이 호출되는 경우,
/proc/device-tree/model에는 Jetson 모델 문자열이 포함되지 않습니다 — 이를 감지하고 오해의 소지가 있는 정보를 출력하는 대신 명확한 메시지와 함께 종료합니다.
---
name: jetson-print-device-info
description: Captures a baseline snapshot of a Jetson device's module model, L4T version, kernel, OS version, and power mode for performance testing or verification.
license: Apache-2.0
---
# jetson-print-device-info
Prints a concise summary of the Jetson device this skill runs on.
This skill is intended as a reference example for the `jetson-device-skills` repo and the NVIDIA-wide skills CI. It runs on the Jetson target (not the host PC) and performs read-only inspection — useful as a baseline capture before running performance tests.
## Purpose
Capture a baseline snapshot of a Jetson target's software stack and power mode before running performance, regression, or compatibility tests.
## When to use
- Starting a performance run and you want a captured baseline of the device's software stack and power mode.
- Verifying that a freshly flashed Jetson matches an expected L4T / JetPack version.
## Prerequisites
- Running on a Jetson target (not the host PC).
- Standard CLIs available: `tr`, `cat`, `uname`, `uptime`, `lsb_release` (or `/etc/os-release`).
- `nvpmodel` available for power mode (optional — skill falls back gracefully).
## Inputs
None. The skill reads only from the local Jetson filesystem and standard CLIs.
## Instructions
Run each step in order and print the captured values into the report shown under [Output format](#output-format).
1. **Capture** the module model and **validate** it is a Jetson target — exit early otherwise:
```bash
# Device-tree strings are null-terminated, so strip NULs before printing.
model=$(tr -d '\0' < /proc/device-tree/model 2>/dev/null)
case "$model" in
*Jetson*) ;;
*) echo "Not running on a Jetson target (model: '${model:-unknown}')"; exit 1 ;;
esac
echo "$model"
```
2. **Extract** the L4T release header line — skip the rest of the file (long list of library SHAs):
```bash
head -1 /etc/nv_tegra_release 2>/dev/null || echo "L4T release info not found"
# Equivalent: grep -m1 '^# R' /etc/nv_tegra_release
```
3. **Run** `nvpmodel -q` and **join** its two output lines (`NV Power Mode: <name>` and the mode number) onto one line. `paste -sd` only uses the first char of its delimiter, so use `awk` to insert the literal ` / ` separator:
```bash
nvpmodel -q 2>/dev/null | awk 'NR==1{a=$0; next} {print a" / "$0}' \
|| echo "nvpmodel not available"
```
4. **Print** the kernel version and uptime:
```bash
uname -r
uptime -p
```
5. **Print** the OS version (prefer `lsb_release`, fall back to `/etc/os-release`):
```bash
lsb_release -ds 2>/dev/null || (. /etc/os-release && echo "$PRETTY_NAME") || echo "OS version not found"
```
## Output format
Print a short report with these sections, one line each where possible:
```text
Model: <device-tree model string>
L4T release: <release header line>
Power mode: <nvpmodel name> / <mode number>
Kernel: <uname -r>
Uptime: <uptime -p>
OS version: <lsb_release / /etc/os-release output>
```
## Examples
Example output on an Orin AGX dev kit (L4T R36 / Ubuntu 22.04):
```text
Model: NVIDIA Jetson AGX Orin Developer Kit
L4T release: # R36 (release), REVISION: 3.0
Power mode: NV Power Mode: MAXN / 0
Kernel: 5.15.136-tegra
Uptime: up 2 hours, 14 minutes
OS version: Ubuntu 22.04.4 LTS
```
Example output on an AGX Thor (L4T R39 / Ubuntu 24.04):
```text
Model: NVIDIA Jetson AGX Thor Developer Kit
L4T release: # R39 (release), REVISION: 0.0
Power mode: NV Power Mode: 120W / 1
Kernel: 6.8.0-tegra
Uptime: up 12 minutes
OS version: Ubuntu 24.04 LTS
```
## Error handling
Each command falls back to a clearly labeled `"... not found"` / `"... not available"` string if the underlying file or binary is missing — the skill never errors out mid-report. If `/proc/device-tree/model` is missing or does not contain a Jetson string, exit early with a clear "not running on a Jetson target" message.
## Limitations
- Read-only inspection only — does not detect GPU/CPU clocks, thermal state, or per-rail power.
- `nvpmodel` output format varies between L4T versions; the skill prints it verbatim rather than parsing.
## Troubleshooting
- **Error:** `/proc/device-tree/model: No such file or directory`
**Cause:** Running on a host PC, not a Jetson target.
**Solution:** Run the skill on the Jetson device directly (e.g. via SSH).
- **Error:** `nvpmodel: command not found`
**Cause:** L4T BSP not installed, or running in a minimal container without `nvpmodel`.
**Solution:** Expected on non-Jetson or stripped environments — the skill prints `"nvpmodel not available"` and continues.
## Notes
- Read-only. Do not change power mode, install packages, or modify any files.
- If the skill is invoked on a host PC by mistake, `/proc/device-tree/model` will not contain a Jetson model string — detect that and exit with a clear message rather than printing misleading info.
모든 파일
5개 파일jetson-print-device-info 설치
스킬 파일을 다운로드하여 .claude/skills/ 디렉토리에 추출하세요.
ZIP 다운로드저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.
git clone https://github.com/NVIDIA/skills/tree/main/skills/jetson-print-device-info # Copy SKILL.md to your .claude/skills/ directory
복사





집
