Auto reboot feature & bridge mode

Post Reply
Arkoth
Posts: 25
Joined: Thu Nov 20, 2014 9:31 am

Auto reboot feature & bridge mode

Post by Arkoth »

Hello,

I want to use the Auto reboot feature with my 7800DXL: so I set "enable" everyday at 04:00am and apply

My modem is in bridge mode, connected to my Asus RT-AC68U rooter.

Before I click the "sync" button on the status/summary page on the gui, to have a good Date/time to test it...

This night, I saw that the auto reboot feature worked at 04:00 as I set it => good ! it works...
But...
After this reboot, the device Date/Time was Thu Jan 1 00:00:00 1970 that mean the ntp doesn't work after this reboot...
Tomorrow, the modem will reboot at 07:00am because it think 04:00am is 00:00am and the day after at 11:00am etc... etc...
because the date/time was not set with ntp because the modem is in bridge mode at the moment where it reboot : it can't access ntp serv (no internet access)

The modem is bridge to the router as I've said, and also, it's connected to lan too to monitor it with SNMP and to access it with the GUI with ip...

And I think it can be possible to the modem to "sync" the date/time automaticaly after this reboot, isn't it?... but I don't know how to do this ? cron job ? script sync after auto reboot ?

Is there a way to do this : to force sync ntp after an auto reboot several minutes after the reboot on the modem to have an auto reboot everyday at 04:00am ?

Thank you for your answer ;)
billion_fan
Posts: 5398
Joined: Tue Jul 19, 2011 4:30 pm

Re: Auto reboot feature & bridge mode

Post by billion_fan »

Arkoth wrote:Hello,

I want to use the Auto reboot feature with my 7800DXL: so I set "enable" everyday at 04:00am and apply

My modem is in bridge mode, connected to my Asus RT-AC68U rooter.

Before I click the "sync" button on the status/summary page on the gui, to have a good Date/time to test it...

This night, I saw that the auto reboot feature worked at 04:00 as I set it => good ! it works...
But...
After this reboot, the device Date/Time was Thu Jan 1 00:00:00 1970 that mean the ntp doesn't work after this reboot...
Tomorrow, the modem will reboot at 07:00am because it think 04:00am is 00:00am and the day after at 11:00am etc... etc...
because the date/time was not set with ntp because the modem is in bridge mode at the moment where it reboot : it can't access ntp serv (no internet access)

The modem is bridge to the router as I've said, and also, it's connected to lan too to monitor it with SNMP and to access it with the GUI with ip...

And I think it can be possible to the modem to "sync" the date/time automaticaly after this reboot, isn't it?... but I don't know how to do this ? cron job ? script sync after auto reboot ?

Is there a way to do this : to force sync ntp after an auto reboot several minutes after the reboot on the modem to have an auto reboot everyday at 04:00am ?

Thank you for your answer ;)
There is no way to do this automatically, unless you are running a script.

The other option I suggested on the 7800N was the following


The only way you can do is adjust the reboot timing, (I haven't tried this, but maybe you can give it ago)

eg you need to reboot the device at 5:00am every morning, do a manual reboot at this time (the clock should then revert back to 00:00), then set the reboot time for 23:59 every day, this way it should reboot every 24 hours from the time you manually rebooted the router.
Arkoth
Posts: 25
Joined: Thu Nov 20, 2014 9:31 am

Re: Auto reboot feature & bridge mode

Post by Arkoth »

I find how to do 8-)

On my router, I have a "Tomato by shibby" firmware, so I can do what I want: autoreboot modem in bridge mode when I want.

First, I set my router to autoreboot at 04:00am:
tomato_autoreboot.png

After, I use a script to reboot the modem by telnet when the router shutdown:
tomato_script_reboot_modem.png

Code: Select all

#!/bin/sh
(
sleep 2
echo login_modem
sleep 2
echo password_modem
sleep 2
echo reboot
sleep 2
) | telnet ip_modem
(replace login_modem / password_modem / ip_modem with your information)



Now, the router AND the modem in bridge mode reboot at 04:00am as I want ;)
You do not have the required permissions to view the files attached to this post.
Post Reply