Advertisement
ajcorrea

rotate.sh

Jul 30th, 2014
242
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. flow-cat /netflow/data/$1 | flow-export -f 2 | grep -v \# | /netflow/tools/flow-asn.pl | flow-import -V5 -f2 -z9 > /netflow/tmp/$1
  3. rm -rf /netflow/data/$1
  4. mv /netflow/tmp/$1 /netflow/data/$1
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement