feat: add various infrastructure check and automation scripts
This commit is contained in:
9
scripts/check_spaceport_ports.py
Normal file
9
scripts/check_spaceport_ports.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import socket
|
||||
|
||||
for p in [10250, 10255, 9100]:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.settimeout(2)
|
||||
res = s.connect_ex(('140.44.4.41', p))
|
||||
s.close()
|
||||
print(f"Spaceport 140.44.4.41:{p} -> {'OPEN' if res == 0 else 'CLOSED'}")
|
||||
|
||||
Reference in New Issue
Block a user