feat: add boot staging configuration and automation utility scripts
This commit is contained in:
17
scripts/check_22_k3s_env.py
Normal file
17
scripts/check_22_k3s_env.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import paramiko
|
||||
|
||||
ssh = paramiko.SSHClient()
|
||||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
ssh.connect('140.44.4.22', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
||||
|
||||
stdin, stdout, stderr = ssh.exec_command('cat /etc/systemd/system/k3s-agent.service.env')
|
||||
print('K3S ENV:\n', stdout.read().decode())
|
||||
|
||||
stdin, stdout, stderr = ssh.exec_command('cat /boot/cmdline.txt /boot/firmware/cmdline.txt 2>/dev/null')
|
||||
print('CMDLINE:\n', stdout.read().decode())
|
||||
|
||||
stdin, stdout, stderr = ssh.exec_command('cat /boot/config.txt /boot/firmware/config.txt 2>/dev/null')
|
||||
print('CONFIG.TXT (TAIL 20):\n', stdout.read().decode().splitlines()[-20:])
|
||||
|
||||
ssh.close()
|
||||
|
||||
Reference in New Issue
Block a user