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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: question about ALIAS |
From: | Ralph Lange via Tech-talk <tech-talk at aps.anl.gov> |
To: | EPICS Tech Talk <tech-talk at aps.anl.gov> |
Date: | Sun, 23 Apr 2023 22:15:36 -0500 |
Hi Jiaosai Li,On Sun, 23 Apr 2023 at 12:54, 李姣赛 via Tech-talk <tech-talk at aps.anl.gov> wrote:I am trying to set up a gateway(V2_1_3 with base3.15.9), and I find the pvlist file is not working. I can't find the PVs' ALIAS name.
The gateway command is:
./gateway -sip 192.168.2.170 -cip "192.168.2.171:5064 192.168.2.172:5064 192.168.2.173:5064" -pvlt ./GATEWAY.pvlist -access ./GATEWAY.access -debug 1 -log gateway.log
My pvlist is "GATEWAY.pvlist". It contains:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
EVALUATION ORDER ALLOW,DENY
[0-9].* ALLOW
[a-z].* ALLOW
[A-Z].* ALLOW
^test ALIAS gateway:test
Beam:.* DENY
PS.* ALLOW PowerSupply 1
ps\([0-9]\) ALIAS PSCurrent\1.ai PowerSupply 1
# Convert old Gateway internal process variable names
gateway\.\(.*\) ALIAS gateway:\1
gateway\.\(.*\)Flag ALIAS gateway:\1Flag GatewayAdmin
gateway\.alive ALIAS gateway:connected
gateway\.postEventRate ALIAS gateway:clientPostRate__________________________________________________________________________________________
I can access the PV test:OprRun
[TimeLjs@node1 Heartbeat-3-0-958e11be8686]$ caget test:OprRun
test:OprRun 0but I can't access the PV test_gw:OprRun
[TimeLjs@node1 Heartbeat-3-0-958e11be8686]$ caget gateway:test:OprRun
Channel connect timed out: 'gateway:test:OprRun' not found.I think the command "^test ALIAS gateway:test" doesn't work.(I have installed Perl-5.36.0)
Does anyone have any idea what's going on? Any suggestion?
Your configuration does not contain an ALIAS command with a regular _expression_ that matches the name of your internal PV.Please check how the lines near the bottom of your configuration use the parentheses and replacement operators to create an alias conversion for multiple names.To add the prefix "gateway:" to anything that starts with "test", you could use something like:\(test.*\) ALIAS gateway:\1