From bfd5d9f0d3054aa408ec37b0119dc8a09edd54a6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Nov 2019 19:50:33 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5096ee07..b27a733c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1407,6 +1407,7 @@ KEEPALIVE-CONFIG() { } NODEUPDATE() { + start=`date +%s` if [ "${1}" = "report" ]; then unset idsCL idsBG idsST idsCL=('') @@ -1427,9 +1428,9 @@ NODEUPDATE() { spc1=${cw}-${#nip} until [ $c = ${spc1} ]; do spcb="${spcb} "; c=`expr $c + 1`; done echo -en "Updating MySQL-Manager${spca}($nip)${spcb}... ${idsCL[LightCyan]}NodeMGMT${idsCL[Default]} : " - #ssh root@${nip} "nodemgmt update q" + ssh root@${nip} "nodemgmt update q" echo -en "${idsCL[Green]}COMPLETE${idsCL[Default]} ... ${idsCL[LightCyan]}LinUPx${idsCL[Default]} : " - #ssh root@${nip} "runup runup" + ssh root@${nip} "runup runup" echo -e "${idsCL[Green]}COMPLETE${idsCL[Default]}" echo for NTYPE in "${NODE_TYPES[@]}"; do @@ -1447,9 +1448,9 @@ NODEUPDATE() { spc1=${cw}-${#nip} until [ $c = ${spc1} ]; do spcb="${spcb} "; c=`expr $c + 1`; done echo -en "Updating ${NM_NODETYPES[$NTYPE]}-Node${nid}${spca}($nip)${spcb}... ${idsCL[LightCyan]}NodeMGMT${idsCL[Default]} : " - #${NCMD} "nodemgmt update q" + ${NCMD} "nodemgmt update q" echo -en "${idsCL[Green]}COMPLETE${idsCL[Default]} ... ${idsCL[LightCyan]}LinUPx${idsCL[Default]} : " - #${NCMD} "runup runup" + ${NCMD} "runup runup" echo -e "${idsCL[Green]}COMPLETE${idsCL[Default]}" nid=`expr $nid + 1` done @@ -1458,7 +1459,11 @@ NODEUPDATE() { echo -e "${idsCL[Green]}All Nodes have been Updated.${idsCL[Default]}" - echo "" + echo + echo + end=`date +%s` + runtime=$((end-start)) + echo "runtime: ${runtime}" } VCENTER-SSL(){