Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -309,9 +309,9 @@ GETCRONTABS(){
|
||||
# if ! root@${host_ip[$hostid]} command -v sshpass > /dev/null; then
|
||||
# ssh -tq root@${host_ip[$hostid]} apt install -yq sshpass > /dev/null 2>&1
|
||||
# fi
|
||||
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 root@${host_ip[$hostid]} crontab -l | sshpass -p'Dc$@54115' ssh -o 'StrictHostKeyChecking no' root@10.10.10.50 'cat > /opt/idssys/nodemgmt/crontabs/`hostname`.crontab'
|
||||
ssh -tq root@${host_ip[$hostid]} crontab -l | > /opt/idssys/nodemgmt/crontabs/`hostname`.crontab
|
||||
ssh -tq root@${host_ip[$hostid]} crontab -l > /opt/idssys/nodemgmt/crontabs/`hostname`.crontab
|
||||
else
|
||||
echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user