summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clusterman_onoff.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.clusterman_onoff.sh b/.clusterman_onoff.sh
index 75f40dc..21ac096 100644
--- a/.clusterman_onoff.sh
+++ b/.clusterman_onoff.sh
@@ -20,6 +20,6 @@ for value in "${nodes[@]}"; do
ina260=$(echo "$value"|cut -d "/" -f 2)
ip=$(clusterman node list -g $node)
[ $? -ne 0 ] && { echo "$ip"; exit 1; }
- [ "$1" == "off" ] && ssh testbed@${ip} touch ina260-zmq-publisher/publisher_${ina260}_break
- [ "$1" == "on" ] && ssh testbed@${ip} rm -f ina260-zmq-publisher/publisher_${ina260}_break
+ [ "$1" == "off" ] && ssh -i /home/admin/iot-testbed/ssh/rpbi_testbed testbed@${ip} touch ina260-zmq-publisher/publisher_${ina260}_break
+ [ "$1" == "on" ] && ssh -i /home/admin/iot-testbed/ssh/rpbi_testbed testbed@${ip} rm -f ina260-zmq-publisher/publisher_${ina260}_break
done