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 0
but 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
\1 is replaced with whatever is inside the first pair of parentheses in a matched regex. A name "test:OprRun" matches and will be aliased to "gateway:test:OprRun"
Cheers,
~Ralph