13 Replies Latest reply on Sep 2, 2014 3:59 PM by Bill Robinson

    Exporting a property value for all servers

    Jim Campbell

      What is the easiest way to export a single property value for all servers to a file?  I have had a slow and inefficient script do this for a while now but it appears to be inexplicably hanging recently.  The script has looked like :

       

      Servers=`blcli Server listAllServers`

      blcli_connect

      for Server in Servers

      do

      blcli_execute Server getFullyResolvePropertyValue $Server Property_Here

      blcli_storeenv PropertyValue

      echo $Server,$PropertyValue >> File_Here

      done

      blcli_disconnect

      Is there a better way to do this?  It usually takes ~5 hours to run but i've ignored it until now because at least it has actually worked and could just be run late at night.

       

      BSA version is 8.3sp1 and I can't seem to find a good CLI command to do this.  I tried this from the docs but it doesn't seem to work

       

      Command execution failed. com.bladelogic.om.infra.cli.factory.CommandNotFoundException: Name space : Server has no commands by name : getBulkServerPropertyValuesAndLogResults