#!/usr/local/bin/python

import trafstq

sqlexpr="select src,sum(bytes),dstport,proto from dump where src like '192.168.1.%' group by dstport,src,proto order by src,dstport"

print trafstq.show_in_html_table( sqlexpr,
 'IP address:ip,SUM of bytes:bytes,Service:port,PROTOCOL:proto' )
