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]
  • I have 3 devices on my network all using NTPs, 2 are that close it doesn't matter, the 3rd is out be 2 minutes and guess which one it is, the Astaro.


     [:S]
  • Which NTP server are you using?

    Barry
  • [ QUOTE ]
    I have 3 devices on my network all using NTPs, 2 are that close it doesn't matter, the 3rd is out be 2 minutes and guess which one it is, the Astaro.


     [:S] 

    [/ QUOTE ]
    ASL is not a ntp server.  It has the ability to use just about any other ntp server to correct it's own time.
  • Barry, William,
    I realise the Astaro server is not a NTP server. I tried to set the NTP server up as per the manual, which advises to make it a network, you can't access a network from the NTP server on the settings page, you can only access a host.

    I am using the NTP server for Australia as per the Astaro V6 manual, same as V5. - 203.60.1.2
    I can see the NTP server being accessed from the logs, but the time doesn't seem to be corrected.
    This linux box I am using at the moment and my network/modem interface are also updated by NTP and are very close in time while the Astaro is 2 minutes different.

    Ian M

     [:)]
  • ok..i bet your motherboard's clock is just hosed.  ASL probably updates every 5 mintues and your clock's skew is really really bad.   As you noted in the other thread..that mobo may not be long for this world.
  • William,
    the mb clock works fine, I corrected it while fixing the BIOS. Astaro has set it to UTC, but just doesn't appear to update it from the NTP.

    But I still don't have an answer to the documentation issue.

    Ian M [:)]
  • [ QUOTE ]
    William,
    the mb clock works fine, I corrected it while fixing the BIOS. Astaro has set it to UTC, but just doesn't appear to update it from the NTP.

    But I still don't have an answer to the documentation issue.

    Ian M [:)] 

    [/ QUOTE ]
    Here's what the help inside the webadmin says:
    :: Time Settings ::

    In order for firewall logs to be accurate with regard to date and time, you have to set the firewall's timezone and local time here. The recommended procedure is as follows:

        * Set the timezone
        * Set the local time manually
        * Select an NTP server if you want to synchronize your time settings with an external host (recommended)

    Here are some examples for NTP servers:

        * Europe: 192.53.103.103
        * Australia: 203.60.1.2
        * Afrika: 143.128.82.200
        * Asia: 137.189.8.137
        * North-Amerika: 204.123.2.5
        * South-Amerika: 146.164.48.5

    Please note that the NTP server synchronization takes place hourly.


    Following those instructions things work great.  However I have my own ntp server setup and all my boxes including the firewall synch to it.  

    Which ntp server in the list(not the list in the above documentaion but the list inside webadmin) are you using?
  • 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.
Reply
  • [ 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.
Children
  • 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.
  • Mark,
    while that approach provides a list of IPs for each NTP server in the pool, you cannot select it/any from the time synchronisation drop down list.

    Ian M [:)]
  • Sorry you are correct 
    just checked my system. I found that my system was set as a single dns host name (host ntp au pool = au.pool.ntp.org). It's a work around.
    Mark  [:O]