26-10-2017, 04:20 PM
Can be done using a simple batch file.
Download "plink.exe" (part of the Putty binaries).
Make yourself a batch file in the same folder as plink.exe with these lines (change folder name, remove the space between root and @, change IP of PBX and password to suite) and schedule it to run with Windows Task Manager.
echo y | C:\PBXReboot\plink.exe -ssh -P 22 root @ipofpbx -pw pbxpassword exit
C:\PBXReboot\plink.exe -ssh -P 22 root @ipofpbx -pw pbxpassword reboot
Much easier and quicker than having to create/modify the file through SSH: /persistent/etc/autoreboot/global.conf
Download "plink.exe" (part of the Putty binaries).
Make yourself a batch file in the same folder as plink.exe with these lines (change folder name, remove the space between root and @, change IP of PBX and password to suite) and schedule it to run with Windows Task Manager.
echo y | C:\PBXReboot\plink.exe -ssh -P 22 root @ipofpbx -pw pbxpassword exit
C:\PBXReboot\plink.exe -ssh -P 22 root @ipofpbx -pw pbxpassword reboot
Much easier and quicker than having to create/modify the file through SSH: /persistent/etc/autoreboot/global.conf