ifixkart-admin/Backend/scripts/check_remote_processes.py
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

23 lines
615 B
Python

import paramiko
host = "80.65.208.73"
user = "root"
password = "G7#Zp9!Qv@M2e$XwR8H^K"
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host, username=user, password=password, timeout=10)
def run_remote(cmd):
print(f"=== Command: {cmd} ===")
stdin, stdout, stderr = ssh.exec_command(cmd)
out = stdout.read().decode()
err = stderr.read().decode()
print("STDOUT:", out)
if err:
print("STDERR:", err)
return out, err
run_remote("ps aux | grep -E 'uvicorn|fastapi|python'")
run_remote("pm2 describe 2; pm2 describe 3")
ssh.close()