Update dsmon.sh
This commit is contained in:
14
dsmon.sh
14
dsmon.sh
@@ -369,11 +369,11 @@ RUNCMD(){
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ ${nc_count} -eq ${ncount} ]; then
|
if [ ${nc_count} -eq ${ncount} ]; then
|
||||||
echo -e "${idsCL[White]}Complete, the command was ran on all nodes\n"
|
echo -e "${idsCL[LightGreen]}Complete, the command was ran on all nodes\n"
|
||||||
completed=true
|
completed=true
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
[ ${lcount} -ne ${nc_count} ] && echo -e "${idsCL[White]}${nc_count} of ${ncount} completed ...\n"
|
[ ${lcount} -ne ${nc_count} ] && echo -e "${idsCL[Yellow]}${nc_count} of ${ncount} completed ...\n"
|
||||||
lcount=${nc_count}
|
lcount=${nc_count}
|
||||||
|
|
||||||
sleep 2s
|
sleep 2s
|
||||||
@@ -462,13 +462,13 @@ GETCRONTABS(){
|
|||||||
|
|
||||||
for hostid in "${!host_ip[@]}"; do
|
for hostid in "${!host_ip[@]}"; do
|
||||||
# echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - ${host_ip[$hostid]}${idsCL[Default]}${idsST[Reset]}"
|
# echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - ${host_ip[$hostid]}${idsCL[Default]}${idsST[Reset]}"
|
||||||
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
# checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
||||||
if [ "${checkhost}" != "false" ]; then
|
# if [ "${checkhost}" != "false" ]; then
|
||||||
# echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}"
|
# echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}"
|
||||||
ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 -t root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} &
|
ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 -t root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} &
|
||||||
else
|
# else
|
||||||
echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}"
|
# echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}"
|
||||||
fi
|
# fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user