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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another CapFile….

Status
Not open for further replies.

lever

Technical User
Aug 17, 2001
259
GB
Another CapFile.

Hi all,

I know there are some good threads regarding this. I have tried the 24hr & ½ hr capture script from the CD and turn it to my needs. I even took a look at the thread (448-488839) in which knob put together a script. But I think this is a little different and I’m really stuck on it. So could someone kindly shed some light on this one please. All help/idea’s would be appreciated.

I’m trying to capture info from a trace on a PBX (Definity) trunk (TAC 7)
So the script should open a CapFile and name it TAC 7.
Now it will scroll down as calls come in. But when it reaches the bottom page the PBX doesn’t send anything back. So maybe a pause of say 30 to 40 sec’s to get every thing off the page then ^[ov] (for F7 which is next page on emulation 4410). Repeat this until PBX sends…
“TRACE BUFFER FULL”

I think I’m right in saying that the file will be saved to the default capture directory path so I don’t need that bit.
So here’s what I have so far….I just know it’s going to make someone cringe.

proc main

string CapFileName = Trace TAC 7 ;set capture name.
set capture file CapFileName ;set the capture filename for Procomm.
capture On ;start the capture file.
? pause 30 sec’s ;no idea how to do this.
^[ov] ;next page.
Repeat/loop ;continue until the waitfor.
waitfor “TRACE BUFFER FULL”
capture off ;Close the capture file.

endproc
 
Hello,

I have a Monitor Script that Collects Data every 30 / 60 Minutes. If you'd like a Copy of it , send mean E-Mail. I might give uou some ideas.

Hank camphm@bellsouth.net
 
Here's something that may work for you:

proc main
set capture file "TRACE TAC 7.TXT"
capture ON

when target 0 "TRACE BUFFER FULL" call close_cap

while 1
pause 30
transmit "^[ov]"
endwhile
endproc

proc close_cap
capture OFF
endproc aspect@aspectscripting.com
 
Thanks Hank.
I'll try some of those in the future.

Also a big thanks to Knob, and I'll let you know how it works out. Looks like what i need.

lever.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top