Daniel Blanco

LUA Script: Create array/list of Alert ID's then close them all

Discussion created by Daniel Blanco Champion on Dec 3, 2014
Latest reply on Dec 4, 2014 by 1_keithk

Hello, I hit an issue with the Nimsoft/UIM connector and SOI and now I have 350+ stale Nimsoft Alerts on my UIM Console since the connector could not close the respective alert on the UIM side. 

Can someone tell me real quick, I have a list of alarm ID: --  FFF2343-234,FFwere-12323, etc....

What does a list or an arry in LUA look like and then how can I use the  action.close(stale_list(i)) method to close all these?

 

I tried: 

close_list = {"FS98101002-48144","FS98101002-43104","ZF53700518-44387"}
for i = 0, 2 do
   --print (close_list[i])
   action.close(close_list[i])
end

 

But getting:

 

----------- Executing script at 12/2/2014 6:20:00 PM ----------

Error in line 9: bad argument #1 to 'close' (string expected, got nil)

Outcomes