Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuring data capture from Com 1

Status
Not open for further replies.

blingbling

IS-IT--Management
Jul 22, 2003
3
US
Hello all,

Sorry about the newbie question, but I am new to Procomm. I am trying to use it to capture data from a PBX using COM 1, and then to write this to a text file for later analysis. Doesn't sound too complicated, yet for some reason it does not work.

Here is what I did so far:

1. Set up and configured a data connection. I checked the bit rates, parity, etc., and can see the data as it is sent from the phone system on the screen.

2. Set up a new capture file.

This is where things got strange. Regardless of what settings I used, the capture file only captures data intermittently.

What is the optimal way to capture this data and write it to a text file? Do I need a script, given my goal?

Thanks in advance.
 
I don't know if this will help, but this is what I have found.
I capture my PBX data in much the same way. I found out in the beginning that because of all the data the PBX was putting out, I had to save the captured file on a daily basis. I then restart the capture in the morning and put that file number and date in Excel. I'm letting you know this because if you ever need pull this information out, and search for an item, this procedure will make it much easier to do. In addition to that, you can back up the old captured files for your records :)
 
If the data is repainted on the screen instead of scrolling off the top, then it will not make it into the scrollback buffer and therefore not show up in the capture file. This file may be able to help you out if this is the case with your system:


aspect@aspectscripting.com
 
Thanks for all of the help. I am still trying to get it to work, but it I think that the problems I am having now have to do with the buffer; I can't figure out what logic Procomm uses to buffer or write data. It definitely does not seem to always write to the capture file in real-time, but seems to use the buffer instead. I think that if I could get it to simply write to the capture file in real-time, then most of the issue would be solved.
 
How about something like this? I use this for capturing both comports to a text file and they run for each day.

capture off


strcat s_Connection $DATE
; format will be MM-DD-YYYY_Comx.txt

strreplace s_Connection "/" "-"
strcpy s_Buffer s_Connection
strcat capfile s_Buffer
; fetch modem connection s_Connection
; strfind s_Connection "Sportster"
; checking for modem type on COM1:
; if SUCCESS
strcat capfile "_Com1.txt"
; COM1: has sportster 14,400
; else
; strcat capfile "_Com2.txt"
; COM2: has USR 56k.
; endif

set capture OVERWRITE OFF
set capture recordmode FILTERED
set capture file capfile
set capture query OFF

capture ON
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top