Would that be by telling it which /dev/ptpx I am using?

-----Original Message-----
From: Jacob Keller <jacob.e.kel...@intel.com> 
Sent: Friday, September 25, 2020 7:40 PM
To: linuxptp-users@lists.sourceforge.net
Subject: Re: [Linuxptp-users] PMC Reporting portState: Slave When Interface Not 
Active



On 9/25/2020 4:18 PM, Vladimir Oltean wrote:
> Hi Daniel,
> 
> On Fri, Sep 25, 2020 at 03:34:11PM +0000, Zuckerbrod, Daniel wrote:
>> Hi,
>>
>> I am running two instances of ptp4l on the same machine (eth1 and 
>> eth2). It looks like the pmc utility is not choosing which interface 
>> correctly when trying to query it.
>>
>> If I only run ptp4l on eth1 but execute the following command:
>>
>> pmc -u -b 0 -i eth2 'GET PORT_DATA_SET'
>>
>> then I get the following output:
>>
>>       023580.fffe.00370c-1 seq 0 RESPONSE MANAGEMENT PORT_DATA_SET
>>                 portIdentity            023580.fffe.00370c-1
>>                 portState               SLAVE
>>                 logMinDelayReqInterval  2
>>                 peerMeanPathDelay       0
>>                 logAnnounceInterval     1
>>                 announceReceiptTimeout  3
>>                 logSyncInterval         0
>>                 delayMechanism          1
>>                 logMinPdelayReqInterval 0
>>                 versionNumber           2
>>
>> I would expect it to come back as blank. I need to be able to 
>> separately detect the portState of each of the two interfaces I have 
>> running.
> 
> You are misunderstanding the '-i' option, have you read the manual 
> description?
> 
> -i interface
>        Specify the network interface. The default is /var/run/pmc.$pid
>        for the Unix Domain Socket transport and eth0 for the other
>        transports.
> 
> This is about the communication channel between pmc and ptp4l, not 
> about the interface to query. Consider the general case where ptp4l is 
> running on a remote host, you have no idea if it's called eth0 over 
> there or something else.
> 
> Thanks,
> -Vladimir
> 
> 

Presuming that you have two separate instances of ptp4l running, they would 
likely need to be running on separate PTP domains. In this case, what you 
really want to do is tell pmc which PTP domain to talk to.

Thanks,
Jake


_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Flinuxptp-users&amp;data=02%7C01%7Cdzuckerbrod%40textronsystems.com%7C1543c18bd22c44fe33f408d861ac7197%7C2d5b202c8c074168a55166f570d429b3%7C0%7C0%7C637366740558249492&amp;sdata=KSN2ef0w43C9OROYbcuZjGnoghHTuaIbVIYGw3JlIzI%3D&amp;reserved=0


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

Reply via email to