Community discussions

 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1889
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Summerise script hourly/daily result

Mon Jul 10, 2017 6:37 pm

I have a script that is scheduled to run every 15mins on my CPE's but the problem ones give 96 emails per day like this one below ( note - the email subject line has all the data i need )
"AP Identity : CPE Identity : 16:21:54: jul/10/2017: XXX ping avg: 134-ms Sent:200 Received:200 SNR: 37 Signal: -81 Noise: -118"

Is there any way I could save my script results to a file and then run a script to analyze the file and sent just one daily email with the results,
any help is most welcome
N21roadie,
Network 100% MT for Now?
 
Shadeofspirit
Member Candidate
Member Candidate
Posts: 204
Joined: Fri May 27, 2016 12:15 am
Location: Minsk
Contact:

Re: Summerise script hourly/daily result

Mon Jul 10, 2017 6:57 pm

I have a script that is scheduled to run every 15mins on my CPE's but the problem ones give 96 emails per day like this one below ( note - the email subject line has all the data i need )
"AP Identity : CPE Identity : 16:21:54: jul/10/2017: XXX ping avg: 134-ms Sent:200 Received:200 SNR: 37 Signal: -81 Noise: -118"

Is there any way I could save my script results to a file and then run a script to analyze the file and sent just one daily email with the results,
any help is most welcome
write results to the separate log file and once per day send this file by email. after sending you can delete file
there was a topic on the forum about separate log file. the only problem was - file deletes both in two situations - email was send and not send (for example if mail server was not reachable)
MTCNA, MTCWE

Who is online

Users browsing this forum: No registered users and 11 guests