AnsweredAssumed Answered

LUA script to execute command line

Question asked by azman1.1 on May 5, 2011
Latest reply on May 9, 2011 by amit_saxena

HI all,

I'm trying to send a command to a Unicenter NSM server (cawto.exe command - which I've installed on Nimsoft hub).

This is my script on NAS:

 

------------------------------------------------------


NSM_server = "10.10.64.77"   
c = alarm.get()

cawto_path = "D:\\Program Files \(x86\)\\CA\\SC\\CCS\\WVEM\\BIN\\"
cawto_string = cawto_path.."cawto -n "..NSM_server.." Nimsoft ".."c"

action.command (cawto_string)

------------------------------------------------------

 

I see that above action is not being executed, even though executing them manually from the command prompt is successful.

 

thank you in advance,

Azman

Outcomes