feat: add various infrastructure check and automation scripts

This commit is contained in:
2026-11-15 17:17:41 -05:00
parent 336b7759d0
commit b301aa3ece
232 changed files with 8274 additions and 298 deletions

21
scripts/test_final.py Normal file
View File

@@ -0,0 +1,21 @@
import paramiko
import sys
sys.stdout.reconfigure(encoding='utf-8')
c_sd = paramiko.SSHClient()
c_sd.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c_sd.connect('140.44.4.90', username='rancher', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
_, o, e = c_sd.exec_command("sudo KUBECONFIG=/etc/rancher/rke2/rke2.yaml /var/lib/rancher/rke2/bin/kubectl get pods -A | grep -E 'glm|vllm|qdrant|triton'")
print("Spacedock Pods:\n", o.read().decode().strip())
print("Spacedock Err:\n", e.read().decode().strip())
c_sd.close()
c_h = paramiko.SSHClient()
c_h.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c_h.connect('140.44.4.71', username='snarf', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
_, o, e = c_h.exec_command("echo 'Katzir476!' | sudo -S sqlite3 /var/lib/docker-data/heimdall/config/www/app.sqlite 'SELECT id, username, public_front FROM users;'")
print("\nHeimdall Users:\n", o.read().decode().strip())
print("Heimdall Err:\n", e.read().decode().strip())
c_h.close()