It is same as like Shell scritping.
Define the ??TARGET.NAME?? as below in your NSh script:
When you run your nsh script as test.nsh ??TARGET.NAME??, value of ??TARGET.NAME?? will pass into Hostname variable in your script.
I am aware that this is possible. But I want to use some parameter that I can specify and its not included in TARGET.* - in my case the username.
Sorry maybe I havent express myself clearly enough
Oh ok, basically you want to pass parameter that are not part of server (TARGET).
How are you creating Extended object? is it Global one ? or inside the component template?
If it is inside / local to component template, then create local property to component template. Create component / discover the component and pass the local property value.
Thanks, it worked.
I used local extended object in component template defined as
scriptutil -h ??TARGET.NAME?? -s /app/depot/extended_objects/extended_object.nsh -x ??parameter??