#!/bin/bash # Stato del control plane Strata (JSON su stdout). API="${STRATACTL_API:-http://172.30.150.224:18090}" KEYF="$HOME/.config/strata-control/control.key" if [ ! -r "$KEYF" ]; then printf '{"error":"chiave mancante"}'; exit 0; fi out=$(curl -s -m 6 -H "X-API-Key: $(cat "$KEYF")" "$API/status" 2>/dev/null) if [ -z "$out" ]; then printf '{"error":"control plane non raggiungibile"}'; else printf '%s' "$out"; fi