Update server.py
This commit is contained in:
parent
b49b9aa6f0
commit
498943b88c
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import subprocess
|
||||||
# Server IPMI details
|
# Server IPMI details
|
||||||
IPMIHOST = "192.168.1.223"
|
IPMIHOST = "192.168.1.223"
|
||||||
IPMIUSER = "root"
|
IPMIUSER = "root"
|
||||||
IPMIPASS = "fuck pizza hut"
|
IPMIPASS = "<oops>"
|
||||||
|
|
||||||
def execute_ipmi_command(command):
|
def execute_ipmi_command(command):
|
||||||
full_command = f"ipmitool -I lanplus -H {IPMIHOST} -U {IPMIUSER} -P \"{IPMIPASS}\" {command}"
|
full_command = f"ipmitool -I lanplus -H {IPMIHOST} -U {IPMIUSER} -P \"{IPMIPASS}\" {command}"
|
||||||
|
@ -67,4 +67,4 @@ else:
|
||||||
# Here, you can add a function to power off if desired
|
# Here, you can add a function to power off if desired
|
||||||
pass
|
pass
|
||||||
if args.fan is not None:
|
if args.fan is not None:
|
||||||
set_fan_speed(args.fan)
|
set_fan_speed(args.fan)
|
||||||
|
|
Loading…
Reference in a new issue