Menu

PTPd how to tell if it is working

Help
flare04
2008-02-12
2012-11-23
  • flare04

    flare04 - 2008-02-12

    In debug mode you can tell fairly quickly whether the system is working, but once you compile the program for running live.  How do you tell if the slaves are keeping in sync with the master ?

    We have a master server, fed by a CDMA time source, NTP is used to set the system clock and talk to the CDMA device.  The slave machines then just run ptpd -g to talk to the master or listen for the masters output.

    So is there a similar program to ntpq that can be used to find out whether a machine is in sync or not ?

    Thanks

     
    • flare04

      flare04 - 2008-02-21

      OK I worked out a method.  Which is to start up the clients recording stats, and then I monitor the mtime of this file to ensure that ptpd is receiving updates.

       
    • kendall

      kendall - 2008-02-25

      You can also query PTPd with management messages. Running "ptpd -k 0" will send out out all of the management messages defined by IEEE 1588 that query information. (There are other messages to set parameters in IEEE 1588 nodes, but there's no way to send them with PTPd.) The number after the "-k" option is the management message key. Running "ptpd -k 10" will cause the nodes to respond with the PTP_MM_CURRENT_DATA_SET message, which includes their estimate of their offset from the master. Finally, you can limit the query to only local servers by sending on the loopback device with "ptpd -k 0 -b lo".

       

Log in to post a comment.