5 Replies Latest reply on Sep 15, 2014 4:18 PM by Bill Robinson

    Adding Exit 1 to the NSH

    Jegavelan Sargunan



      I am trying to find the last reboot after patching so  i am running the following to see the number of days /uptime, how do I add the exit code as 1 if the number of days is more than 0 ? so that it is easy to find the server which missed the reboot


      nstats -H | awk 'BEGIN {IFS="\t"} {$1=$2=$3=$4=$5=$6=""; print }'