feat: add DNS setup blueprint and infrastructure automation scripts
This commit is contained in:
28
scripts/check_node4_specs.py
Normal file
28
scripts/check_node4_specs.py
Normal file
@@ -0,0 +1,28 @@
|
||||
import paramiko
|
||||
import time
|
||||
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect('140.44.44.124', username='root', password='Katzir476!', timeout=10)
|
||||
|
||||
def query(cmd):
|
||||
stdin, stdout, stderr = c.exec_command(f"racadm {cmd}")
|
||||
return stdout.read().decode().strip()
|
||||
|
||||
print("--- System Info ---")
|
||||
print(query("getsysinfo"))
|
||||
|
||||
print("\n--- BIOS SysProfile ---")
|
||||
print(query("get bios.SysProfileSettings.SysProfile"))
|
||||
|
||||
print("\n--- BIOS ProcVirtualization ---")
|
||||
print(query("get bios.ProcSettings.ProcVirtualization"))
|
||||
|
||||
print("\n--- BIOS SriovGlobalEnable ---")
|
||||
print(query("get bios.IntegratedDevices.SriovGlobalEnable"))
|
||||
|
||||
print("\n--- RAID Controllers ---")
|
||||
print(query("raid get controllers"))
|
||||
|
||||
c.close()
|
||||
|
||||
Reference in New Issue
Block a user