DST - Tonight (tomorrow morning)

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4  Next
Author Message
voldemar
DD-WRT Novice


Joined: 26 Jul 2009
Posts: 28

PostPosted: Tue Mar 16, 2010 19:48    Post subject: Reply with quote
redhawk0 wrote:

You could write a script and run it as a cron job once a day if you really want to.

I find it isn't necessary...once it gets the time...you should be all set after that...the majority of the problems are due to DST changes.

redhawk
I know that, what I'm trying to say 2 different version have different behavior. ver 13000 - adjusted time by itself, ver 13230 only after running this special script.
Sponsor
rseiler
DD-WRT Guru


Joined: 01 Oct 2007
Posts: 563

PostPosted: Thu Mar 18, 2010 0:06    Post subject: Reply with quote
mac913 wrote:
So is there any "special" script to get NTP to update once a day?

Yes, and for unrelated reasons I came across it in this thread:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=225320#225320

Now, obviously, if you're not fiddling with the clock rate, there's no need to be doing this as often as shown there, but it's the same principle. This example would correct the time at 6AM daily. Paste these commands into Administration/Management/Additional Cron Jobs, and then Save/Apply.

0 6 * * * root killall process_monitor
0 6 * * * root process_monitor
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 693
Location: Canada

PostPosted: Mon Mar 22, 2010 15:53    Post subject: Reply with quote
Luniz2k1 wrote:
Run the following:
Code:
ntpclient pool.ntp.org
stopservice process_monitor
startservice process_monitor


Give a sec or 2 between each command. No reboot needed. Uptime will not be lost.


I have a cron job stopping and starting the process monitor on 2 wrt320n since the clock is running about 2 to 3 minutes faster per day. Other than having NTP do it's update when cycling the process monitor what else does the process monitor do?

I ONLY need the NTP to update at my scheduled request; isn't there a "better" way then cycling the process monitor?

_________________
Wired GigaBit Backbone
Linksys E3000 K2.6 KONG-VPN 22200 Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 21661 VPN-Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 20575 NG-Mixed AP + VAPs
Dark_Shadow
DD-WRT Guru


Joined: 31 Aug 2009
Posts: 2430
Location: Third Rock from the Sun

PostPosted: Mon Mar 22, 2010 16:28    Post subject: Reply with quote
Could you post your cron commands?
_________________
Peacock Thread-FAQ -- Firmware Recommendations -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 693
Location: Canada

PostPosted: Mon Mar 22, 2010 16:51    Post subject: Reply with quote
Dark_Shadow wrote:
Could you post your cron commands?


rseiler & somms posted the codes that I'm using. The one below will run daily at 6:00am.

0 6 * * * root killall process_monitor
0 6 * * * root process_monitor

_________________
Wired GigaBit Backbone
Linksys E3000 K2.6 KONG-VPN 22200 Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 21661 VPN-Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 20575 NG-Mixed AP + VAPs


Last edited by mac913 on Tue Mar 23, 2010 12:48; edited 1 time in total
Dark_Shadow
DD-WRT Guru


Joined: 31 Aug 2009
Posts: 2430
Location: Third Rock from the Sun

PostPosted: Tue Mar 23, 2010 1:41    Post subject: Reply with quote
0 6 * * 1 root killall process_monitor
0 6 * * 1 root process_monitor

Am I correct in assuming that the above will be run every Monday at 6 am?

_________________
Peacock Thread-FAQ -- Firmware Recommendations -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki
rseiler
DD-WRT Guru


Joined: 01 Oct 2007
Posts: 563

PostPosted: Tue Mar 23, 2010 2:40    Post subject: Reply with quote
Dark_Shadow wrote:
0 6 * * 1 root killall process_monitor
0 6 * * 1 root process_monitor

Am I correct in assuming that the above will be run every Monday at 6 am?

Yes. More variations here:
http://www.debianhelp.co.uk/schedulejobs.htm

mac913 wrote:
I ONLY need the NTP to update at my scheduled request; isn't there a "better" way then cycling the process monitor

Good question. I would certainly think so, but the method came from Eko (or was it BS) in the thread I quoted above, so perhaps not.
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 693
Location: Canada

PostPosted: Tue Mar 23, 2010 12:54    Post subject: Reply with quote
Dark_Shadow wrote:
0 6 * * 1 root killall process_monitor
0 6 * * 1 root process_monitor

Am I correct in assuming that the above will be run every Monday at 6 am?


Yes, Sunday = 0 & Saturday = 6

More info on cron:
http://en.wikipedia.org/wiki/Cron

Since most time changes happen Sunday morning at around 2am I set my two 610n's to update once a week on Sunday 5am.

0 5 * * 0 root process_monitor

_________________
Wired GigaBit Backbone
Linksys E3000 K2.6 KONG-VPN 22200 Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 21661 VPN-Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 20575 NG-Mixed AP + VAPs


Last edited by mac913 on Tue Mar 23, 2010 13:02; edited 1 time in total
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 693
Location: Canada

PostPosted: Tue Mar 23, 2010 12:57    Post subject: Reply with quote
rseiler wrote:
mac913 wrote:
I ONLY need the NTP to update at my scheduled request; isn't there a "better" way then cycling the process monitor

Good question. I would certainly think so, but the method came from Eko (or was it BS) in the thread I quoted above, so perhaps not.


Reading the link is does look like it came from EKO. I would great if the NTP GUI gets an upgrade to input custom scheduling.

_________________
Wired GigaBit Backbone
Linksys E3000 K2.6 KONG-VPN 22200 Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 21661 VPN-Gateway
Linksys E2000 (OC 500Mhz) K2.6 KONG-VPN 20575 NG-Mixed AP + VAPs
lost+found
DD-WRT Novice


