Skip to content
Snippets Groups Projects
Commit 9ce23cf1 authored by sveseli's avatar sveseli
Browse files

add remote control script

parent f4f10360
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
ACTION=$1
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"
for s in $STATION_LIST ; do
stationName=`echo $s | cut -f1 -d':'`
nodeName=`echo $s | cut -f2 -d':'`
scriptName=`echo $s | cut -f3 -d':'`
echo "**********************************"
echo "Station: $stationName ($nodeName)"
ssh dmadmin@$nodeName "/home/dm/production/etc/init.d/dm-${scriptName}-services $ACTION"
echo
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