#!/bin/bash
function PingCheck()
{
LogIt "$DOWNTO ${FUNCNAME[0]}"
for Dev in $ALLDevs;
do
ping -q -c 1 $Dev >/dev/null;
if [ $? -ne 0 ]; then
LogIt "Ping $Dev ...KO, problem"; critical_error "ping $Dev KO";exit 1
else
LogIt "Ping $Dev ...OK;"
fi;
done;\
LogIt "$UPFROM ${FUNCNAME[0]}"
}
function DataBaseQuerry
{
#echo "$1"|psql -qAt -U golem golem_database #Real
echo 100 #Offline
}
function RsyncDevices
{
for Dev in Dirigent $INFRASTRDevs; do
rsync --copy-links -e ssh $Dev.sh Tools.sh Commons.sh golem@$Dev:
done
}
function RsyncDeviceFromDirigent
{
echo "Syncing $ThisDev.sh ."
rsync golem@Dirigent:/GW/SW/ControlSW/Dirigent/$ThisDev.sh .
rsync golem@Dirigent:/GW/SW/ControlSW/Dirigent/Commons.sh .
rsync golem@Dirigent:/GW/SW/ControlSW/Dirigent/Tools.sh .
}
function mRelax
{
sleep 0.1
}
function Relax
{
sleep 1
}