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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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".