Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -313,7 +313,7 @@ GETTSIP(){
|
|||||||
for hostid in "${!host_ip[@]}"; do
|
for hostid in "${!host_ip[@]}"; do
|
||||||
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
||||||
if [ "${checkhost}" != "false" ]; then
|
if [ "${checkhost}" != "false" ]; then
|
||||||
ssh -tq root@${host_ip[$hostid]} dsmon gettsip-node
|
ssh -tq root@${host_ip[$hostid]} "dsmon update && dsmon gettsip-node"
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user