1
0

nf_calc 273 B

123456789101112131415
  1. #!/bin/sh
  2. #exit
  3. [ -z "$1" ] && exit 100
  4. fname=$1
  5. routerid=$2
  6. [ ! -e "${fname}" ] && exit 101
  7. #renice +19 -p $$ >/dev/null 2>&1
  8. /bin/nfdump -N -r ${fname} -q -o 'fmt:%tsr;%pr;%sa;%xda;%sp;%dp;%ipkt;%ibyt;%in;%out' | /opt/Eye/scripts/parse_flow.pl ${routerid} &
  9. exit 0