AGG Software Forums
November 10, 2024, 06:59:46 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: How do I display only certain output in Advanced PBX Data Logger  (Read 57346 times)
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« on: June 15, 2010, 05:07:11 AM »

Hello,

I am trying out Advanced PBX Data Logger to capture messages from our NEC PABX. I want to:
1. Log all messages to a log file (which I can sucessfully do);
2. Output only some messages to the screen and play a sound (for critical messages).
   
I want to display only messages that display the below charicters after "SYSTEM MESSAGE" on the first line:
"0-"
"1-"
"2-"
"3-"
"4-"
"5-"
"6-"
"13"
"16"

Below are 2 sample messages:
SYSTEM MESSAGE 33-R      IP PKG WARNING
   NET.SERVICE GTS25                              JUN 15 11:30
LP06-0-ACT
  1:2400 0204 0103 000A   2:0519 0244 FEA8 DE02   3:0000 0000 0000 0000
  4:0000 0000 0000 0000   5:0000 0000 0000 0000   6:0000 0000 0000 0000
  7:0000 0000 0000 0000   8:0000 0000 0000 0000   9:0000 0000 0000 0000


SYSTEM MESSAGE 6-H       BAD CALL NOTIFICATION
   NET.SERVICE GTS01                              JUN 15 11:30
LP00-0-ACT
  1:1560 9900 A200 1800   2:00DF 0239 0239 00DF   3:0000 0000 0000 0000
  4:0000 0000 0000 0000   5:0000 0000 0000 0000   6:0000 0000 0000 0000
  7:0000 0000 0000 0000   8:0000 0000 0000 0000   9:0000 0000 0000 0000

Is this possible to acheive with the application??

Thanks in advanced!!
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: June 15, 2010, 08:26:39 AM »

Could you attach a log file with these messages and a backup of your settings? You can create the backup from the File menu. In this case I can suggest precise settings.
Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #2 on: June 15, 2010, 08:33:35 AM »

Hi,

Thanks for your reply!! Smiley

I have attached the output log. You will see many messages that start with "SYSTEM MESSAGE.....".

After the words "SYSTEM MESSAGE" you will see a 'code', for example, this log is full of codes "33-R".

I want to only display the messages that start with:
"0-"
"1-"
"2-"
"3-"
"4-"
"5-"
"6-"
"13"
"16"

I hope this is enough information for you.

Thanks.

* tosend.txt (106.82 KB - downloaded 1 times.)
Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #3 on: June 15, 2010, 08:35:12 AM »

Sorry.. I have tried both apps "Advanced PBX Data Logger" and "Advanced Serial Data Logger".

I dont have any working configs.. Is it easier if I just scrap everything and you send me a config file???
Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #4 on: June 16, 2010, 08:28:17 AM »

Hi Arthur,

have you had any luck determining whether or not either of these applications are suitable for us to use?

Sorry to come across pushy, this (as always) is an urgent project for us.

Thanks again!!
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #5 on: June 16, 2010, 09:47:20 AM »

Hello, dionsalv!

Advanced Serial Data Logger is better in your case. I've attached screenshots with settings and parser settings in the "avaya-sysmessages-parser-preset.ini" file. You may load this file within the ASCII Data Parser configuration window. If the "Events notification" plugin isn't installed, then please download and install it here: http://www.aggsoft.com/serial-data-logger/plugins/. Please, note, that with this settings you can't export your data to a database or Excel.


* s1.JPG (47.79 KB, 467x456 - viewed 6 times.)

* s2.JPG (44.82 KB, 436x415 - viewed 5 times.)

* s3.JPG (38.8 KB, 750x415 - viewed 6 times.)

* s4.JPG (26.79 KB, 502x415 - viewed 6 times.)

* s5.JPG (40.79 KB, 467x456 - viewed 5 times.)

* s6.JPG (32.03 KB, 467x456 - viewed 5 times.)

