Just make sure the filenames you pass as the "-i" argument are unique if the two pmc instances can run at the same time.

Martin

Dne 3.10.2022 v 19:19 Rich Schmidt napsal(a):

Thank you Martin,

Indeed the sockets must be rw.


Regards,

Rich Schmidt


$ sudo chmod o+r,o+w /var/run/ptp*


$ ls -l /var/run/ptp*

srw-rw-rw-. 1 root root 0 Sep 30 17:55 /var/run/ptp4l-1

srw-rw-rw-. 1 root root 0 Sep 30 17:55 /var/run/ptp4l-2


$ pmc -u -s /var/run/ptp4l-1 -i /tmp/pmc.socket "GET TIME_STATUS_NP"

sending: GET TIME_STATUS_NP

b49691.fffe.37fe80-0 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP

master_offset13

ingress_time 1664817421491931913

cumulativeScaledRateOffset +0.000000000

scaledLastGmPhaseChange0

gmTimeBaseIndicator0

lastGmPhaseChange0x0000'0000000000000000.0000

gmPresenttrue

gmIdentity 0019dd.fffe.002009

b49691.fffe.35c204-1 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP

master_offset72

ingress_time 1664817421491932021

cumulativeScaledRateOffset +0.000000000

scaledLastGmPhaseChange0

gmTimeBaseIndicator0

lastGmPhaseChange0x0000'0000000000000000.0000

gmPresenttrue

gmIdentity 0019dd.fffe.002009

[ntp.richard.schmidt@dc-ntp01 ~]$ pmc -u -s /var/run/ptp4l-2 -i /tmp/pmc.socket "GET TIME_STATUS_NP"

sending: GET TIME_STATUS_NP

b49691.fffe.37fe82-0 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP

master_offset-12

ingress_time 1664817432854059256

cumulativeScaledRateOffset +0.000000000

scaledLastGmPhaseChange0

gmTimeBaseIndicator0

lastGmPhaseChange0x0000'0000000000000000.0000

gmPresenttrue

gmIdentity 0019dd.fffe.001ffb

b49691.fffe.35c206-1 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP

master_offset125

ingress_time 1664817432854059400

cumulativeScaledRateOffset +0.000000000

scaledLastGmPhaseChange0

gmTimeBaseIndicator0

lastGmPhaseChange0x0000'0000000000000000.0000

gmPresenttrue

gmIdentity 0019dd.fffe.001ffb

Attachment: smime.p7s
Description: Elektronicky podpis S/MIME

_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to