#!/bin/bash # boxver.sh — the controller image on the three test boxes, one line each (read-only). for h in demo-hp felhom-pve "-J demo-hp root@192.168.0.154"; do printf '%-34s %s\n' "$h" "$(ssh -o ConnectTimeout=15 -o BatchMode=yes $h "LC_ALL=C pct exec 9201 -- docker ps --filter name=^felhom-controller$ --format '{{.Image}} {{.Status}}'" 2>/dev/null | grep -v '^perl')" done