Nodejs script to reboot Jio-Fiber router. You can run it with Nodejs v16 or above and use cron job for routine reboot.
Example:
node index.mjs -ip=192.168.29.1 -pwd=password -t=2 -w=5
Cron job example:
58 2 * * * node /full/path/to/jio-router-reboot/src/index.mjs -ip=192.168.29.1 -pwd=password -t=2 -w=5 >> "/full/path/to/log-file/jioFiberReboot.log" 2>&1
This cron job will reboot Jio Fiber router at 2:58 AM every day and command output will be saved to file /full/path/to/log-file/jioFiberReboot.log
-ip | -ipAddress
IP address of Jio-Fiber router.
-pwd | -password | -p
Pasword of admin account of Jio-Fiber router.
-user | -username | -u
Username of admin account of Jio-Fiber router. (Default: admin)
-url
URL of router login page. (Default: http://${ip}/platform.cgi )
-tries | -t
Maximum tries. (Default: 1)
-wait | -w
Wait (in seconds) between tries. (Default: 1)
-timeout | -tout
Request timout (in seconds). (Default: 60)