diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8c03ee62..4929983d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -976,10 +976,11 @@ GUI(){ keepalive-config) KEEPALIVE-CONFIG;; vc-ssl) if [ "${2,,}" == "log" ] || [ "${3,,}" == "log" ]; then - echo "$(date) - vCenter Update Initiated" >> ${NM_LOGFOLDER}/vc-ssl.log - ${NM_SCRIPT} vc-ssl ${2} report >> ${NM_LOGFOLDER}/vc-ssl.log - echo "$(date) - vCenter Update Completed -" >> ${NM_LOGFOLDER}/vc-ssl.log + exec 3>&1 >>${NM_LOGFOLDER}/vc-ssl.log 2>&1 + echo "$(date) #### vCenter Update Initiated ####" + ${NM_SCRIPT} vc-ssl ${2} report + echo "$(date) #### vCenter Update Completed #### +" else VCENTER-SSL ${2,,} fi