Hi Jason, that's what the readonly UDS socket is for. With default configuration and PTP4L master branch, this is how you can query TIME_STATUS_NP without root:

pmc -u -s /var/run/ptp4lro -i /tmp/pmc.socket "GET TIME_STATUS_NP"

The key is to supply the "-s /var/run/ptp4lro" which points to the read-only socket. You also need to pass "-i /tmp/pmc.socket" or something similar - this points to the path where PMC should create its own socket. By default, it is /var/run/pmc.$pid, but that location is not writable for non-root users. So I just usually point it to /tmp (this socket is practically useless).

Martin

--
Mgr. Martin Pecka, Ph.D.
Researcher at Vision for Robotics and Autonomous Systems group
Faculty of Electrical Engineering
Czech Technical University in Prague
Phone: +420 22435 7269

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