#!/bin/bash set -u echo " 现在: $(date +%H:%M:%S)" echo " ── A 组 ──" cat /root/ab_A.out 2>/dev/null | sed 's/^/ /' n=0 [ -f /root/ab_A_health.tsv ] && n=$(wc -l < /root/ab_A_health.tsv) echo " A 组样本: $n" echo echo " ── B 组开始了吗 ──" ls -la --time-style=+%H:%M:%S /root/ab_B* 2>/dev/null | sed 's/^/ /' || echo " (还没有)" echo echo " ── 进程 ──" pgrep -af 'rpab' 2>/dev/null | head -3 | sed 's/^/ /' || echo " (没有)" echo echo " ── 当前隧道配比 ──" for s in lanremote-tunnel lanremote-tunnel-h2; do printf " %-24s %s\n" "$s" \ "$(grep -oE -- '--ha-connections [0-9]+' "/etc/systemd/system/$s.service" 2>/dev/null | tr '\n' ' ')" done