DX Unified Infrastructure Management

  • 1.  ntevl - run a command on match

    Posted Sep 11, 2018 10:27 AM

    Dear All- This is my first post in this community, please excuse me if I am not following expected protocols. I have been trying to generate an alarm for event ID 1074 which triggers a command on occurrence. When someone shutdown a server, event ID 1074 appears in the Nimsoft console and triggers a command to put the server in maintenance or suppress all the alarms for that robot for 30 minutes. That being said I will now try to explain what is not working for me. I am successfully able to see the alarm getting generated real time, but it is not running the command as expected. I have placed this command on our secondary hub. I know I am doing something wrong. Has anyone been successful in doing this?



  • 2.  Re: ntevl - run a command on match

    Broadcom Employee
    Posted Sep 11, 2018 11:55 AM

    Hello, and welcome!  Your first post looks just fine to me - we're a pretty relaxed bunch!

     

    Can you expand a little bit more on the "command" bit of this, in terms of exactly what you have configured?  It sounds like you may be using a NAS Auto-Operator's "command" action to execute commands upon receipt of the alarm?

     

    If that's the case, sometimes it helps to create a .BAT or .sh file (depending on your OS) and place the commands inside, and place this file inside the NAS' probe folder.  This is sometimes more effective than asking NAS to run the commands directly.

     

    Otherwise if you can provide a little bit of detail (maybe some screenshots) about what you've got configured and how it's expected to work that would be very helpful!



  • 3.  Re: ntevl - run a command on match

    Broadcom Employee
    Posted Sep 11, 2018 01:41 PM

    Oops - I see now from the post title this is specific to the functionality within ntevl itself.

     

    questions:

    Which version of ntevl?

    What is the command? 

    What version of Windows is in use?

     

    The above suggestion about using a .bat file instead of the command directly is also still a good idea.



  • 4.  Re: ntevl - run a command on match

    Posted Sep 11, 2018 03:04 PM

    Version of NTEVL is - 3..13

    Version of windows is - Windows server 2008 R2

    Command is to run the below lua script to send the server in to maintenance

     

    ***********************************************************************

     

    nimbus.login("********", "*********")
    args = pds.create()
    pds.putInt(args, "for", 300)
    resp,rc = nimbus.request("/domain/hub/robot", "maint_until", args)

     

    *******************************************************************************



  • 5.  Re: ntevl - run a command on match

    Broadcom Employee
    Posted Sep 11, 2018 11:46 PM

    You might want to use the latest release.

    UIM robot and underlying probes (including ntevl) might also be terminated at the same time of 1074 event.

    In older version of ntevl probe, internal position marker file corrupt upon OS shutdown.

    Recent version has improved protecting mechanism for the position marker file