From 687f17b4faa3c5fbd396bd059849e7c85af41f47 Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Wed, 22 Feb 2017 19:51:44 +0000 Subject: [PATCH] modify monitor script for sectors 11b and 11c --- sbin/dm_remote_control.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/dm_remote_control.sh b/sbin/dm_remote_control.sh index 82e50ca7..d5cf03f5 100755 --- a/sbin/dm_remote_control.sh +++ b/sbin/dm_remote_control.sh @@ -5,14 +5,16 @@ ACTION=${ACTION:=status} echo $0: ACTION=$ACTION echo -STATION_LIST="CentralStorage:apsgpfs08:ds 1ID:pinotnoir:daq 6IDD:s6iddm:daq 6BM:s6bmdm:daq 7ID:gremlin:daq 8IDI:amethyst:daq 33ID:sis:daq 34IDE:hpcs34:daq" +# Format is DISPLAY_NAME:MACHINE:HOME_DIRECTORY:SERVICE_TYPE +STATION_LIST="CentralStorage:apsgpfs08:dm:ds 1ID:pinotnoir:dm:daq 6IDD:s6iddm:dm:daq 6BM:s6bmdm:dm:daq 7ID:gremlin:dm:daq 8IDI:amethyst:dm:daq 11IDB:s11idbdm:dm_idb:daq 11IDC:s11idcdm:dm_idc:daq 33ID:sis:dm:daq 34IDE:hpcs34:dm:daq" for s in $STATION_LIST ; do stationName=`echo $s | cut -f1 -d':'` nodeName=`echo $s | cut -f2 -d':'` - scriptName=`echo $s | cut -f3 -d':'` + homeDir=`echo $s | cut -f3 -d':'` + scriptName=`echo $s | cut -f4 -d':'` echo "**********************************" echo "Station: $stationName ($nodeName)" - ssh dmadmin@$nodeName "/home/dm/production/etc/init.d/dm-${scriptName}-services $ACTION" + ssh dmadmin@$nodeName "/home/${homeDir}/production/etc/init.d/dm-${scriptName}-services $ACTION" echo done -- GitLab