2 Replies Latest reply on Feb 11, 2014 7:18 AM by Stéphane Leibovitsch

    How to retrieve target server(s) in a NSH Script ?

      Hi all,

       

      I am running a NSH Script Job (inside a batch job)  of type "Execute the script separately against each server (using "runscript") in BSA 8.3

       

      I need to retrieve the target server name inside the script, so I set one parameter with the following value :

       

      SERVER_NAME=??TARGET.NAME??

       

      expecting to retrieve an instanciated property inside the script :

       

      SERVER_NAME=myserver

       

      As it happens, I get

       

      SERVER_NAME=??TARGET.NAME??

       

      Also the "%h" doesn't work either.

       

      I also tried to use the BLCLI "NSHScriptJob.getSJobDeviceList" but it returns an empty list.

       

      Thanks for your help.

       

      Stéphane Leibovitsch