The "-m25" can be configured from the command line with the RPTOPT variable.

The right way to do this would be to add a records line to default stat.cfg like

stat-report default
  type @{TYPE:-summary-detail}
  output
    format ascii
    sort @{SORT:-+}
    records @{RECS:-0xFFFFFFFFFFFFFFFF}
    fields @{FIELDS:-+}
    options @{OPTIONS:-+header,+xheader,+totals}
    path |flow-rptfmt @{RPTOPT:--f ascii}

stat-definition default
  report default

Unfortunately this doesn't do the right thing when records is set to more then the number of records in the report (ie the default condition). Will be fixed in 0.69.

What OS are you using that generated the broken pipe output?

On May 12, 2005, at 3:50 PM, [EMAIL PROTECTED] wrote:


When using flow-report from the command line, is there a way to limit the number of lines returned?

I ended up modifying stat.cfg and added "-m 25" to the flow-rptfmt execution, which seemed to work but also responded with an error (see last line):


# flow-cat /opt/flows/2005/2005-05/2005-05-11/ | flow-report -vTYPE=ip-source-address -vSORT=+octets -vOPTIONS=+names -vFIELDS=-duration
# �['/usr/local/netflow/bin/flow-rptfmt', '-f', 'ascii', '-m', '25']
ip-source-address flows �octets � � packets
// [25 rows of data...]
flow-report: pclose(flow-rptfmt -f ascii -m 25): Broken pipe




_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools

Reply via email to