Scheduled Reboot AX7501-B1
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
-
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 145 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 239 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 384 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight