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