Sunday, June 24, 2012

bizlog.sh

BizManager from GXS is an okay tool for EDI.

But it lacks any but the most rudimentary reporting on how much traffic one is sending.

What I need is a breakdown by date/hour of what kind of traffic I'm sending. 

I asked the vendor.  Reply: Have-not-got.  We'll-get-back-to-you. 

Annoying.

Bash to rescue - here.

Run that sucker for a few days, then do this on the output ...

cat *traff*txt | grep as2o | sort -k3 -k4 | uniq | nawk '!x[$3 $4]++'
cat *traff*txt | grep as2i | sort -k3 -k4 | uniq | nawk '!x[$3 $4]++'
cat *traff*txt | grep ftps | sort -k3 -k4 | uniq | nawk '!x[$3 $4]++'
cat *traff*txt | grep ftpu | sort -k3 -k4 | uniq | nawk '!x[$3 $4]++'
cat *traff*txt | grep ftpd | sort -k3 -k4 | uniq | nawk '!x[$3 $4]++'


And presto: data you can hand to your project manager and say 'this is how much krep the EDI tool handles.'


blog comments powered by Disqus