#!/bin/sh # UPDCONFIG #--------------------------------------------------------------------- #! Local configuration file for UPDATE ## Update UNIX #--------------------------------------------------------------------- #; Copyright (C) 1995-2000 #; Associated Universities, Inc. Washington DC, USA. #; #; This program is free software; you can redistribute it and/or #; modify it under the terms of the GNU General Public License as #; published by the Free Software Foundation; either version 2 of #; the License, or (at your option) any later version. #; #; This program is distributed in the hope that it will be useful, #; but WITHOUT ANY WARRANTY; without even the implied warranty of #; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #; GNU General Public License for more details. #; #; You should have received a copy of the GNU General Public #; License along with this program; if not, write to the Free #; Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, #; MA 02139, USA. #; #; Correspondence concerning AIPS should be addressed as follows: #; Internet email: aipsmail@nrao.edu. #; Postal address: AIPS Project Office #; National Radio Astronomy Observatory #; 520 Edgemont Road #; Charlottesville, VA 22903-2475 USA #--------------------------------------------------------------------- # Set installation dependent options for the UPDATE procedure. The # following environmental variables must be defined. # # ClientName Name of the client machine # ServerName Name of server # MasterName Name of machine with master (and update) files # MasterRoot AIPS master directory, location of transaction files # ServerRoot AIPS root directory on server # MaxTries Number of times to attempt to copy LASTGOOD.DAT # from the server if it has not changed since the # last complete update job # MailList List of people to receive update report # ErrorList List of people to receive update error log # PrtCommand Command to print a file (including flags; empty for # no printing # UpdDoRemove YES if the midnight job is to actually remove files # (if you have different architectures sharing the # same code tree, and have a midnight job on one of # the architectures while another is the master, # you do NOT want to remove files as they are already # removed. # UpdDoCopy YES if midnight job is to copy files. See above. # UpdClient YES if this system is slaved off a local master that # in turn gets its midnight job from _the_ master. # UpdDoNFS YES if the master area is NFS accessible (true for # NRAO/CV, false for master jobs elsewhere, may be # true for client jobs elsewhere. # UpdMini YES if mini-midnight job is enabled; this filters # out all COMRPLs and COMLNKs not related to the tasks # listed in variable UpdMiniPrg. # UpdMiniPrg A list of the subset of tasks to consider for a mini # midnight job. If this is not set, it defaults to # "AIPNOT:MSGSRV AIPNOT:TEKSRV AIPNOT:TVSERV". # Setting this here will override that default value. # UpdSSH YES (uppercase, spelled out) to enable use of the # secure shell (ssh) for running the MNJ. You need # the mnj key in your ~/.ssh/ area for this to work. # # ClientName and ServerName should be in the form appropriate to # the file transfer protocol used in UPDCOPYSUB. # # AIPSUPD calls this script after invoking $HOME/LOGIN.SH and $CDTST. # # NRAO version for legacy midnight job sites. New sites should have # a separate UPDCONFIG in $SYSLOCAL to define at least the three # necessary values: ClientName, MailList, ErrorList. #--------------------------------------------------------------------- if [ "$SITE" = "" ] ; then echo "SITE is not defined. Did you forget the LOGIN.SH/CSH?" exit 1 fi MaxTries=5 PrtCommand="" umask 002 # Default settings, good for most # of the MNJ sites. ServerName=mnj.cv.nrao.edu MasterName=mnj.cv.nrao.edu MasterRoot=/home/aips1/master ServerRoot=/AIPS Account=aipsmgr MasterArch=SOL # These are for remote access UpdDoRemove=YES UpdDoCopy=YES UpdClient=NO UpdDoNFS=NO # Full or Mini (TVs only) job? UpdMini=NO # Secure MNJ: soon the only way. UpdSSH=YES if [ "$SITE" = "NRAOCV" -o "$SITE" = "VCOARN" ] ; then # NRAO/Charlottesville. Master # is on mnj, one client does # copy, others don't. What # follows is for the others: ServerName=gibbon MasterName=gibbon MasterRoot=/home/aips UpdClient=YES UpdDoRemove=NO UpdDoCopy=NO UpdDoNFS=YES case $ARCH in SOL) # Gibbon is responsible for # moving files to the production # AIPS_ROOT area. ClientName=gibbon ServerName=mnj MasterName=mnj MasterRoot=/home/aips1/master UpdClient=NO MailList="pmurphy,egreisen" UpdDoRemove=YES UpdDoCopy=YES # Subtle point: don't do NFS # because kochab has its own # AIPS_ROOT area (/kochab_1) # distinct from what is served # elsewhere (/export/stripe_0). UpdDoNFS=NO ;; SUL) ClientName=lemur MailList="pmurphy,egreisen" ErrorList="$MailList" ;; ALPHA) ClientName=hominid MailList="pmurphy,egreisen" ErrorList="$MailList" ;; LINUX) ClientName=valen MailList="pmurphy" ErrorList="$MailList" ;; AXLINUX) ClientName=mandrill MailList="pmurphy,egreisen" ErrorList="$MailList" ;; esac # NRAO/Tucson downtown elif [ "$SITE" = "NRAOTUC" ] ; then if [ "$ARCH" = "SUL" ] ; then ClientName=brador MailList="egreisen,jmangum,pmurphy" ErrorList=$MailList else # Assume SOL slave MNJ to locura UpdClient=YES ServerName=brador MasterName=brador MasterRoot=/home/analysis/aips ServerRoot=/home/analysis/aips MasterArch=SUL UpdDoRemove=NO UpdDoCopy=NO UpdDoNFS=YES ClientName=jenlan Account=egreisen MailList="egreisen,jmangum" ErrorList="${MailList},pmurphy@nrao.edu" UpdMini=YES UpdMiniPRG="AIPNOT:MSGSRV AIPNOT:TEKSRV AIPNOT:TVSERV AIPNOT:TPMON" fi # NRAO/AZ-Ops 12-meter elif [ "$SITE" = "NRAOKP" -o "$SITE" = "PKOARN" ] ; then MailList="egreisen,jmangum" ErrorList=$MailList case $ARCH in SUL) ClientName=modelo ;; LINUX) UpdClient=YES ServerName=modelo MasterName=modelo MasterRoot=/home/analysis/aips ServerRoot=/home/analysis/aips MasterArch=SUL UpdDoRemove=NO UpdDoCopy=NO UpdDoNFS=YES ClientName=pacifico Account=egreisen ;; # Assume SOL slave MNJ to locura *) UpdClient=YES ServerName=modelo MasterName=modelo MasterRoot=/home/analysis/aips ServerRoot=/home/analysis/aips MasterArch=SUL UpdDoRemove=NO UpdDoCopy=NO UpdDoNFS=YES ClientName=locura Account=egreisen ErrorList="${MailList},pmurphy@nrao.edu" UpdMini=YES UpdMiniPRG="AIPNOT:MSGSRV AIPNOT:TEKSRV AIPNOT:TVSERV AIPNOT:TPMON" ;; esac # NRAO/GB (overridden now?) elif [ "$SITE" = "NRAOGB" ] ; then ClientName=`uname -n` MailList="glangsto,tminter,pmurphy,ctilburg" ErrorList=$MailList # NRAO/AOC and VLA elif [ "$SITE" = "NRAOAOC" -o "$SITE" = "COAOARN" -o \ "$SITE" = "NRAOVLA" ] ; then ServerName=bonito MasterName=bonito MasterRoot=/AIPS ServerRoot=/AIPS UpdClient=YES # AOC /AIPS is different on # different machines. UpdDoNFS=NO # Chris, change when ready. UpdSSH=NO MailList="egreisen" case $ARCH in SOL) case $HOST in BONITO) ClientName=bonito ServerName=mnj MasterName=mnj MasterRoot=/home/aips1/master UpdClient=NO UpdSSH=YES MailList="${MailList},lkogan,julvesta" ;; MIRANDA) ClientName=miranda ServerName=bonito ErrorList=$MailList esac ;; SUL) case $HOST in COCHITI) ClientName=cochiti ServerName=bonito MailList="${MailList}" UpdDoCopy=NO UpdDoRemove=NO ;; esac ;; SGI) case $HOST in OHSUMI) ClientName=ohsumi MailList="${MailList},lkogan" ;; # Not sure which of these two # satellites will run the mini- # midnight job... EXPLORER) ClientName=explorer MailList="${MailList},pmurphy" UpdMini=YES ;; SPUTNIK) ClientName=sputnik MailList="${MailList},pmurphy" UpdMini=YES ;; esac ;; LINUX) case $HOST in ALCOR) ClientName=alcor MailList="pmurphy,lkogan,egreisen" ;; esac ;; esac PrtCommand= ErrorList=$MailList # Offsite MNJ's (legacy) elif [ "$SITE" = "JPL335" ] ; then case $HOST in SGRA) ClientName=sgra MailList="lister@cyga.jpl.nasa.gov,pmurphy@nrao.edu" MailList="${MailList},aips@sgra.jpl.nasa.gov" ErrorList="$MailList" ;; esac elif [ "$SITE" = "MPIRBN" -o "$SITE" = "NBRIPM" ] ; then case $HOST in HP177) ClientName=hp177 ;; *) ClientName=`uname -n` ServerName=hp177 MasterName=hp177 MasterRoot=/net/hp177/aips ServerRoot=/net/hp177/aips UpdDoRemove=NO UpdDoCopy=NO UpdClient=YES MasterArch=HP2 UpdDoNFS=YES UpdSSH=NO Account=egreisen ;; esac MailList="egreisen@nrao.edu,jsm@mpifr-bonn.mpg.de" MailList="${MailList},apatnaik@mpifr-bonn.mpg.de" MailList="${MailList},p276ali@mpifr-bonn.mpg.de" ErrorList="${MailList},pmurphy@nrao.edu" elif [ "$SITE" = "CALTECH" ] ; then # Inactive ClientName=ikaros.caltech.edu MailList="mcs@astro.caltech.edu" ErrorList="${MailList},pmurphy@nrao.edu" elif [ "$SITE" = "CALSGI" ] ; then # Inactive ClientName=cougar MailList="bill@ras.ucalgary.ca" ErrorList="${MailList},pmurphy@nrao.edu" elif [ "$SITE" = "USNO" -o "$SITE" = "ONSU" ] ; then # Inactive? MailList="rgaume@usno.navy.mil,pmurphy@nrao.edu" ErrorList=$MailList UpdSSH=NO case $ARCH in HP2) ClientName=geb UpdSSH=YES ;; IBM) MasterName=geb MasterArch=HP2 MasterRoot=/usr/aips ClientName=quasar UpdDoRemove=NO UpdDoCopy=NO UpdClient=YES ServerName=geb ServerRoot=/usr/aips MailList="rgaume@usno.navy.mil" ErrorList="${MailList},pmurphy@nrao.edu" ;; LINUX) MasterName=geb MasterArch=HP2 MasterRoot=/usr/aips ClientName=nuit UpdDoRemove=NO UpdDoCopy=NO UpdClient=YES ServerName=geb ServerRoot=/usr/aips MailList="rgaume@usno.navy.mil" ErrorList="${MailList},pmurphy@nrao.edu" ;; esac elif [ "$SITE" = "NRL-RIOS" ] ; then MailList="lazio@rsd.nrl.navy.mil,pmurphy@nrao.edu" ErrorList=$MailList UpdSSH=NO case $ARCH in SUL) ClientName=sne UpdSSH=YES ;; IBM) MasterName=sne MasterArch=SUL MasterRoot=/AIPS ClientName=atlas UpdDoRemove=NO UpdDoCopy=NO UpdDoNFS=YES UpdClient=YES ServerName=sne ServerRoot=/AIPS ;; esac elif [ "$SITE" = "CFA" ] ; then # This one is still active. MailList="shoshana@cfa.harvard.edu,lgreenhill@cfa.harvard.edu" ErrorList="${MailList},pmurphy@nrao.edu" UpdSSH=NO case $HOST in RGALP5*) ClientName=`uname -n` UpdSSH=YES ;; RGALP6*) ClientName=`uname -n` ServerName=rgalp5.harvard.edu MasterName=rgalp5.harvard.edu MasterRoot=/AIPS ServerRoot=/AIPS UpdClient=YES MasterArch=ALPHA Account=aips ;; *) echo "Host $HOST (`uname -n`) is not set up to run the MNJ" exit 1;; esac elif [ "$SITE" = "VSOP" ] ; then # Inactive? case $HOST in HIJIRI) ClientName=hijiri MailList="umemoto@hotaka.mtk.nao.ac.jp" ErrorList="${MailList},pmurphy@nrao.edu" ;; esac elif [ "$SITE" = "NCSU" ] ; then # *Almost* active... ClientName=chopin MailList="kdyer@marcie.physics.ncsu.edu,pmurphy@nrao.edu" ErrorList="${MailList}" elif [ "$SITE" = "NFRA" ] ; then # Inactive? ClientName=juw14 MailList="rbraun@nfra.nl,sjouwerm@jive.nfra.nl" ErrorList="${MailList},pmurphy@nrao.edu" elif [ "$SITE" = "ISAS" ] ; then # Inactive. MailList="aips@vsop.isas.ac.jp" ErrorList="${MailList},pmurphy@nrao.edu" case $HOST in SENJOU) ClientName=senjou ;; HALCA) ClientName=halca ;; esac elif [ "$SITE" = "UIOWA" ] ; then # Inactive. ClientName=denali MailList="rlm@astro.physics.uiowa.edu,pmurphy@nrao.edu" ErrorList="${MailList}" elif [ "$SITE" = "OBSBDX" ] ; then # never got this working; bad # connectivity => unworkable. ClientName=images MailList="nathalie@observ.u-bordeaux.fr,pmurphy@nrao.edu" ErrorList="${MailList}" elif [ "$SITE" = "GSFC" ] ; then # Moribund. MailList="dgg@leo.gsfc.nasa.gov,pmurphy@nrao.edu" ErrorList="${MailList}" UpdSSH=NO case $HOST in BOOTES) ClientName=bootes UpdSSH=YES ;; *) ClientName=`uname -n` ServerName=bootes MasterName=bootes MasterRoot=/data28/AIPS98 ServerRoot=/data28/AIPS98 UpdClient=YES MasterArch=HP2 Account=aipsmgr;; esac elif [ -f $SYSLOCAL/UPDCONFIG ] ; then # this is now used by MAKE.MNJ # and should NOT be a copy of this # file! echo "UPDCONFIG - using SYSLOCAL configuration" . $SYSLOCAL/UPDCONFIG else echo "UPDCONFIG - using GENERIC setup (no SYSLOCAL/UPDCONFIG found)" ClientName=`uname -n | awk -F. '{print $1}'` MailList="$LOGNAME,aipsmgr@nrao.edu" ErrorList=$MailList fi if [ `echo $ClientName | tr '[a-z]' '[A-Z]'` != $HOST ] ; then echo "UPDCONFIG - Config mismatch: client $ClientName, host $HOST" exit 1 fi export ClientName ServerName MasterName MasterRoot ServerRoot MailList export ErrorList UpdDoRemove UpdDoCopy UpdClient MaxTries PrtCommand export UpdDoNFS MasterArch Account UpdMini UpdMiniPRG UpdSSH