Sync Hardware-clock with ntp

Hi everybody,
I don't know if I'm right here, but I don't know, whereelse I can post my problem.
I use xntp to sync my Solaris8 servers with a NetwareServer over ntp using xntp.
Everything seems to work fine, but my Hardwareclock does not sync with the received time. In ntp.conf I set "enable pll" wich should enable HW-Clock to sync but when I use the "date"-command time keeps different (about 6 minutes) from the ntp-server.
What's wrong with my configuration?
Thanks so far
Sabine

brebs wrote:11-minute sync mode
Right, I've checked from `adjtimex --print`, that 11 minute mode is indeed on here (supposedly activated by ntpd). This should mean that  with ntpd in effect, `hwclock --systohc` is indeed unnecessary at all (also doesn't hurt).
tjwoosta wrote:I also noticed that when I reboot my clock always goes back to being out of sync untill about 10 minutes later when ntp syncs it.
How much is the clock off when the system boots up? And how long has the system been down?
Or did you mean really "reboot"? In that case, I guess the 11 minute mode is off.
Running ntpdate at bootup as brebs suggested should be fine. Adding ntpdate to your DAEMONS array should do it (but I'm not sure if it will disable 11 minute mode).
Below is my current point of view on this issue (correct me if anything is wrong):
If you want to maintain the RTC accurately, you use hwclock as the *only* program that ever sets/adjusts the RTC. To do this, you must prevent anything else from setting the RTC, e.g. the 11 minute mode, or another OS. This has the benefit of relatively accurate time at boot up, by running `hwclock --adjust && hwclock --hctosys`.
On the other hand, if you can't prevent others from setting the RTC, don't use hwclock to set/adjust RTC at all. The downside is that any drift of the RTC when the system is down will not be adjusted at boot up, but can only be corrected later by ntpd + the 11 minite mode, or whatever.
Last edited by lolilolicon (2011-05-09 07:46:55)

Similar Messages

  • How to Sync System Clock with Internet Time in Windows 7?

    "Internet Time" tab is missing in Clock Settings as shown in below link.
    http://mintywhite.com/windows-7/7maintenance/windows-seven-7-sync-system-clock-with-internet-time-how-to/
    Please suggest how to Sync System Clock with Internet Time in Windows 7?
    Regards, Dharmendra, Bangalore (India)

    The note at the bottom of the first link from Alex Verboon has the following, which worked on my Domain-associated Windows 7 system:
    Synchronizing with an Internet time server
    You can synchronize your computer clock with an Internet time server. This means that the clock on your computer is updated to match the clock on the time server, which can help ensure that the clock on your computer is accurate. Your clock is typically updated
    once a week and needs to be connected to the Internet for the synchronization to occur.
    Note
    If your computer is on a domain, you can't synchronize your clock with an Internet time server.
    Open Date and Time by clicking the Start button, clicking Control Panel, clicking Clock, Language, and Region, and then clicking Date and Time.
    Click the Internet Time tab, and then click Change settings. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
    Click Automatically synchronize with an Internet time server, select a time server, and then click OK.

  • Sync iPhone Clock with Atomic Clock

    I bought a couple of apps that connect to the Atomic time server and although they work well, all they can do is show me the time difference between the iPhone clock and the real time on the Atomic clock server (offset).
    I wrote to the app's manufacturer and they told me that apple will not allow them access to the iPhone's clock so that it can be corrected.
    I am just wondering why.
    I really hope it is not because apple plan to launch a new phone sometime in the future with this function!
    I know it must be possible and relatively easy for apple to enable this feature on the iphone so please somebody please explain to me the real reason for this. Almost every phone I have ever owned has had the ability to be updated and synced by either my pc or some app, so I really can't understand why apple would have disabled this feature. I have my clock set to automatically update itself but it is ALWAYS about 30 seconds off! What's the point of that?
    Does anyone know of any way to enable this feature so that my iphone clock updates itself every time I connect it to my PC for example?
    Many Thanks in advance for your help.

    No, this has nothing to do with any carrier. I still have my 3G whose clock (always) is to the second with my atomic clocks at home (or my computers for that matter.) Both iPhone 4's in my family are off; one by 40 seconds, one by almost a minute, and increasing. They simply do not sync. I suspect that the clock module in the 4G is of an inferior quality.

  • Clock with ntp issues

    For some reason ntpdate insist on setting my clock to nine hours earlier than it actually is, maybe I haven't set my timezone correctly or something, but I'm not sure what I need to do different.
    Here's what I have in my rc.conf
    HARDWARECLOCK="localtime"
    TIMEZONE="Europe/Berlin"
    I have tried both localtime and UTC for HARDWARECLOCK, but when I run
    ntpdate de.pool.ntp.org
    I always get the wrong time.
    Do I have to do anything special after changing rc.conf so it gets reloaded or something? Because that's the only thing I can think of right now.
    EDIT: I'm not sure if I put this in the right forum, if it should go somewhere else I'd be thankful if one of the mods that be would move it.

    Did you search the forums and try this...
    http://bbs.archlinux.org/viewtopic.php? … hlight=ntp

  • 3750 stack won't sync with NTP server

    Any help greatly appreciated with this one - I can't for the life of me figure out what's going wrong here.
    I'm working on a 3750 stack in Singapore (UTC +8) and I'm trying to get it to sync its clock with 3.sg.pool.ntp.org.
    This is the weird part - "sh ntp associations" shows that it is syncing:
      address         ref clock       st   when   poll reach  delay  offset   disp
    *~199.195.193.200 203.117.180.36   2     52     64   377 80.936 -13895.  1.771
    * sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
    And "sh ntp associations de" shows that it's happy:
    199.195.193.200 configured, our_master, sane, valid, stratum 2
    ref ID 203.117.180.36, time D691F63E.C4B691CD (17:26:22.768 UTC Tue Jan 28 2014)
    our mode client, peer mode server, our poll intvl 64, peer poll intvl 64
    root delay 196.39 msec, root disp 592.71, reach 377, sync dist 944.69
    delay 80.93 msec, offset -13895.2686 msec, dispersion 2.65
    precision 2**20, version 4
    org time D691FA8F.5FF29003 (17:44:47.374 UTC Tue Jan 28 2014)
    rec time D691FA9D.5041E9C7 (17:45:01.313 UTC Tue Jan 28 2014)
    xmt time D691FA9D.3B3524C8 (17:45:01.231 UTC Tue Jan 28 2014)
    filtdelay =    82.20   80.93   82.17   81.49  155.78   81.08   84.67   82.09
    filtoffset = -13897. -13895. -13899. -13900. -13901. -13872. -13876. -13876.
    filterror =     0.00    0.99    1.98    2.94    3.94    4.92    5.87    6.81
    minpoll = 6, maxpoll = 10
    But the clock is stubbornly remaining unsynchronised ("sh ntp st"):
    Clock is unsynchronized, stratum 16, reference is 199.195.193.20
    nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**17
    reference time is 00000000.00000000 (08:00:00.000 UTC Mon Jan 1 1900)
    clock offset is -13895.2686 msec, root delay is 0.00 msec
    root dispersion is 14.62 msec, peer dispersion is 3.26 msec
    loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000000000 s/s
    system poll interval is 64, never updated.
    NTP-relevant config is as follows (no ACLs, outbound UDP 123 allowed on perimeter firewall):
    clock timezone UTC 8 0
    ntp server 3.sg.pool.ntp.org
    I have configured a pair of stacks in Hong Kong for NTP (though that was a couple of months ago and I recall that those were a pain at the time as well) and those are working fine.

    Much to my annoyance, the switch stack is now synchronised.  No  configuration changes were made in the interim; it just looks like it  needed a long time (well over an hour in this case) to start syncing  properly.

  • Hardware Clock Delayed

    Hello everybody. Since I installed Arch I realised that my laptop BIOS clock and my Archlinux clock as well are 2 hours delayed, but Ubuntu's clock is on hour.
    And if I change in the BIOS menu the hardware clock and set it on hour when I reboot the laptop it sets it -2 hours again.
    Maybe this is irrelevant but I live in GTM+2 (¿the clock sets to GTM? I don't know)
    Someone gets an idea?
    Thank you!

    Check the "TIMEZONE"  and  "HARDWARECLOCK" entries in your /etc/rc.config. Mine are set to "UTC" (hardwareclock) since Arch is my only OS on my machine and "Europe/Berlin" for timezone. Another possibility would be using NTP to sync your clock with a timeserver.

  • Please help troubleshoot why SM-SRE WAAS module can't time sync with NTP server

    I have a remote WAAS site where a SM-SRE-900 module is plugged in a 2945 router. Everything is fine except the module can't sync its time to the NTP server. Its NTP was configured right and it can reach the NTP server with no problem. There's no authentication configured. But somehow it can't associate with the NTP server. I have tried manual NTP sync, but it failed too.
    The same NTP server and config is also used for many other WAAS site and the CM. They are all fine. I'm running WAAS 4.2.3 build 7. The module isn't showing any other alarms.
    Here is some show outputs and the manual NTP sync result. I noticed its poll is only 64 seconds while all other sites are showing 1024 seconds.
    waas1#sh ntp status
    ntp enabled
    ntp authentication disabled
    server list:
    Server           Key
    10.0.0.1         -
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
    10.0.0.1        66.96.98.9       3 u   43   64  377   16.828  2359370 2421.24
    waas1#ntp 10.0.0.1
    16 Dec 22:06:20 ntpdate[9835]: bind() fails: Permission denied
    Failed to set software clock using NTP server 10.0.0.1

    What the SRE-900 have as it's time?  Use the show clock command.  Does it match within a few minutes of ntp already, if not, and if this is not the first first clock set out of the box, then ntp sync might fail.
    You might try to manually set the clock correctly (set clock ... something), then see if the ntp server will sync.

  • OVM Guest wrong hardware clock

    Hi,
    I'm running an Enterprise Linux 6.3 (PVM) on an OVM host.
    The problem is that the date in the EL guest doesn't correspond to the date in the OVM host. The time in /var/log/messages is skewed: it's 6hours too early.
    The hwclock on the host:
    [root@lnx-iaovm01 /]# hwclock
    Fri 17 May 2013 10:53:51 AM CEST -0.737400 seconds
    Output of the command on the guest:
    [root@lnx-ianag01 vm]# hwclock --debug
    hwclock from util-linux-ng 2.17.2
    hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
    No usable clock interface found.
    Cannot access the Hardware Clock via any known method.
    I tried the following solution: ln -s /dev/rtc0 /dev/rtc
    but I don't have a /dev/rtc0 directory so this isn't very successful
    I also tried setting my TZ in my /etc/profile (so the "date" command atleast is correct but since this is just an environment variable so it doesn't really help either).

    Isn't it easier to just enable ntp to sync your VM with a clocksource locally in your network or on the internet?

  • IPod touch does not sync or charge with specific Mac

    Hello,
    I've been having trouble connecting my iPod touch to an iMac4,1 1.83GHz Core Duo running Mac OS X 10.6.
    The Mac in question will happily sync with an older iPod nano (back when the screens were black and white), but not my iPod touch which is the latest gen 32gb.
    The iPod touch is able to sync with other iMacs at my uni, as well as the PC I have at home.
    I have taken the following steps to alleviate the problem but nothing has helped:
    a) re-installed itunes
    b) re-installed apple mobile device
    c) checked for any updates.
    Finally, if I start the iPod touch in recovery mode the iMac will detect it and attempt to restore it, but will fail with an error 1611.
    Any help will be very appreciated.

    Welcome to the discussions,
    See this article about error 1611, Specific error codes and resolutions: http://support.apple.com/kb/TS1275
    Error 23, 28, 29, 1011, 1012, 1611: These errors may indicate a hardware issue with your device. Follow the steps in this article and also attempt to restore while connected to a known-good computer and network to isolate this issue to the device. If the IMEI or MAC address is missing or is a default value, this can also confirm a hardware issue.
    copied from the article mentioned above.

  • I want to sync IPhone 5 with itunes, but I can't upgrade itunes nor mac os.

    I just got the iPhone 5 and I would like to sync it to my itunes to upload music. However, apparently I need to buy the snow leopard os for $200 to do so. I am not willing to pay $200 just to upload music on my phone. There has to be another way to do connect my iphone to itunes. Below are the specifications for my mac.
    Hardware Overview:
      Model Name:    MacBook Pro
      Model Identifier:    MacBookPro5,1
      Processor Name:    Intel Core 2 Duo
      Processor Speed:    2.4 GHz
      Number Of Processors:    1
      Total Number Of Cores:    2
      L2 Cache:    3 MB
      Memory:    2 GB
      Bus Speed:    1.07 GHz
      Boot ROM Version:    MBP51.007E.B06
      SMC Version (system):    1.33f8
      Serial Number (system):    W884177P1G0
      Hardware UUID:    46741167-3A83-5E0A-B187-2B740D998276
      Sudden Motion Sensor:
      State:    Enabled
    System Software Overview:
      System Version:    Mac OS X 10.5.8 (9L31a)
      Kernel Version:    Darwin 9.8.0
      Boot Volume:    Macintosh HD
      Boot Mode:    Normal
      Computer Name:    Hussam’s MacBook Pro
      User Name:    Hussam (hussam)
      Time since boot:    17 days 1:57
    iTunes:
      Version:    10.6.3
      Last Modified:    8/28/12 9:38 PM
      Kind:    Universal
      Get Info String:    iTunes 10.6.3, © 2000-2012 Apple Inc. All rights reserved.
      Location:    /Applications/iTunes.app

    If you aren't willing to upgrade your MacOS to something newer than about 5 years old, then consider using BootCamp and Windows, then use a Windows version of iTunes.
    I personally recommend considering the MacOS update.  I have heard reports that if you call Apple on the phone, you might be able to purchase an upgrade to Snow Leopard for $30.  You could always find a friend who has a Mac with Snow Leopard or newer, and sign onto the Mac App store using your ID (but their computer) to buy a license for Lion or Mountain Lion, then after downloading it, use the Lion disc maker to make a bootable USB key to install the newer (and only $30) OS on your hardware.  With that, you would then qualify to run iTunes 10.7 or even iTunes 11.

  • Hardware clock and system clock don't match

    hello. i recently upgraded to kde 4.7, and i don't know if it's the culprit or not, but my system clock is now ahead of the hardware clock by the timezone offset.
    my timezone is Asia/Manila, which is UTC+8. so if the correct time is 00:00, the system time is 08:00.
    i dual boot with windows so the HARDWARECLOCK setting in /etc/rc.conf is set to localtime.
    interestingly, the commands "hwclock --show" and "date" both show PHT as the timezone, but with the aforementioned time skew. to illustrate:
    # hwclock --show
    Fri 05 Aug 2011 10:45:02 AM PHT -0.500309 seconds
    # date
    Fri Aug 5 18:45:02 PHT 2011
    running "hwclock --hctosys" fixes the problem while logged in, but restarting the computer reverts the problem. i could put a daemon that runs the command at startup, but i never needed to do that before and i'm not inclined to at the moment. i think this is just a misconfiguration somewhere.
    thanks for any help you could give.

    hello. it is
    hwclock from util-linux 2.19.1
    Using /dev interface to clock.
    Last drift adjustment done at 1312511647 seconds after 1969
    Last calibration done at 1304274137 seconds after 1969
    Hardware clock is on local time
    Assuming hardware clock is kept in local time.
    Waiting for clock tick...
    ...got clock tick
    Time read from Hardware Clock: 2011/08/05 12:08:46
    Hw clock time : 2011/08/05 12:08:46 = 1312517326 seconds since 1969
    Fri 05 Aug 2011 12:08:46 PM PHT -0.690104 seconds

  • Can't sync Verizon V3 with computer

    Very frustrating. I finally found a phone I like, that takes the place of my long-lost Startac, and the iSync website specifically says it can sync addressbook and calendar with the V3. But not Verizon's, I guess.
    Verizon just brought out their V3. It is identical to anybody else's, except instead of quad-band, I guess it's CDMA. It doesn't use a SIM card.
    Now, either my Titanium doesn't have bluetooth, or the bluetooth 1.0 spec that it does support is useless. I went out and bought a $40 BT 2.0 dongle. Well, the computer at least recognizes there's a phone sitting next to it and pairs with it, but when asked what I want to do with the device, I get ONLY the checkbox for using it as an internet modem. No option for syncing calendar and contacts.
    In iSync, I can also get the computer to recognize that there is a device, but then it states that the device is not supported. No ifs, ands, or buts. That's as far as I can get. No device appears between the .mac and sync icons.
    My phone didn't come with a USB cable. Am I going to have to buy a special one? I tried a standard USB cable off a printer and it won't charge the phone, even.
    So am I doing something wrong, or do I just need to go back to using my Kyocera palm-os brick?

    You make good points about Apple's software needing an update; but I can't sit and wait an untold amount of time before the update happens. I'm curious as to WHY iSync can't communicate with all V3's; the fact that it can't points to hardware changes with the V3c's (which I can confirm from inspection) as well as possible software problems on Verizon's side. I am always suspicious of the fact that their phones have to be "programmed" over the air - I suspect that last-minute encoding actually reduces functionality.
    As for the look and feel -- I didn't like their unworkable red-bars interface and the Verizon version of the V3 lacks the "menu" key in between the left and right softkeys.
    The only strength Verizon still has over competitors is signal coverage and consistency. But Cingular is rapidly catching up (and Sprint rents their lines from Verizon!). Anywhere I need to go is always a major metro area; and my parents, who live in a motorhome and travel extensively, have moved to Cingular with no signal problems - at least along interstates and such. The backwoods of Wisconsin, I don't know about.
    Apple's iSync compatibility list has many Motorla phones listed - only ONE non-V3 is carried by Verizon that I can see. And obviously there's problems with the new V3c. This almost non-existent relationship between Apple and Verizon is unacceptable - I chose to go the easy route and have been rewarded with a phone that has MORE functionality and customizability. I can't put a price on that.

  • Sync outlook cal with ical/cloud

    Hi Everyone
    I have been searching for days to fix a problem with sync my outlook on my mac with ical and icloud with no luck
    I have an imac, mac book pro and an iphone 5. I use outlook on my imac for new appointments and contacts. When I insert a new app in my outlook cal, it does not sync to the ical. But when I sync my iphone with itunes the new app will appear. There seems to be a problem with linking/sync information from my outlook to my imac cal.
    Any advice??
    Thank you Paul

    This is a forum for the MacBook Pro hardware.  As a suggestion, repost your question in the iCal forum, where questions about iCal will be quickly answered. 

  • Display Synchronised System Clock With Milliseconds (HH:MM:SS:mm)

    Hello All,
    I need to display the system clock with hours, minutes, seconds and milliseconds (the system clock it synchronised via NTP or GPS and needs to be accurate)
    Using the Buddy API time functions I can display the time with an accuracy of seconds but the inbuilt lingo "the Milliseconds" and Ticks does not correspond to the system time.
    for example I tried using
    member("MyTimeStamp").text = baSystemTime("%0H"&":"&"%0M"&":"&"%0S"&":"&chars(""&the milliseconds, 6,7))
    but the seconds change out of synch with the milliseconds, the milliseconds are approximately 10-12 ms faster and I don't want to fudge the timing, I recorded the display with a slow motions camera and can see the seconds reset to 0 when the milliseconds are already at a value of 10 - 12.
    Any Idea how I can derive milliseconds using the system time? HH:MM:SS:mm
    thanks.

    10-12 ms delay (error) is the correspondent of a 80-100 FPS (polling interval).
    Theoretically speaking, to get 1ms delay (error) you need to run your script at 999 FPS (the max value allowed by D12).
    Practically speaking, that's not possible (many other factors are involved here).
    cheers

  • I have an iphone 4 just updated my iTunes and now i'm having troubles to sync my iPhone with iTunes... can anyone help me plz?

    i have an iphone 4 just updated my iTunes and now i'm having troubles to sync my iPhone with iTunes... can anyone help me plz?

    You need to do as provided. If no change after restoring as a new iPhone or not from the backup, the iPhone has a hardware problem.

Maybe you are looking for