Indeed very basic.
I did two things wrong:
1) the parameter with %h was not specified with the option: Value required at runtime
2) the -e parameter after nexec needs a local host to run from, so needed to specify the bsa server there, now the jobs runs fine.
Hope it helps someone else who might be searching for this.
1 of 1 people found this helpful
Also instead of $@, you can use $1, which will be a string of all the targets in the job separated by space. If you have multiple parameters in your NSH Script Job, then the parameters can be read in the script as $1, $2, $3, etc.
lazar - i think $1 would only be the first server in the list ?
no, $1 will be the first argument, which would be %h, which is the list of all servers in the NSH Script Job (space separated). $2 - second parameter of the NSH Script Job, $3 - third, etc.