Files
dsh_ai1net_server/归档/域名迁移_ai1net_20260919/_g7.sh
T

10 lines
961 B
Bash
Raw Normal View History

set -u
echo "=== [A] mksess 工具 ==="
find /opt/dshs -maxdepth 3 -name 'mksess*' 2>/dev/null | head
ls /opt/dshs/tools 2>/dev/null | head -20
echo "=== [B] 47 上的 env 文件 ==="
for f in /etc/dshs.env /etc/dshs-worker.env; do echo "--- $f ---"; if [ -f "$f" ]; then grep -vE '^\s*#|^\s*$' "$f" | sed 's/\(TOKEN\|SECRET\|KEY\)=.*/\1=***/'; else echo "(不存在)"; fi; done
echo "=== [C] 47 单元清单 ==="
systemctl list-units --type=service --all 'dshs*' --no-pager --plain 2>/dev/null | head -12
echo "=== [D] 106 侧 ==="
ssh -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChecking=no test106 'for f in /etc/dshs.env /etc/dshs-cluster.env /etc/dshs-worker.env; do echo "--- $f ---"; if [ -f "$f" ]; then grep -vE "^\s*#|^\s*$" "$f" | sed "s/\(TOKEN\|SECRET\|KEY\)=.*/\1=***/"; else echo "(不存在)"; fi; done; echo "--- units ---"; systemctl list-units --type=service --all "dshs*" --no-pager --plain 2>/dev/null | head -12' 2>&1 | tail -30