diff --git a/powerman/query-remote.sh b/powerman/query-remote.sh index 1679922..018c7b8 100644 --- a/powerman/query-remote.sh +++ b/powerman/query-remote.sh @@ -47,19 +47,19 @@ export POWERMAN_SERVER="${REMOTE_HOST}:${REMOTE_PORT}" # --- 3. List outlets --- echo "" echo "--- Outlets ---" -powerman -l +powerman -h "${REMOTE_HOST}:${REMOTE_PORT}" -l # --- 4. Query status --- echo "" echo "--- Status ---" -powerman -q +powerman -h "${REMOTE_HOST}:${REMOTE_PORT}" -q echo "" echo "============================================" echo " Done." echo "" echo " To control an outlet from this workstation:" -echo " POWERMAN_SERVER=${REMOTE_HOST}:${REMOTE_PORT} powerman -0 outlet-10 # off" -echo " POWERMAN_SERVER=${REMOTE_HOST}:${REMOTE_PORT} powerman -1 outlet-10 # on" -echo " POWERMAN_SERVER=${REMOTE_HOST}:${REMOTE_PORT} powerman -c outlet-10 # cycle" +echo " powerman -h ${REMOTE_HOST}:${REMOTE_PORT} -0 outlet-10 # off" +echo " powerman -h ${REMOTE_HOST}:${REMOTE_PORT} -1 outlet-10 # on" +echo " powerman -h ${REMOTE_HOST}:${REMOTE_PORT} -c outlet-10 # cycle" echo "============================================"