10 Replies Latest reply on Nov 11, 2014 7:57 AM by sachin Manjunath

    bulk decomssioning server

      hi,

       

      I am trying to run a decomissioning of server by keeping the server list in a text file below is the script and error i get while running it.

       

      Script

       

      filename="/app/bladelogic/depot/sachintemp/serverslist.txt

      SERVERLIST='cat $filename'

      #echo "Server List is : $serverList"

      for SERVER in $SERVERLIST

      do

      Decommissioning ${SERVER}

      blcli_execute Server decommissionServer ${SERVER} 1>/dev/null

      RESULT=$?

      if[${RESULT} -eq 0]

      then

      echo "${SERVER} decom Sucess"

      else

      echo "${SERVER} decom failed"

      fi

      done

       

       

      Error i get while running:

       

      /app/bladelogic/NSH/tmp/xrxdallin003/scripts/job__908ec1dd-2503-4589-ae4c-6ca779140211/script_DBKey-SJobKeyImpl-4019371-1__b0dd3939-24b8-4500-bb32-370263e4945f.3578202.1_decom.nsh:15: unmatched "