device linux collect
Overview
Connects to a Linux machine over SSH and collects hardware specs, OS details, installed services, and Docker container status. Outputs results as a formatted table or JSON. Useful for inventorying Linux servers and homelab machines.
Usage
device linux collect [OPTIONS]
Options
| Option | Description | Default |
|---|---|---|
-h, --host HOST | Target host IP or hostname (required) | -- |
-u, --user USER | SSH username (required) | -- |
-p, --password PASSWORD | SSH password (prompts if not provided) | -- |
-o, --output PATH | Output JSON file | stdout |
--format [table|json] | Output format | table |
--timeout SECONDS | SSH connection timeout | 30 |
Prerequisites
- Repo: device-deployments
- Platform: Any (host) connecting to Linux target
- SSH: Network access and credentials for the target machine
Examples
Collect specs interactively
device linux collect -h 192.168.1.100 -u admin
Export as JSON
device linux collect -h 100.105.14.5 -u homelab-admin --format json -o homelab-specs.json
Output
Displays hostname, IP, hardware details (CPU, RAM, storage), software (OS, kernel), running services, and Docker containers.