douyinWEB/scripts/probe_s3_env.py
eric a360eec2ba Document slots/covers/PB ops UX and sync feature pass to main.
Ship zombie reconcile, S3 covers, session end/drill-down, rooms ops, and refresh README for production.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 20:07:15 -05:00

16 lines
755 B
Python

# -*- coding: utf-8 -*-
import paramiko
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("107.173.30.245", 22, "root", "Xiao4669805", timeout=30, allow_agent=False, look_for_keys=False)
for cmd in [
"grep -Rni 'minio\\|S3_\\|AWS_\\|boto3\\|9000' /opt/xauto /opt/wauto /etc/systemd/system 2>/dev/null | head -40",
"ls /opt/xauto 2>/dev/null | head; ls /opt/wauto 2>/dev/null | head",
"cat /opt/xauto/.env 2>/dev/null | grep -iE 's3|minio|oss|aws' | head -20",
"cat /opt/wauto/.env 2>/dev/null | grep -iE 's3|minio|oss|aws' | head -20",
]:
print("====", cmd[:70], flush=True)
_, o, _ = c.exec_command(cmd, timeout=40, get_pty=True)
print(o.read().decode()[-2000:], flush=True)
c.close()