8 Replies Latest reply on Aug 14, 2014 2:37 AM by Monoj Padhy

    Assigning servers to a static group via BLCLI

    Roy Ong

      Ran this script via NSH below.

       

      serverGroup="/Central Logging"

      serverFile="/D/temp/central.txt"

      blcli -v defaultProfile -r BLAdmins ServerGroup groupNameToId "${serverGroup}"

      blcli_storeenv groupId

      for server in `cat ${serverFile}`

      do

      blcli -v defaultProfile -r BLAdmins StaticServerGroup addServerToServerGroupByName ${groupId} ${server}

       

       

      But im getting error below:

      2008580No result has been created yet

      assigntogroup.nsh:7: parse error near `${server}'

       

      Not sure why or what is the error?

      Any help is appreciated! Thanks!

      Roy