ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

nas - Pass Argument to Script from Auto Operator Profile


Article ID: 35011


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM) NIMSOFT PROBES


How can I pass argument(s) from nas Auto-Operator profile when choosing the Action Type, "script"?





Release: CNMSPP99000-7.6-Unified Infrastructure Mgmt-Server Pack-- On Prem


In "Script Parameter" field, type dollar sign ($) and wait for a moment for a popup with available arguments to show. You can then pick one from the list or just type in e.g

If you want to pass more than one argument, separate them with comma - e.g 

To capture the arguments in script, you will need to use SCRIPT_ARGUMENT variable - e.g:

args = split(SCRIPT_ARGUMENT)

and then use them as needed, eg.

To print them out:


To write to a file:

buff = args[1],args[2]
fname  = "test.txt"   
file.create (fname)
file.write (fname,buff)