DX Infrastructure Manager

Expand all | Collapse all

lua and notes

  • 1.  lua and notes

    Posted 08-14-2009 05:58 PM

    I've got a lua script that creates a note and attaches it to an alarm  (using note.create and note.attach) I can't find a way to get it to tick the 'Automaticaly remove this note when no active alarms refer to it' box.

    Any ideas?


  • 2.  lua and notes

    Posted 08-14-2009 06:28 PM
    My bad, the syntax helper in the NAS script editor will show you that the third parameter will control this flag.

    note.create (sName, sDescription ])

    I will update the NAS tech. brief,


  • 3.  lua and notes

    Posted 08-14-2009 06:40 PM
    Thanks Carstein.
    I thought it had to be in there somewhere as it was showing in the command interface section of the probe documentation and not the Lua extensions section.


  • 4.  Re: lua and notes

    Posted 03-01-2019 11:08 AM

    Would you mind posting the script? I'm looking at doing something similar.


    Thanks in advance.

  • 5.  Re: lua and notes

    Posted 03-01-2019 12:01 PM

    Here is some helpful info:


    LUA extensions for notes 

    note.create ( Name, Description ) 
    Creates a note with the provided name and description fields set, and returns the note identification number (NoteId). 


    note.append ( Name | NoteId, Description [, Overwrite ] ) 
    Appends the descriptive text to an existing note defined by the name or the id. A new note will be created when no matches are found. Returns status. 


    note.delete ( Name | NoteId ) 
    Deletes a note with the provided name or id. Returns status. 


    note.find ( Name ) 
    Returns the NoteId of the named note, and the note description as the second return parameter, or nil when nothing matches the provided Name. 


    note.attach ( Name | NoteId, NimId *, NimId…+ ) 
    Attaches the note to one or more alarms specified as NimIds. 



  • 6.  Re: lua and notes

    Posted 03-01-2019 12:08 PM

    Thanks Stephen,


    Here's the thread I'm working on:




    Any use case examples would be great if you have any?