Change ssh-tunnel

This commit is contained in:
2023-08-11 11:58:31 +02:00
parent 4fbd32b3aa
commit a66e6640cf
8 changed files with 104 additions and 104 deletions
+4 -4
View File
@@ -31,12 +31,12 @@ def get_hdd_info():
# Informationen über die CPU
def set_system_info(ipadress):
print("set_system_info")
print(get_cpu_sql())
print(get_cpu_sql()[0])
query = f"UPDATE `Kunden-Server` SET RAM={get_ram_info()}, Prozessor={get_cpu_sql()[0]}, CPU='{get_cpu_info()}' WHERE `IP-Adresse`='{ipadress}'"
print(query)
mysql_connect.update_cpu(query,"Stines-GmbH")
return print("Fin")
# ssh_tunnel.server_start()
# set_system_info("172.19.1.5")
# ssh_tunnel.server_stop()
ssh_tunnel.server_start()
set_system_info("172.19.1.5")
ssh_tunnel.server_stop()