Skip to main content

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

OptionDescriptionDefault
-h, --host HOSTTarget host IP or hostname (required)--
-u, --user USERSSH username (required)--
-p, --password PASSWORDSSH password (prompts if not provided)--
-o, --output PATHOutput JSON filestdout
--format [table|json]Output formattable
--timeout SECONDSSSH connection timeout30

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.