Page 1 of 1

emailing serial server logs

Posted: Thu Nov 12, 2009 6:59 am
by Bill_G
Concept: capture serial server output to a text file from midnight to midnight everyday. Then send that file by email to my addy.

Hardware: Stancil XP logging recorder already built into equipment rack with open usb ports for usb to eth adapter for dual nic operation so it can connect to isolated radio subnet where serial server resides.

Needed:
1 - Win tool to capture serial server output and write to a file that changes daily (similar in concept to Hyperterm text rx function).
2 - Win tool to file attach and mail captured log.
3 - Might possibly need a chron if native Win scheduler is insufficient.
4 - envisioning a batch file to run this - capture todays date (date pipe $string var), create a file named after date string, starting capture process aimed at server addy/port, run until midnight, close process, start email process, return to top capturing date, starting proc, etc.

Any advise is appreciated. thx

Re: emailing serial server logs

Posted: Thu Nov 12, 2009 5:29 pm
by Bill_G
Example of logs I want to capture -

10:07:41 11/12/09 CH 09 ANI ID
10:10:38 11/12/09 CH 09 ANI ID
10:20:45 11/12/09 CH 03 00000555 TIGARD
10:29:42 11/12/09 CH 10 PWRR MARYS PK RTT
10:31:56 11/12/09 CH 02 PWRR BALD RTT
10:44:29 11/12/09 CH 03 PWRR TIGARD RTT
11:13:37 11/12/09 CH 05 00000001 ANI ID
11:30:12 11/12/09 CH 03 00000555 TIGARD
11:34:16 11/12/09 CH 05 PWRR RAINIER RTT
11:38:53 11/12/09 CH 05 PWRR RAINIER RTT
11:41:54 11/12/09 CH 07 PWRR SALEM RTT
11:42:09 11/12/09 CH 10 PWRR MARYS PK RTT
11:44:13 11/12/09 CH 10 ANI ID
11:44:14 11/12/09 CH 08 ANI ID
11:45:30 11/12/09 CH 07 PWRR SALEM RTT
12:07:19 11/12/09 CH 03 0000000* TIGARD
12:24:21 11/12/09 CH 03 00000055 TIGARD
12:25:27 11/12/09 CH 09 ANI ID
12:26:02 11/12/09 CH 03 PWRR ANI ID RTT
12:40:19 11/12/09 CH 05 RAINIER
12:47:12 11/12/09 CH 09 ANI ID
12:47:14 11/12/09 CH 09 ANI ID
12:48:16 11/12/09 CH 03 PWRR TIGARD RTT