DX Unified Infrastructure Management

  • 1.  Messages in queue

    Posted Apr 05, 2019 09:04 AM

    We are reposting all the alerts to message bus with different subject through nas AO.We have created a attach queue to get those posted messages and have a  java based custom probe to subscribe the attach queue to process the messages. Issue is 20-30% of the alerts are missing in custom probe log file. Nas log shows the alerts are posted successfully. We are not able to track if the messages are picked by queue or not. Is there any way to check if our messages went into queue. we are not sure if queue is not processing those messages or custom probe is skipping them.



  • 2.  Re: Messages in queue

    Posted Apr 05, 2019 09:22 AM

    Create another queue to pickup those messages without any probe attaching to the queue.

    Then use DrNimBUS to view the messages in the queue.

     

    At the primary hub with the IM console running it can be started either via the shortcut in the program group or C:\Program Files (x86)\Nimsoft\bin\DrNimBUS.exe.
    click the 3rd icon from the left View Message in Queue

    click the expand icon in the right corner

    select the queue

    click the + to display the contents of the next message in the queue

    do not click the green arrow since it will just pull all the messages from the queue



  • 3.  Re: Messages in queue

    Posted Apr 05, 2019 10:39 AM

    Thanks David,Tried it. Is there any way to export the captured data in a file? or any lua script to write the queue messages into a file?



  • 4.  Re: Messages in queue

    Posted Apr 05, 2019 10:49 AM

    No copy or export for DrNimBUS. 

    Queue messages are a file in disk which do contain some text characters.

    default location is C:\Program Files (x86)\Nimsoft\hub\q\<name of queue>



  • 5.  Re: Messages in queue

    Broadcom Employee
    Posted Apr 05, 2019 11:11 AM

    You can use the sdsfile utility found in the hub directory to read an sds file:

    sdsfile -v <sds filename>



  • 6.  Re: Messages in queue

    Posted Apr 08, 2019 05:54 AM

    NAS version is 9.x

    I am getting below error when i am trying to execute sdsfile.exe from command line


    D:\Program Files (x86)\Nimsoft\hub>sdsfile -v 658.sds
    Apr 8 04:50:04:704 sdsfile: dumpsdsfile: open 658.sds failed 2



  • 7.  Re: Messages in queue

    Broadcom Employee
    Posted Apr 08, 2019 10:58 AM

    The "failed 2" error code means that the specified file does not exist in the "D:\Program Files (x86)\Nimsoft\hub" directory.  Did you try using the relative path to the queue file?  For example:

     

    sdsfile -v q\<queue name>\658.sds



  • 8.  Re: Messages in queue

    Posted Apr 05, 2019 10:52 AM

    Why not put logging into the AO that copies the messages to the new subject/queue?

     

    The queues are PDS files - there's a utility in the nimsoft\bin directory to convert the file to text (use the -v option)

     

    Make sure you are on the latest nas version (either the 8.5XHF or 9.XHF) . Some of the recent versions had issues with the way they selected records to operate on. One such defect only allowed one AO per second so if you had two to process in a second, one got missed.

     

    Having the details/code of the AO would also be helpful - sometimes the configurations can lead to correct but unexpected behavior.