feat: add DNS setup blueprint and infrastructure automation scripts
This commit is contained in:
22
scripts/check_nodes2_3.py
Normal file
22
scripts/check_nodes2_3.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import paramiko
|
||||
|
||||
for ip, name in [("140.44.44.122", "Node 2"), ("140.44.44.123", "Node 3")]:
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect(ip, username='root', password='Katzir476!', timeout=10)
|
||||
|
||||
stdin, stdout, stderr = c.exec_command('racadm get bios.SysProfileSettings.SysProfile')
|
||||
prof = stdout.read().decode().strip().splitlines()[-1]
|
||||
|
||||
c.close()
|
||||
|
||||
# New connection for second command
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect(ip, username='root', password='Katzir476!', timeout=10)
|
||||
stdin, stdout, stderr = c.exec_command('racadm get bios.IntegratedDevices.SriovGlobalEnable')
|
||||
sriov = stdout.read().decode().strip().splitlines()[-1]
|
||||
c.close()
|
||||
|
||||
print(f"[{name} - {ip}] {prof} | {sriov}")
|
||||
|
||||
Reference in New Issue
Block a user