Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
859 B
Python
22 lines
859 B
Python
# -*- coding: utf-8 -*-
|
|
import sys
|
|
import paramiko
|
|
|
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
|
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)
|
|
|
|
cmds = [
|
|
"journalctl -u douyinweb-api --since '10 min ago' --no-pager 2>&1 | grep -vE 'GET /api/(youtube|events|settings|auth|tiktok/jobs|tiktok/status)' | tail -120",
|
|
"which node; node -v; ls -la /opt/douyinWEB/backend/third_party/TiktokAutoUploader/tiktok_uploader/tiktok-signature/browser.js",
|
|
]
|
|
for cmd in cmds:
|
|
print("\n====", cmd[:80])
|
|
_s, out, err = c.exec_command(cmd, timeout=30)
|
|
print(out.read().decode("utf-8", "replace")[-6000:])
|
|
e = err.read().decode("utf-8", "replace")
|
|
if e:
|
|
print("ERR:", e[:400])
|
|
c.close()
|