Joined: 28 Mar 2010
Posts: 6
Location: North~Sea~Coa~s~~t~~~

PostPosted: Sun Mar 28, 2010 9:19    Post subject: Reply with quote
tnx for all info... Smile
i entered my cronjob into the text box, cron section gui:
http://www.dd-wrt.com/wiki/index.php/CRON

Code:
55 * * * * root ntpclient nl.pool.ntp.org && stopservice process_monitor && startservice process_monitor


&& makes the commands execute sequentially on success

cheers

_________________
Linksys WRT320N
dd-wrt.v24-14929_NEWD-2_K2.6_mini.bin (previously using: dd-wrt.v24-13575_NEWD-2_K2.6_mini.bin, dd-wrt.v24-13493_NEWD-2_K2.6_mini_wrt320n.bin)
Debricked once Embarassed ...using a DKU-5 cable.
+++ 2011: Finally distroyed from overheating. Lent it out, and on a hot summer day the router took a sunbath behind glass. +++
chris99
DD-WRT Novice


Joined: 19 Feb 2010
Posts: 34

PostPosted: Sun Apr 11, 2010 23:21    Post subject: Reply with quote
lost+found wrote:
tnx for all info... Smile
i entered my cronjob into the text box, cron section gui:
http://www.dd-wrt.com/wiki/index.php/CRON

Code:
55 * * * * root ntpclient nl.pool.ntp.org && stopservice process_monitor && startservice process_monitor


&& makes the commands execute sequentially on success

cheers


I am giving it a try thanks.

Chris

_________________
RT-AC66u Kong 22200
WRTN320 Tomato-K26-1.28.9054MIPSR2-beta-Std
WNDR3700 Gargoyle 1.4.7
E4200v1 BS wrt r17865
kvi
DD-WRT Novice


Joined: 04 May 2010
Posts: 28

PostPosted: Sat Sep 24, 2011 19:19    Post subject: Reply with quote
Dark_Shadow wrote:
0 6 * * 1 root killall process_monitor
0 6 * * 1 root process_monitor


Sorry for digging up an old thread, but my routers clock is not keeping the time correctly. I've set it to reboot once / week at night to sync the time, but it's no longer an option.

Does the above solution work 100%? Other messages tell to wait a few secs between the commands, so would it be "playing safe" to put something like this:

Code:
0 6 * * 1 root killall process_monitor
1 6 * * 1 root process_monitor


Another thing: has anyone yet discovered what other thing the process_monitor has to do other than ntpdate? Does that affect any other processes & tasks done by the router?
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 10909
Location: Wherever the wind blows- North America

PostPosted: Sat Sep 24, 2011 20:25    Post subject: Reply with quote
My Asus 520gu has the clock_fix turned off...so it loses exactly 10 minutes an hour....this is what I use to fix the clock...Its on the Administration>>Management tab.

once per hour (since it's off by 10 minutes...I reset it every 50 minutes of router time)

redhawk



Clipboard01.jpg
 Description:
 Filesize:  17.59 KB
 Viewed:  5131 Time(s)

Clipboard01.jpg



_________________
I currently test dd-wrt on Asus, Buffalo, Linksys, and Netgear. Too many to list.

Looking for more test units (newer models) for the project...got a brick?...PM me to make a donation. (USA) A donation is not a debricking service....it is a way to "Give back" to the dd-wrt project.

I do NOT provide personal assistance through chat or phone....so please don't ask.
ScooterComputer
DD-WRT Novice


Joined: 30 Oct 2008
Posts: 10

PostPosted: Fri Dec 09, 2011 3:23    Post subject: On clocks and problems Reply with quote
redhawk0 wrote:
My Asus 520gu has the clock_fix turned off...so it loses exactly 10 minutes an hour....this is what I use to fix the clock...Its on the Administration>>Management tab.

once per hour (since it's off by 10 minutes...I reset it every 50 minutes of router time)

redhawk


I'm wondering if the NTP behavior is maybe what is causing some issues with WDS. I'm seeing my WDS link just "evaporate" after several days. The routers on both sides are working, but the WDS tunnel is down. And when I log into each router manually, I find that the clocks are off. Not always by much, but I'm thinking that if time is important for encryption, then it might just be off by enough to disrupt the tunnel. Does that make any sense?

I find that when I simply click Administration:Apply Settings on both, the time syncs back up and the tunnel comes back up by itself.

If my suspicion is right, this could be what is effecting WDS on some routers in general, considering that any router that is hardwired to an internet connection gets its time updated pretty quick (at boot time and within 120s), whereas any WDS nodes that are remote will be stuck sitting in the '70s. Basically a race condition: does the tunnel negotiate successfully in 1970 or fail in 2011.
Murrkf
DD-WRT Guru


Joined: 22 Sep 2008
Posts: 11197

PostPosted: Fri Dec 09, 2011 4:17    Post subject: Re: On clocks and problems Reply with quote
ScooterComputer wrote:
but I'm thinking that if time is important for encryption,


It's not.

_________________
SIG:
I'm trying to teach you to fish, not give you a fish. If you just want a fish, wait for a fisherman who hands them out. I'm more of a fishing instructor. So See this:
http://i31.tinypic.com/24mz3ms.png

LOM: "If you show that you have not bothered to read the forum announcements or to follow the advices in them then the level of help available for you will drop substantially, also known as Murrkf's law.."
Goto page Previous  1, 2, 3, 4  Next Display posts from previous:    Page 3 of 4
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum