15 lines
470 B
Python
15 lines
470 B
Python
import paramiko
|
|
|
|
def check_helm(ip, name):
|
|
print(f"\n=== {name} HELM RELEASES ({ip}) ===")
|
|
ssh = paramiko.SSHClient()
|
|
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
ssh.connect(ip, username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
|
_, out, _ = ssh.exec_command("helm list -A")
|
|
print(out.read().decode())
|
|
ssh.close()
|
|
|
|
check_helm('140.44.4.11', 'AERODROME')
|
|
check_helm('140.44.4.41', 'SPACEPORT')
|
|
|