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: Multiple IOCs on one host Issue
From: "Manoussakis, Adamandios via Tech-talk" <tech-talk at aps.anl.gov>
To: Heinz Junkes <junkes at fhi-berlin.mpg.de>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 18 Mar 2021 21:11:46 +0000
Hi Heinz,

I will double check and manually run if-up/down to see if that forces the script run before writing in the hooks in netplan.  Worst case I will just bypass netplan for now, since if-up/down still comes with 18.04.

On a running system, netplan can be removed by installing ifupdown, configuring /etc/network/interfaces manually as users have done before and finally removing the netplan.io package altogether. To apply the new setup without rebooting, users can restart the affected interfaces (i.e. using the ifdown/ifup commands) and then stop/disable the systemd-networkd and systemd-networkd.socket units respectively.

@Han

* What is your OS? According to OS, you should add the different script into a different folder 
	Ubuntu 18.04
* Do you have an ip command?
	Yes
* Permission of this script is 755.
	Will double check permissions I only had added +x, possible that it needs read permissions added.
* Do you have any iptable rules? Or firewall?
	Default install of 18.04, iptables has some docker rules but no rules for stopping any packet traffic.  Also no firewall running on this one.
* Do you use Network Manager or not?
	Not using NetworkManager
* Do you use the standard CA port or not?
	Using Standard port for CA



-----Original Message-----
From: Heinz Junkes <junkes at fhi-berlin.mpg.de> 
Sent: Thursday, March 18, 2021 1:57 PM
To: Manoussakis, Adamandios <manoussakis1 at llnl.gov>
Cc: Ralph Lange <ralph.lange at gmx.de>; tech-talk at aps.anl.gov
Subject: Re: Multiple IOCs on one host Issue

ubuntu 18.04 uses netplan and no longer if-up/down.

https://netplan.io/faq/#use-pre-up%2C-post-up%2C-etc.-hook-scripts


Heinz


> On 18. Mar 2021, at 21:26, Manoussakis, Adamandios via Tech-talk <tech-talk at aps.anl.gov> wrote:
> 
> Hey Ralph,
>  
> Could there be something I am overlooking when using your script, I am fairly sure I have it setup correctly but still can not get it the client to communicate with all the IOCs.
>  
> Setup is as follows:
>  
> Client 192.168.1.50
> Client running caget PV1
> Env variable CA_ADDR is set to the host ip and CA_AUTO is set to YES
>  
> Host 192.168.2.100
> Host running 4-5 IOCs (script is in both of the /etc/network/if-up/down.d folders and have been made executable)
> Env variable CA_ADDR is set to the client ip and CA_AUTO is set to YES
>  
> If I start up the IOCs in different orders the client does not always have access to the all of the IOC pvs.  I can run each IOC isolated and client is able to caget the PVs.
>  
> Thanks,
> Adam
>  
> From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Mark Rivers via Tech-talk
> Sent: Wednesday, March 17, 2021 9:30 AM
> To: 'Ralph Lange' <ralph.lange at gmx.de>
> Cc: tech-talk at aps.anl.gov
> Subject: RE: Multiple IOCs on one host Issue
>  
> 	• I don't know anyone who runs multiple IOCs on Windows.
>  
> You know me J
>  
> Kidding aside, I do run multiple IOCs on Windows.  So far I have not needed to access them from another subnet.
>  
> Mark
>  
>  
> From: Ralph Lange <ralph.lange at gmx.de> 
> Sent: Wednesday, March 17, 2021 11:27 AM
> To: Mark Rivers <rivers at cars.uchicago.edu>
> Subject: Re: Multiple IOCs on one host Issue
>  
> I know.
>  
> Alas, I have no clue, and I don't know anyone who runs multiple IOCs on Windows.
> On my Windows laptop, I don't have Admin rights.
>  
> Cheers,
> ~Ralph
>  
>  
> On Wed, 17 Mar 2021 at 17:11, Mark Rivers <rivers at cars.uchicago.edu> wrote:
> Ø  That's why it is featured on the how-to page.
> 
>  
> I notice that that page does not have an entry for Windows.
>  
> Mark
>  
>  
>  
> From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Ralph Lange via Tech-talk
> Sent: Wednesday, March 17, 2021 11:05 AM
> To: EPICS Tech Talk <tech-talk at aps.anl.gov>
> Subject: Re: Multiple IOCs on one host Issue
>  
> On Wed, 17 Mar 2021 at 13:42, Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> wrote:
> > Sorry wanted to add, or can I just go back to using the IP addresses of the server/client instead of broadcast?
> 
> No, you cannot do that.  It will only find one of the IOCs on the server if you do that.  You either need to use the directed broadcast mechanism or the iptables mechanism.
>  
> Out of which the iptables rule is the least invasive, because it is a once-and-for-all change that needs to be added only on the multiple-IOC host, and does not require any other changes in IOCs, network components or clients.
> That's why it is featured on the how-to page.
>  
> Cheers,
> ~Ralph

Attachment: smime.p7s
Description: S/MIME cryptographic signature


References:
Multiple IOCs on one host Issue Manoussakis, Adamandios via Tech-talk
Re: Multiple IOCs on one host Issue Jeong Han Lee via Tech-talk
Re: Multiple IOCs on one host Issue Jeong Han Lee via Tech-talk
RE: Multiple IOCs on one host Issue Manoussakis, Adamandios via Tech-talk
Re: Multiple IOCs on one host Issue Mark Rivers via Tech-talk
Re: Multiple IOCs on one host Issue Ralph Lange via Tech-talk
RE: Multiple IOCs on one host Issue Mark Rivers via Tech-talk
RE: Multiple IOCs on one host Issue Manoussakis, Adamandios via Tech-talk
Re: Multiple IOCs on one host Issue Heinz Junkes via Tech-talk

Navigate by Date:
Prev: Re: Multiple IOCs on one host Issue Heinz Junkes via Tech-talk
Next: Re: Multiple IOCs on one host Issue J. Lewis Muir 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: Multiple IOCs on one host Issue Heinz Junkes via Tech-talk
Next: Re: Multiple IOCs on one host Issue J. Lewis Muir 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, 18 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·