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>
10 lines
622 B
Python
10 lines
622 B
Python
#!/usr/bin/env python3
|
|
import paramiko, sys
|
|
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=45, allow_agent=False, look_for_keys=False)
|
|
_, o, e = c.exec_command('free -h; echo ---; nproc; echo ---; df -h /; echo ---; docker ps --format "table {{.Names}}\\t{{.Status}}" 2>/dev/null | head -15; echo ---; ls /opt/douyinWEB/backend/data/neko/docker-compose.yml 2>/dev/null || echo no_vps_neko', timeout=60)
|
|
print((o.read()+e.read()).decode('utf-8','replace'))
|
|
c.close()
|