* s7.JPG (38.91 KB, 551x420 - viewed 6 times.)
* avaya-sysmessages-parser-preset.ini (0.88 KB - downloaded 2 times.)
« Last Edit: June 16, 2010, 09:49:47 AM by Arthur Grasin » Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #6 on: June 16, 2010, 10:24:05 AM »

Hi Arthur,

THANK YOU!!

So, I've followed your instructions, and so far, looks like I have some success.

2 problems though is that when a valid alert come through, it is not displayed until a following alert comes though AND is it possible to make the alert come through looking like the original format? E.g. currently the alert is shown on one line, can it be broken up into multiple lines?

Thanks again..
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #7 on: June 16, 2010, 10:43:21 AM »

1. One line. I'm sorry, but the program can display data in this mode only.
2. Delay. Please, load the updated preset (attached).

* avaya-sysmessages-parser-preset.ini (0.9 KB - downloaded 1 times.)
Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #8 on: June 17, 2010, 05:42:28 AM »

Hello again Arthur,

So once again, a BIG thanks for helping out here. I have been tinkering with this and have been able to produce an alerts system that will fit our needs.

There is only one more thing though.. From the original post where I wanted to only display lines that had certain characters, this has changed (which I didn't notice in the old script I'm trying to duplicate).

The only lines that need to be displayed are:
"0-"
"1-"
"2-"
"4-"
"16"

"3-A"
"3-B"
"3-C"
"3-D"
"3-E"
"3-I"
"3-J"

"5-K"

"6-A"
"6-B"
"6-C"
"6-D"
"6-E"
"6-F"
"6-G"
"6-H"
"6-O"

"13-A"
"13-B"
"13-C"
"13-D"
"13-E"
"13-F"
"13-G"
"13-K"

Will this be too much to ask for out of the application? And if not what would the Expression be for such a complex filter?? Or would there need to be multiple filters etc?

Thanks in advance (again)!!
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #9 on: October 09, 2012, 10:00:00 AM »

This is the complex filter rule, but I hope you'll understand it and will update it on demand. This is one long line:

Code:
SYSTEM MESSAGE ((0|1|2|4|16)\-|3\-(A|B|C|D|E|I|J)|5\-K|6\-(A|B|C|D|E|F|G|H|O)|13\-(A|B|C|D|E|F|G|K))
Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #10 on: June 17, 2010, 09:01:24 AM »

I have placed this in the filter. Now to sit back and watch the magic Smiley

Once again, thanks for the prompt service!! 10/10
Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #11 on: June 18, 2010, 06:48:54 AM »

Hi Arthur,

This has turned out to be quite a handy tool for us. I've worked out now how to edit the filters and have now added extra codes for new alarms to be displayed!!

Now that we have a sound playing everytime a line appears on the screen, is it also possible to play a different sound whenever a byte is received and NOT displayed or when a line is added to the log file??

Cheers Smiley
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #12 on: June 18, 2010, 08:43:28 AM »

I'm sorry, but the program can play a sound for the displayed data only.
Logged
dionsalv
Jr. Member
**

Karma: +0/-0
Posts: 9


View Profile
« Reply #13 on: June 18, 2010, 08:46:16 AM »

How about different sounds for different messages?

E.g. one sound for a message with a "6-" in it, and a different sound for any other message
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #14 on: June 18, 2010, 10:00:23 AM »

1. Open the configuration window of the Event Notification plugin;
2. Add a new handler for the NEW-DATA-PACKET event;
3. Specify a corresponding filter rule for this handler:

Place: FULL_DATA_PACKET
Situation: Not contains
Type: Reg. expr.
Expressions:
Code:
SYSTEM MESSAGE 6\-
Action: Ignore

4. Specify a different sound
5. Repeat steps #3, #4 for the previous event handler, that you used before. Of course, you should change the filter rule to:

Code:
SYSTEM MESSAGE ((0|1|2|4|16)\-|3\-(A|B|C|D|E|I|J)|5\-K|13\-(A|B|C|D|E|F|G|K))
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines