CLI tool to query GPU status remotely (based on nvidia-smi)
Project description
nvidia-smi-remote
A CLI tool to display remote GPU status via SSH with colorful terminal output – showing GPU temperature, utilization, memory usage, and per-user process memory details. It’s like a remote version of nvidia-smi with enhanced readability!
This project is inspired by gpustat.
Quick Installation
Install from PyPI:
pip install nvidia-smi-remote
If you don’t have root privileges, try installing it in your user namespace:
pip install --user nvidia-smi-remote
To install the latest version from the master branch:
pip install git+https://github.com/ive2go/nvidia-smi-remote.git@master
NVIDIA Driver, nvidia-smi, and Python Requirements
- NVIDIA Requirement: This tool requires NVIDIA GPUs and the
nvidia-smiutility to be installed on the target systems. - Python Version: Python 3.6 or higher is recommended.
- Dependencies:
Usage
nvidia-smi-remote is designed to query GPU information from remote servers via SSH. You can supply the remote server configuration either via a JSON configuration file or by setting the environment variable NVIDIA_SMI_REMOTE_CONFIG.
Basic Usage with Configuration File:
nvidia-smi-remote -r config.json
Basic Usage with Environment Variable:
export NVIDIA_SMI_REMOTE_CONFIG=/path/to/config.json
nvidia-smi-remote
Command-line Options:
-r, --remote-config: Path to the remote GPU server configuration JSON file (expects a list of server definitions).-i, --interval: Update interval in seconds (watch mode). Set to0for a single output.--no-header: Do not display the header (host, driver version, and time).--no-color: Disable colored terminal output.--used-only: Display only GPUs that have running processes.--unused-only: Display only GPUs without any running processes.
Remote Configuration JSON Example:
[
{
"host": "remote.server.com",
"port": 22,
"username": "user",
"password": "password"
},
{
"host": "another.server.com",
"username": "user",
"key_filename": "/path/to/private/key"
}
]
Default Display Example:
remote.server.com 2025-04-03 12:34:56 450.80.02
[0] GeForce RTX 3080 | 65°C, 50 % | 4000/10000 MB | user (1500MiB)
--------------------------------------------------------------------------------
- Header: Displays the hostname, current timestamp, and driver version.
- GPU Line: Shows GPU index, name, temperature, utilization, memory usage, and the aggregated memory usage per user.
Changelog
See CHANGELOG.md for a complete list of changes.
License
Contact
For questions or suggestions, please contact the author at ive2go@naver.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nvidia_smi_remote-0.1.1.tar.gz.
File metadata
- Download URL: nvidia_smi_remote-0.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cb277e8cedec03746806335e41495389fa8d7803dff7cb05ea372fd54d0601d
|
|
| MD5 |
1e5c52efdfd17f0f04e6e53436e0a29b
|
|
| BLAKE2b-256 |
1618b21f9baa5f0c39197c11ebd54121fdb7374a1ad7c885b6e0fb7996946994
|
File details
Details for the file nvidia_smi_remote-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nvidia_smi_remote-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3febcb0ae774ae493639c9fbd994766619897720e6c3fbbfdad7315e9ae5856
|
|
| MD5 |
c373cf376ef22d50896d0b64b09c712b
|
|
| BLAKE2b-256 |
327da861d7f37841bb24152edd0acf2907fc4fe2db615afb90c6ead279020a93
|