From 5f4ae4f416fd5744d972ce55f8b229dda39a8659 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 13:49:13 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 06678519..9369983e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -145,6 +145,7 @@ STATUS() { } STATUS-CHECK(){ + start=`date +%s` if [ "${STATUS_CHECK_EMAIL}" != "" ]; then if [ ! -z ${LOCAL_SERVICES+x} ]; then NCMD='ssh root@10.5.10.51' else NCMD=''; fi @@ -227,6 +228,9 @@ STATUS-CHECK(){ nid=`expr $nid + 1` done fi + end=`date +%s` + runtime=$((end-start)) + echo "runtime: ${runtime}" } NEWCERT(){