chore: remove unused file
This commit is contained in:
14
scripts/check_nfs_mounts.py
Normal file
14
scripts/check_nfs_mounts.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import paramiko
|
||||
import sys
|
||||
|
||||
sys.stdout.reconfigure(encoding='utf-8')
|
||||
|
||||
for name, ip in [('aerodrome', '140.44.4.11'), ('spaceport', '140.44.4.41')]:
|
||||
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=8)
|
||||
cmd = "df -h | grep -i nfs || echo 'no nfs mounts'"
|
||||
stdin, stdout, stderr = ssh.exec_command(cmd)
|
||||
print(f"[{name.upper()}] NFS mounts:\n{stdout.read().decode().strip()}")
|
||||
ssh.close()
|
||||
|
||||
Reference in New Issue
Block a user