Updates are transferred between HEPDB and non-VM nodes using a generalisation of the above procedure, known as CDMOVE. Rather than maintain a permanent network connection with each of the remote nodes, the method is as follows:
Defining a list of groups
CDGROUPS="CDCHORUS,CDCPLEAR,CDNOMAD,CDCMS,CDNA48";export CDGROUPS
Example script to run CDMOVE
#!/bin/ksh # # Define the list of groups for whom updates are to be processed # export CDGROUPS="CDCPLEAR,CDCHORUS" # # For each group, define the pathname where the hepdb.names file resides # export CDCPLEAR=/hepdb/cdcplear export CDCHORUS=/hepdb/cdchorus # # Now start the server # /cern/pro/bin/cdmove
NAMES file for CDCPLEAR (hepdb.names)
:nick.config :list.au ge ca aa :log./hepdb/cdcplear/log :queue./hepdb/cdcplear/todo :todo./hepdb/cdcplear/todo :save./hepdb/cdcplear/save :bad./hepdb/cdcplear/bad :loglevel.3 :wakeup.60 :servers.vxcrna uxcp05 axcp01 :nick.au :file./hepdb/cdcplear/aux.dbs :desc.auxil database :servers.cernvm vxcrna uxcp05 :nick.ca :file./hepdb/cdcplear/cal.dbs :desc.calibration database :servers.cernvm vxcrna uxcp05 :nick.ge :file./hepdb/cdcplear/geo.dbs :desc.geometry database :servers.cernvm vxcrna uxcp05 :nick.aa :file./hepdb/cdcplear/aa.dbs :desc.test database :servers.cernvm :nick.cernvm :userid.cdcplear :node.cernvm :localq./hepdb/cdcplear/tovm :nick.vxcrna :userid.cdcplear :node.axcrnb :localq./hepdb/cdcplear/tovxcrna :queue.disk$mf:[cdcplear.todo] :nick.uxcp05 :userid.cdcplear :node.uxcp05 :localq./hepdb/cdcplear/touxcp05 :queue.disk$mf:[cdcplear.todo] :poll.yes :nick.axcp01 :userid.cdcplear :node.axcp01 :localq./hepdb/cdcplear/toaxcp01 :queue./hepdb/cdcplear/todo
NAMES file for CDCHORUS (hepdb.names)
:nick.config :list.c2 ch :log./hepdb/cdchorus/log :queue./hepdb/cdchorus/todo :todo./hepdb/cdchorus/todo :save./hepdb/cdchorus/save :bad./hepdb/cdchorus/bad :loglevel.3 :wakeup.60 :servers.vxcrna xantia :nick.c2 :file./hepdb/cdchorus/charm2.dbs :desc.Charm2 database converted to HEPDB format :servers.cernvm vxcrna xantia :nick.ch :file./hepdb/cdchorus/chorus.dbs :desc.CHORUS (geometry) database :servers.cernvm vxcrna xantia :nick.cernvm :userid.cdhepdb :node.cernvm :localq./hepdb/cdchorus/tovm :nick.vxcrna :userid.cdhepdb :node.vxcrna :localq./hepdb/cdchorus/tovxcrna :nick.xantia :userid.cdhepdb :node.xantia.caspur.it :localq./hepdb/cdchorus/toxantia :receive:yes :queue./cern/hepdb/cdchorus/todo
The actual file transfer is performed by [6] routines. Thus, the remote node must be set up correctly, i.e. ZSERV must be installed. The user name and password for the remote connection are defined in the .netrc file (or ftplogin. for VMS systems) in the home directory of the account under which the CDMOVE job is run.