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  <20112012  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: problem with gateway and softIoc running on same server
From: Dirk Zimoch <[email protected]>
To: Kevin Tsubota <[email protected]>
Cc: [email protected]
Date: Thu, 19 May 2011 11:31:09 +0200
Hello Kevin,

When you run two or more CA servers (IOCs or gateways) on the same machine, you cannot reach all of them with the host ip address in EPICS_CA_ADDR_LIST. You can only reach all with the broadcast address.
Thats exactly what the warning that an IOC prints in this case is about:

cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 38724,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)

However, it should work when using different ports for the IOC and the gateway server part. I tried it:

(on the same host)
export EPICS_CA_SERVER_PORT=8164
<start the ioc with ai record DZ-ai:ch1>
unset EPICS_CA_SERVER_PORT
gateway -cip 129.129.145.26:8164 -sip 129.129.145.26 -sport 5064
caget DZ-ai:ch1
DZ-ai:ch1                      0
Works.

gateway -cip localhost:8164 -sip 129.129.145.26 -sport 5064
Works too.

Maybe using localhost is the solution for you.

Also check the firewall settings.
sudo /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

(No filtering here)



Best regards,
Dirk

Kevin Tsubota wrote:
Hi,

I want a gateway to publish PVs from 192.168.134.51:8064 which is on a private network connected to 192.171.95.112 (where a softIoc is already running) because I can’t access this private

I have the situation where I have a solaris-8 server (192.171.95.112) with two network cards. One goes to our observatory network and the other goes to a private network running a windows based softIoc (192.168.134.51). Now I need access to the PVs of the widows softIoc from other IPs on the observatory network. I can successfully get the gateway to publish the windows softIoc PVs without any problems. However, I have a solaris softIoc running on the same server as the gateway and this is where I’m having problems. I’ve tried using different EPICS_CA_SERVER_PORTS for both IOCs but no matter what I try I can’t get the gateway to see the solaris IOC on the same IP. If I manually set my EPICS_CA_SERVER_PORT at the command line then issue a caget, it successfully returns the PV value but it reports that there’s multiple instances of the PV.

My question is: can a gateway co-exist with a softIoc in the same ip address?

If so, what do I need to do to make it happen? Using different EPICS_CA_SERVER_PORTs doesn’t seem to be it. Is this related to the fact that I can’t run multiple softIocs on the same server unless I change port numbers? In which case I’d want a gateway to interface to them as well.

Here’s my startup command run on the solaris server (128.171.95.112):

/usr/local/epics/r3.14.9/extensions/bin/solaris-sparc-gnu/gateway -debug 1 -pvlist k1lmct.pvlist -access GATEWAY.access -home $HOME -log k1lmct.log -sip "128.171.95.112" -sport 5064 -cip "192.171.95.112:8164 192.168.134.51:8064" -prefix k1:lmct:gateway&

Here’s the start of the debug output log:

PV Gateway Version 2.0.3.0 [Feb 20 2008 16:27:23]

EPICS 3.14.9 PID=13539

EPICS_CA_ADDR_LIST=192.171.95.112:8164 192.168.134.51:8064

EPICS_CA_AUTO_ADDR_LIST=NO

EPICS_CA_SERVER_PORT=Not specified

EPICS_CA_MAX_ARRAY_BYTES=Not specified

EPICS_CAS_INTF_ADDR_LIST=128.171.95.112

EPICS_CAS_SERVER_PORT=5064

EPICS_CAS_IGNORE_ADDR_LIST=Not specified

Thank you in advance!

Kevin Tsubota

W.M. Keck Observatory



Replies:
RE: problem with gateway and softIoc running on same server Kevin Tsubota
References:
problem with gateway and softIoc running on same server Kevin Tsubota

Navigate by Date:
Prev: problem with gateway and softIoc running on same server Kevin Tsubota
Next: Re: problem with gateway and softIoc running on same server Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: problem with gateway and softIoc running on same server Kevin Tsubota
Next: RE: problem with gateway and softIoc running on same server Kevin Tsubota
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·