EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Finding the server where a PV's IOC is located
From: "Sobhani, Bayan via Tech-talk" <tech-talk at aps.anl.gov>
To: Ralph Lange <ralph.lange at gmx.de>, EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Wed, 24 Nov 2021 13:59:56 +0000
Hi Ralph,

I only have a basic understanding of how the channel access protocol works, but my understanding is that the client just makes a socket connection to a port and then sends the channel access commands. 

I might be making some incorrect assumptions, but I think that if to get the host from your local machine's perspective you send some channel access commands to a local port, then to get the host from the gateway machine's perspective you can just make a socket connection to the right port on the gateway machine and send the same commands, without needing to ssh in the gateway machine. Do you know if this is how it works?

Alex


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, November 24, 2021 2:44:50 AM
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Subject: Re: Finding the server where a PV's IOC is located
 
On Tue, 23 Nov 2021 at 21:41, Sobhani, Bayan via Tech-talk <tech-talk at aps.anl.gov> wrote:

If you type “cainfo <pv name>”, one of the fields it returns is “host”, which is often the server that the PV’s IOC is running on.

 

But sometimes the “host” is really a gateway server and not the IOC server itself. For example:

 

[...] 

And then to find the real IOC server I would do “ssh cagw01.cs.nsls2.local” and then do “cainfo XF:03ID-CT{RG:C2}T-I” again, and I get:

 

[...] 

And now I have xf03idc-ioc2-313.nsls2.bnl.local, which is the real IOC server. Is there a way to find this IOC server without ssh?


Using Channel Access? No.
Many installations (including NSLS 2 btw.) are using the ChannelFinder directory service to collect and provide that kind of information.

Cheers,
~Ralph


Replies:
Re: Finding the server where a PV's IOC is located Michael Davidsaver via Tech-talk
References:
Finding the server where a PV's IOC is located Sobhani, Bayan via Tech-talk
Re: Finding the server where a PV's IOC is located Ralph Lange via Tech-talk

Navigate by Date:
Prev: ODP: Failed connection using e3-s7plc to Siemens S7-1500 Mateusz Nabywaniec via Tech-talk
Next: Printing the timestamp_sec in CA wireshark plugin. Shankar, Murali via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Finding the server where a PV's IOC is located Ralph Lange via Tech-talk
Next: Re: Finding the server where a PV's IOC is located Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 28 Nov 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·