6 Replies Latest reply on Nov 5, 2015 1:39 PM by Daniel Bousquin

    Getting server properties error

    Daniel Bousquin

      Hello:

      I'm trying to use a text file containing a list of servers for input to a script that
      would show me a property value of each server.

       

      Here is an excerpt of what I have:


      for servs in `cat /c/Temp/REQ600.txt`;
      do
      blcli_execute Server getFullyResolvedPropertyValue $servs IP_ADDRESS >$2.out
      blcli_storeenv nnnn
      echo " server $servs    Property  $nnnn \n"
      done


      I get back an odd error for each server:

       

      not found.cution failed. com.bladelogic.om.infra.mfw.util.NotFoundException: Device SERVER1
      Cannot store a failed command result
          Property   BFK2EH1

      not found.cution failed. com.bladelogic.om.infra.mfw.util.NotFoundException: Device SERVER2
      Cannot store a failed command result
          Property   DHDNGIR

      etc..


      Am I formatting the blcli statemnts correctly?

      The same seems to work using a smart group instead of an input file.

       

      Thanks

      -Dan