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