This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASL v5.206 and NTP

I have ASL running for a number of weeks. I finally understood how to get the NTP function working? The manual and the actual process don't agree. The calls to the NTP server showup in the logs, but how do I tell if the NTP function is actually doing anything without screwing with the time to far?
 [:S]


This thread was automatically locked due to age.
Parents
  • Had a system crash yesterday, didn't check the time, but investigated it following complaints of no access and found the clock out by about 1 hour. NTP had not corrected the system time.

    So is this a bug or am I doing something very wrong?

    Ian M
  • Upgraded to 6.001 installed lots of goodies and licenses, but the NTP update still doesn't work as per handbook/manual.

    Ian M [:S]
  • William,
    I am using the one for Australia.

    The issue being, the document as per the CD manual (same for V5 & V6) says make the NTP server a single network. The practice is that the Setup page doesn't allow you to select networks only hosts. So does the NTP software in Astaro ignore what type of "definition" the called device is and updates from the returned result or does it expect a different format depending on definition?

    Ian M [:)]
  • [ QUOTE ]
    William,
    I am using the one for Australia.

    The issue being, the document as per the CD manual (same for V5 & V6) says make the NTP server a single network. The practice is that the Setup page doesn't allow you to select networks only hosts. So does the NTP software in Astaro ignore what type of "definition" the called device is and updates from the returned result or does it expect a different format depending on definition?

    Ian M [:)] 

    [/ QUOTE ]
    YOu define a network by ip..that is correct.  goto my previous post and goto ntp.org and use another ntp server if the preset one is not working.
  • I must be saying something the wrong way.

    I will summarize the issue. 

    The Astaro manual does not agree with the software.

    Ian M
  • [ QUOTE ]
    I must be saying something the wrong way.

    I will summarize the issue. 

    The Astaro manual does not agree with the software.

    Ian M 

    [/ QUOTE ]
    Ok,  are you using the printed manual or the pdf?  The instructions inside astaro by clicking the blue question mark worked perfectly for me.  The manual is arranged that you have to cross reference.  If it says you have to create a network then you need to go find the how to create a network definition area.  The documentation is not great in that regard.

    I am looking at the manual from the knowledgebase(the downloadable pdf file).  Things worked exactly as told out.   Where is the documentation not agreeing with the software?
  • William,
    I am using the manual that comes with the ISO. In both V5.x and V6.x it says create a network of one IP address. The software does not allow you to select a "network" ie it is not on the pick list, only "hosts" as defined in Astaro network definition menu. From memory the online help (from admin menu) also says the same thing as the manuals in the ISO.

    Ian M [:)]
  • Here's what I did to set up NTP (looking at the actual set up rather than the manuals).
    In Network Definitions, define a new network like:
    Name: NTP Server
    Type: DNS Hostname
    Hostname: utcnist.colorado.edu

    utcnist.colorado.edu happens to be the one I'm using, pick one that's close / reliable. You could also enter it as Type: Host and enter the IP address directly.

    In System|Settings:
    Set the timezone.
    Pick 'NTP Server' from the pick list for 'Use NTP Server'

    That should be it. 

    Also, check for lines like:
    /USR/SBIN/CRON[28275]: (root) CMD ( /usr/sbin/ntpdate -u -b 128.138.140.44 1>/dev/null 2>/dev/null)
    in the system log messages log. You may want to run the command manually (via SSH)  and see if it runs OK.
  • doug_p,
    thank you. I used your suggestion and put a NTP pool in as a DNS host.
    I was getting those messages you posted in the systemlog file, but my clock wasn't changing. Until I manually updayed the clock it used to do NTP calls at 2 minutes past the hour,now it does them on th ehour, but I am still not sure the clock is being corrected.

    Ian M     
  • Running it from the command line, you should see a response like:
    19 Aug 14:25:43 ntpdate[10830]: step time server 128.138.140.44 offset 0.002433
    indicating a successful update. there is also another command that should be visible in the system log:

    /USR/SBIN/CRON[10527]: (root) CMD ( /sbin/hwclock --systohc --utc 1>/dev/null 2>/dev/null)

    running at 5 minutes after the hour that then updates the hardware clock to the newly updated system time. 

    As for testing it, you could always set the time off by some known amount compared to a reference clock (set to match the NTP server you are using)  shortly before a scheduled NTP update and see if it gets corrected. Setting it off by a minute would be enough to be able to see the change.

    You can get a NTP client for Windows at  http://tf.nist.gov/service/its.htm
    The server list it has is all US servers, but you can add others to the config file.
  • doug_p,
    success. I found the problem the NTP server I was using along with 3 others I tried would not update the time.
    This morning I used my linux box to try out NTP servers and found 2 Australian and 1 French would not update the clock. Tried a UK based one and bingo first time the linux clock adjusted, tried the same clock on the Astaro box and bingo the clock adjusted correctly. 
    For a change I now have at least 2 clocks that are synchronised.

    Ian M [:)]
  • Sorry I know this dosn't address the original question. 
    Just some quick help on NTP create a network definition (multiple records) and point to au.pool.ntp.org
    see www.ntp.org for other pools and info on NTP.
Reply Children