Skip to content
Snippets Groups Projects
Commit 687f17b4 authored by sveseli's avatar sveseli
Browse files

modify monitor script for sectors 11b and 11c

parent 84a35013
No related branches found
No related tags found
No related merge requests found
...@@ -5,14 +5,16 @@ ACTION=${ACTION:=status} ...@@ -5,14 +5,16 @@ ACTION=${ACTION:=status}
echo $0: ACTION=$ACTION echo $0: ACTION=$ACTION
echo 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 for s in $STATION_LIST ; do
stationName=`echo $s | cut -f1 -d':'` stationName=`echo $s | cut -f1 -d':'`
nodeName=`echo $s | cut -f2 -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 "**********************************"
echo "Station: $stationName ($nodeName)" 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 echo
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment