From eee2e4fa81258e47100f27000f68f605c6bb865a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 4 Jul 2023 19:42:08 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 0dff078..e57e215 100755 --- a/dsmon.sh +++ b/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