table of contents
| nbox-export-device-inventory(1) | General Commands Manual | nbox-export-device-inventory(1) |
NAME¶
nbox-export-device-inventory - Emit a device inventory — one record per device (name, status, role, site, model, platform, serial, asset tag, rack, primary IP, tenant, tags), filtered by any combination of `--site` / `--role` / `--tag` / `--status` / `--manufacturer` (all by slug/value, ANDed). Default output is a JSON array; `--format csv` emits a spreadsheet-ready table
SYNOPSIS¶
nbox export device-inventory [--site] [--role] [--tag] [--status] [--manufacturer] [--format] [-h|--help]
DESCRIPTION¶
Emit a device inventory — one record per device (name, status, role, site, model, platform, serial, asset tag, rack, primary IP, tenant, tags), filtered by any combination of `--site` / `--role` / `--tag` / `--status` / `--manufacturer` (all by slug/value, ANDed). Default output is a JSON array; `--format csv` emits a spreadsheet-ready table
OPTIONS¶
- --site <SLUG>
- Filter by site slug
- --role <SLUG>
- Filter by device-role slug
- --tag <SLUG>
- Filter by tag slug
- --status <VALUE>
- Filter by status value (e.g. `active`, `offline`)
- --manufacturer <SLUG>
- Filter by manufacturer slug
- --format <FORMAT> [default: json]
- Output format: `json` (a JSON array of records, default) or `csv`
Possible values:
- json: A JSON array of inventory records
- csv: A CSV table (header + one row per device)
- -h, --help
- Print help (see a summary with '-h')
| device-inventory |