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  <20122013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: does CSS (CAJ?) support CA over an ssh tunnel
From: Peter Milne <peter.milne@d-tacq.com>
To: Andrew Johnson <anj@aps.anl.gov>
Cc: tech-talk@aps.anl.gov
Date: Mon, 09 Apr 2012 22:59:09 +0100
Hi Andrew

On 04/09/2012 07:55 PM, Andrew Johnson wrote:
Hi Peter,

On 2012-04-09 Peter Milne wrote:
CA tunnelled successfully over ssh:

(IOC:5064 port forwarded to localhost:10013)

export EPICS_CA_ADDR_LIST=localhost:10013
export EPICS_CA_AUTO_ADDR_LIST=no
export EPICS_CA_NAME_SERVERS=localhost:10013

camonitor cpsc_011_UPTIME
cpsc_011_UPTIME 2012-04-09 19:02:06.116235 107056
cpsc_011_UPTIME 2012-04-09 19:02:07.116355 107057

But on running css from the same shell session with the same exported
variables, it's unable to see the PV

=>  Is it possible to view a tunneled PV from CSS?.

Does your CSS have JCA configured to use the Pure Java implementation of the
CA client code, or the JNI implementation that calls OS-specific?  You can
find that under Preferences =>  CSS Core =>  EPICS.

I suspect the pure Java implementation of JCA doesn't have the ability to make
TCP-only connections (added to Base in 3.14.12) which is required to tunnel CA
over ssh. It should be possible to fix that by switching to JNI as long as the
native libraries it uses are from Base-3.14.12 or later.  Unfortunately I also
suspect the CSS distributions have not updated those Base libraries recently,
so you might have some difficulties with this unless you build your own
package.

You're correct, pure Java, with properties supplied by Kay, didn't work.

Using base 3.4.12, switched to JNI .. seems to pick up EPICS_CA_ADDR_LIST etc - Nice, but still doesn't work.

Here's a clue ..

Caused by: java.lang.UnsatisfiedLinkError: /home/pgm/SANDBOX/CSS/CSS_EPICS_3.0.2/plugins/org.csstudio.platform.libs.epics_1.1.5.20110824/lib/linux/x86/libjca.so: /home/pgm/SANDBOX/CSS/CSS_EPICS_3.0.2/plugins/org.csstudio.platform.libs.epics_1.1.5.20110824/lib/linux/x86/libjca.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

Source archive was:
/home/pgm/SANDBOX/CSS/epics_css_3.0.2-linux.gtk.x86_64.zip


Happy to wait for the next release anyway .. thanks

/Peter




--
Peter Milne			Peter.Milne@d-tacq.com
D-TACQ Solutions Ltd		www.d-tacq.com

References:
does CSS (CAJ?) support CA over an ssh tunnel Peter Milne
Re: does CSS (CAJ?) support CA over an ssh tunnel Andrew Johnson

Navigate by Date:
Prev: Re: does CSS (CAJ?) support CA over an ssh tunnel Peter Milne
Next: RE: Cothread 2.6 release (now 2.7 release) michael.abbott
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: does CSS (CAJ?) support CA over an ssh tunnel Andrew Johnson
Next: Re: Status of the Sequencer Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
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 ·