Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -272,7 +272,7 @@ RUNCMD(){
|
|||||||
|
|
||||||
for hostid in "${!host_ip[@]}"; do
|
for hostid in "${!host_ip[@]}"; do
|
||||||
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Running command: ${1}${idsCL[Default]}${idsST[Reset]}"
|
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Running command: ${1}${idsCL[Default]}${idsST[Reset]}"
|
||||||
ssh root@${host_ip[$hostid]} ${1}
|
ssh root@${host_ip[$hostid]} "${1}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,7 +280,7 @@ case $action in
|
|||||||
check) CHECK ${2};;
|
check) CHECK ${2};;
|
||||||
setupssh) SETUPSSH;;
|
setupssh) SETUPSSH;;
|
||||||
run) RUN ${2};;
|
run) RUN ${2};;
|
||||||
runcmd) RUNCMD ${2};;
|
runcmd) RUNCMD "${2}";;
|
||||||
update);;
|
update);;
|
||||||
*) RUN ${action};;
|
*) RUN ${action};;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user