Menu

ptpd v2(2008) Configuration File Location and running it in Slave Mode

Help
skg
2015-11-28
2015-11-28
  • skg

    skg - 2015-11-28

    **Hey guys,

    what is the command to run ptpd v2 in Slave mode.I downloaded version 2.2.2 on my ubuntu system.

    i tried this command
    ptpd -C -I eth0 -gGW slave

    but soon after listening state it switches to Master state.
    Also where is the Configuration file of ptpd located.

    i get something like this.... where are these lines written . There has to some file where these are picked up from.

    (ptpd info) 12:06:47.609176 () Multicast group selection not enabled. Please compile with PTP_EXPERIMENTAL
    (ptpd info) 12:06:47.609250 () Info: Going to check lock /var/run/kernel_clock
    (ptpd info) 12:06:47.623203 () Info: No ptpd2 daemons detected in parallel (as expected)
    (ptpd info) 12:06:47.631687 () Info: No ntpd daemons detected in parallel (as expected)
    (ptpd info) 12:06:47.631752 () Info: Going to check lock /var/run/kernel_clock
    (ptpd info) 12:06:47.631819 () Info: Startup finished sucessfully

    2015-11-28 12:06:47.631864, init,
    (ptpd info) 12:06:47.694671 (init) refreshed IGMP multicast memberships
    (ptpd info) 12:06:47.694753 (init) now in state PTP_LISTENING
    2015-11-28 12:06:47.694816, lstn_init, 1
    (ptpd info) 12:06:59.632045 (lstn_init) now in state PTP_MASTER
    2015-11-28 12:06:59.632109, mst, 689423fffe077ab5(unknown)/00

    **Regards

     
  • Wojciech Owczarek

    Hi,

    You are using an old version of ptpd, probably one that was bundled with Ubuntu. There is no support for a configuration file in 2.2.x. You need to install the latest stable version which is 2.3.1. You can download it from here, but any subsequent releases will be available from GitHub (http://github.com/ptpd/ptpd). You are going into master because you didn't set it to be slave only, and it is running the default state machine which is:

    • when we are best master or no other master present, become slave,
    • when we are not the best master, become slave to the best master

    Have you actually got a PTP master running on your network?

    Thanks,
    Wojciech

     
    • skg

      skg - 2015-11-28

      Hi Wojciech,

      Thanks for a quick look.
      Actually i just started with PTPd .It is my second day with it :)
      Yes i ran my machine as ptpd Master and slave on another Machine and recorded Wireshark Messages(Sync, follow_up etc).

      i ran this command and it worked.
      ptpd -C -i eth0 -gGW master

      This time I want to make my machine as Slave.

      I just want to know the command , how to run it in Slave Mode.

      And After Installing 2.3.1, where is the Configuration file located.
      is it like /etc/config something like this.

      May be I am missing something here .

      Kind Regards

       

Log in to post a comment.