Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -288,7 +288,7 @@ RUNCMD(){
|
||||
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
||||
if [ "${checkhost}" != "false" ]; then
|
||||
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} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10}
|
||||
fi
|
||||
done
|
||||
}
|
||||
@@ -306,7 +306,7 @@ case $action in
|
||||
check) CHECK ${2};;
|
||||
setupssh) SETUPSSH;;
|
||||
run) RUN ${2};;
|
||||
runcmd) RUNCMD "${2}";;
|
||||
runcmd) RUNCMD ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11};;
|
||||
update);;
|
||||
*) RUN ${action};;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user