5 Replies Latest reply: Mar 27, 2013 5:28 AM by Clément BARRET RSS

Referencing NSHScriptJob info within NSH script

Eric NameToUpdate

I have a standard template NSH script which I would like to run from multiple NSHScriptJobs. Each NSHScriptJob would reference a smart-group for a different OS, and the OS would be part of the job name as well as the smart-group name. I would like some variables in the script to change based on the name of the job executing it, or the smart-group that the job is acting upon.

 

Does anyone know how to reference the name of the calling job or the target smart-group for that job from within an NSH script? I've seen examples of how to do it if you know the name of the job in advance and can hard-code the job name in the script, but not sure how to do it when the job name will vary.

 

 

Thanks