I am searching a way to execute a VBS script, when an alarm arrives in NMS....
i do not would like to rewrite it in LUA or other scripting language....
So do you know the best way to execute it?
I am no expert but would this work for you?
Code snippet in lua to run a "system command", which just runs a vbscript using cscript.exe on windows.
os.execute("cscript " .. fileName)
Can't we use action.command over here also ?
What's the difference between os.execute and action.command ? Also if both of them works, which one is preferable ?
I guess you are right. I am new to nas and lua possibilities. But the os.execute is a native lua function, while the action.command is one build into nas and nsa.
It is a wrapper to run a program and try to capture the output. I don't know if you can do this with the os.execute stuff.
It uses native os calls to run a program. I don't know how lua runs a program via os.execute.
I just saw it on this url.
your solution is working fine...
Retrieving data ...