1 Reply Latest reply on Dec 14, 2012 9:03 AM by Lazar NameToUpdate

    blcli scripting help

    Luciano Spagnuolo

      is it possible to create a NSH script that not only exports servers but also their property items and values?  I was asked by a client who is looking at exporting a complete server list and properties to selectively import them into another BBSA of the same platform and version? Are there any good examples that I might try?

        • 1. Re: blcli scripting help

          this is all you really need as far as blcli commands are concerned:


          blcli_execute Server listAllServers
          blcli_storeenv SERVER_LIST


          for serverName in $SERVER_LIST
               echo "Properties for server $serverName"
               blcli_execute Server printAllProperties $serverName
               blcli_storeenv SERVER_PROPERTIES
               echo "$SERVER_PROPERTIES"