new gateways in SLS

This commit is contained in:
2021-08-09 17:26:07 +02:00
parent fc614e6faa
commit 065872337e
2 changed files with 74 additions and 10 deletions
+49 -10
View File
@@ -2,7 +2,7 @@
# It is included by all generated scripts
# The following variables should be set before:
# * EPICS the epics release (e.g "R3.14.12")
# EPICS the epics release (e.g "R3.14.12")
EPICS_MODULES = "/ioc/modules"
@@ -137,19 +137,58 @@ require "utilities", getenv("utilities_VERSION")
require "misc", getenv("misc_VERSION")
# caPutLog
putenv "EPICS_CA_PUT_LOG_ADDR=gfa-syslog:1515 gfa-logstash.psi.ch:1515"
putenv "EPICS_CA_PUT_LOG_ADDR=gfa-syslog:1515 gfa-logstash:1515"
require "caPutLog", getenv("caPutLog_VERSION")?getenv("caPutLog_VERSION"):"ifexists"
# Run Channel Access only on 1st network port
putenv "EPICS_CA_AUTO_ADDR_LIST=NO"
putenv getenv("EPICS_CA_ADDR_LIST") ? "" : bootInfo("EPICS_CA_ADDR_LIST=%B")
putenv bootInfo("EPICS_CAS_INTF_ADDR_LIST=%e")
putenv "EPICS_CAS_AUTO_BEACON_ADDR_LIST=NO"
sprintf STRINGBUFFER, getenv("EPICS_CAS_BEACON_ADDR_LIST") ? "" : "EPICS_CAS_BEACON_ADDR_LIST=%s", getenv("EPICS_CA_ADDR_LIST")
putenv STRINGBUFFER
# EPICS 3.13 needs this to not use synchronized timestamps
sprintf STRINGBUFFER, R3_13 ? "TSconfigure(0,10,10,18323,18322,250,1)" : ";"
execute STRINGBUFFER
# Run Channel Access only on 1st network port
putenv bootInfo("EPICS_CAS_INTF_ADDR_LIST=%e")
# Set up CA search lists for different networks
IP_ADDR=bootInfo("%e")
# Office (only officicial EPICS subnets, not SLS beamlines!)
ifEnvSet IP_ADDR, "~129.129.130.*", "EPICS_CA_ADDR_LIST", "129.129.131.255 129.129.137.255"
ifEnvSet IP_ADDR, "~129.129.131.*", "EPICS_CA_ADDR_LIST", "129.129.130.255 129.129.137.255"
ifEnvSet IP_ADDR, "~129.129.137.*", "EPICS_CA_ADDR_LIST", "129.129.130.255 129.129.131.255"
# SLS machine network
# No default access to beamlines because necessary list of GWs is too long!
# VxWorks 5 command line has max 128 chars, VxWorks 6 has 256 chars.
# Also EPICS 3.13 crashes when using long lists.
ifEnvSet IP_ADDR, "~172.20.*", "EPICS_CA_ADDR_LIST", "172.20.255.255"
ifEnvSet IP_ADDR, "~172.20.*", "EPICS_CA_AUTO_ADDR_LIST", "NO"
# SLS beamlines
ifEnvSet IP_ADDR, "~129.129.98.*", "EPICS_CA_ADDR_LIST", "sls-x01dc-cagw:5800"
ifEnvSet IP_ADDR, "~129.129.99.*", "EPICS_CA_ADDR_LIST", "sls-x02da-cagw:5802"
ifEnvSet IP_ADDR, "~129.129.102.*", "EPICS_CA_ADDR_LIST", "sls-x03da-cagw:5804"
ifEnvSet IP_ADDR, "~129.129.101.*", "EPICS_CA_ADDR_LIST", "sls-x03ma-cagw:5806"
ifEnvSet IP_ADDR, "~129.129.105.*", "EPICS_CA_ADDR_LIST", "sls-x04db-cagw:5808"
ifEnvSet IP_ADDR, "~129.129.104.*", "EPICS_CA_ADDR_LIST", "sls-x04sa-cagw:5810"
ifEnvSet IP_ADDR, "~129.129.107.*", "EPICS_CA_ADDR_LIST", "sls-x05da-cagw:5812"
ifEnvSet IP_ADDR, "~129.129.106.*", "EPICS_CA_ADDR_LIST", "sls-x05la-cagw:5814"
ifEnvSet IP_ADDR, "~129.129.110.*", "EPICS_CA_ADDR_LIST", "sls-x06da-cagw:5816"
ifEnvSet IP_ADDR, "~129.129.126.*", "EPICS_CA_ADDR_LIST", "sls-x06mx-cagw:5818"
ifEnvSet IP_ADDR, "~129.129.109.*", "EPICS_CA_ADDR_LIST", "sls-x06sa-cagw:5820"
ifEnvSet IP_ADDR, "~129.129.113.*", "EPICS_CA_ADDR_LIST", "sls-x07da-cagw:5822"
ifEnvSet IP_ADDR, "~129.129.112.*", "EPICS_CA_ADDR_LIST", "sls-x07ma-cagw:5824"
ifEnvSet IP_ADDR, "~129.129.117.*", "EPICS_CA_ADDR_LIST", "sls-x09la-cagw:5826"
ifEnvSet IP_ADDR, "~129.129.116.*", "EPICS_CA_ADDR_LIST", "sls-x09lb-cagw:5828 x09la-cagw:5062"
ifEnvSet IP_ADDR, "~129.129.119.*", "EPICS_CA_ADDR_LIST", "sls-x10da-cagw:5830"
ifEnvSet IP_ADDR, "~129.129.118.*", "EPICS_CA_ADDR_LIST", "sls-x10sa-cagw:5832"
ifEnvSet IP_ADDR, "~129.129.121.*", "EPICS_CA_ADDR_LIST", "sls-x11ma-cagw:5834"
ifEnvSet IP_ADDR, "~129.129.122.*", "EPICS_CA_ADDR_LIST", "sls-x12sa-cagw:5836"
# HIPA
ifEnvSet IP_ADDR, "~172.19.*", "EPICS_CA_ADDR_LIST", "172.19.10.255 172.19.30.255"
ifEnvSet IP_ADDR, "~172.19.*", "EPICS_CA_AUTO_ADDR_LIST", "NO"
# PROSCAN
ifEnvSet IP_ADDR, "~172.25.*", "EPICS_CA_ADDR_LIST", "172.25.60.255 172.25.11.255"
ifEnvSet IP_ADDR, "~172.25.*", "EPICS_CA_AUTO_ADDR_LIST", "NO"
# End of startup.script_common