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 <2021> 2022 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 <2021> 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Finding the server where a PV's IOC is located |
From: | "Sobhani, Bayan via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 23 Nov 2021 20:40:45 +0000 |
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: bsobhani@cagw02:~/code/scratch$ cainfo XF:03ID-CT{RG:C2}T-I XF:03ID-CT{RG:C2}T-I State: connected Host: cagw01.cs.nsls2.local:5064 Access: read, no write Native data type: DBF_DOUBLE Request type: DBR_DOUBLE Element count: 1 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: bsobhani@cagw01:~/rack-cmd$ cainfo XF:03ID-CT{RG:C2}T-I XF:03ID-CT{RG:C2}T-I State: connected Host: xf03idc-ioc2-313.nsls2.bnl.local:41317 Access: read, write Native data type: DBF_DOUBLE Request type: DBR_DOUBLE Element count: 1 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?
Alex |