feat(power): complete Phase 7 Power Resilience & UPS Automation deployment and verification

This commit is contained in:
2026-11-02 21:58:49 -05:00
parent 7ca3d5acb8
commit d3e2e1f291
8 changed files with 216 additions and 40 deletions

View File

@@ -0,0 +1,20 @@
import paramiko
import sys
sys.stdout.reconfigure(encoding='utf-8')
def main():
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('14.4.4.44', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
stdin, stdout, stderr = ssh.exec_command('systemctl status nut-monitor --no-pager')
print("STATUS NUT-MONITOR:\n", stdout.read().decode('utf-8', errors='replace'))
stdin, stdout, stderr = ssh.exec_command('systemctl status nut-server --no-pager')
print("STATUS NUT-SERVER:\n", stdout.read().decode('utf-8', errors='replace'))
ssh.close()
if __name__ == '__main__':
main()