Scheduled Reboot AX7501-B1

giuseppe82
giuseppe82 Posts: 3  Freshman Member
First Comment
edited November 8 in Home Router

Good Morning,

i have an AX7501-B1 and i realized it needs to be rebooted at least once every week to keep the device stably working.
I couldn't find any scheduled reboot option within the GUI hence i tried connecting to the device via SSH and would like to ask the right command / syntax to schedule the reboot from CLI: apparently there's a zycli which should implement some unix command thou there is no help and therefore no syntax.
Can you please advise which command (and syntax) can be used to restart the device on a daily basis around 5:00 am?

If the above is unworkable, i checked the Config file which is created using the Backup Feature (Backup_Restore file) and i found this section which could do the trick but i have no idea of the system syntax needed to schedule a reboot:

*** QUOTE ***
"RebootSchedule":{
},
*** UNQUOTE ***

Does anybody has a zyxel modem providing the reboot feature (example: ZYXEL NR-5101) and willing to share their Backup_Restore config file in order to copy/paste the syntax and check if this can work even if the GUI doesn't give the option (the version 5.17 of the OS should support it but is not yet implemented in the GUI)?

Thanks in advance
Kind Regards

Giuseppe

*** ADD ***

Time being i manged to make a script (running on my Pi Zero) which is executed at 4:58am via crontab and connects through SSH to the device: after connecting, it runs the local (zyxel) command "zycli reboot" which does the trick.

(sudo crontab -e)
58 4 * * * echo "zycli reboot" | sshpass -p [password] ssh -o StrictHostkeyChecking=no -o HostKeyAlgorithms=+ssh-rsa [username]@192.168.1.1

The above works wonderfully but still is an "external solution" which implies a security threat because of the password being in clear within the crontab conf file (can be solved by installing an RSA certificate which would replace the clear password need).

Pleased to hear if anybody has a better solution or if possible to configure the scheduled reboot via backup_restore file (as mentioned above).

Thanks!!!

All Replies

Consumer Product Help Center