pmacct-discussion  

Re: [pmacct-discussion] invalid network mask?

Charlie Allom
Fri, 20 Nov 2009 05:36:39 -0800

On Thu, Nov 19, 2009 at 03:53:56PM +0000, Paolo Lucente wrote:
> Hi Charlie,
> 
> It appears you didn't put the table in the correct format first. Is
> it the case? If yes, to make that table pmacct-friendly you have to
> pre-process it as follows:
> 
> cat bgptable | sed 's/\([0-9a-f:][0-9a-f\.\/:]*\).* \([0-9][0-9]*\)[ 
> 0-9,{}]*$/\2,\1/' | uniq > networks.lst
> 
> At least it works fine with GNU sed. And do consider this was really
> a 5 minutes job, so double-check accuracy of the output.

gah! sorry should have looked at a previous table I'd made. how silly.

-- 
 020 7729 4797
 http://blog.playlouder.com/

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists