Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmacct(1) [debian man page]

pmacct(1)							      pmacct								 pmacct(1)

NAME
pmacct - frontend to pmacctd. SYNOPSIS
pmacct query DESCRIPTION
pmacct is a frontend to pmacctd(8) when used in volatile memory mode. The type of query is specified using options. At least one of the options -C, -c, -e, -s, or -t is mandatory, but with -c either of -M or -N must be used for further specification. OPTIONS
For displaying data either of these options are used: -s Show full statistics. -c aggregate Specify primitives in a match aggregation, in order to present partial statistics. Either -M or -N must be used to specify matching data for this option. Here aggregate is a comma separated string constructed from the following identifiers, in arbitrary order: src_mac, dst_mac, vlan, src_host, dst_host, src_net, dst_net, src_mask, dst_mask, src_port, dst_port, tos, proto, src_as, dst_as, sum_mac, sum_host, sum_net, sum_as, sum_port, in_iface, out_iface, tag, tag2, flows, class, std_comm, ext_comm, as_path, peer_src_ip, peer_dst_ip, peer_src_as, peer_dst_as, src_as_path, src_std_comm, src_med, src_ext_comm, src_local_pref, is_symmetric. Only entries which match the aggregate are printed. Management of the server daemon is offered by three options: -e Clear all statistics. For a partial clear, see -r. -t Show memory table status. -C Show a table of all active classifiers. MODIFIERS
The primary options above can be influenced by some secondary options: -p file Unix socket location for client-server communication. Default is /tmp/collect.pipe. -a Display all table fields, even currently unused fields. -S Calculate a summed total of all counters, instead of returning a counter for each individual match; applies to -N. -n {bytes|packets|flows|all} Select which counters to print. This applies only to -N. -T {bytes|packets|flows} Output statistics ordered by decreasing value of the indicated field. This option applies to -M and to -s. -r Reset counters in the present selection after printing their values. The option applies only to -M and to -N. -l Perform a locking on the table. -M {match_data | file:filename} Print a formatted table for all entries matching the given data. An aggregation must be specified using -c, and the field order given there must be observed when stating the data here. The output can be influenced using -T. Here match_data is a number of substrings separated by semicolon, each substring being a comma separated list of acceptable values in a match aggregation. A wildcard '*' can be used to match any value in a specific field. As an alternative, a location filename of a file can be specified. This file provides the substrings mentioned above as separate lines. The prefix 'file:' is a verbatim marker. -N {match_data | file:filename} Print counters only, no text fields, header, or footer. This presupposes -c, and can be influenced by -n and -S. The arguments are identical to those for -M. EXAMPLES
The file /usr/share/doc/pmacct/EXAMPLES.gz contains suggestions prepared by the upstream author. For suggestions, critisism, and bugs, get in contact with Paolo Lucente <paolo@pmacct.net>. SEE ALSO
pmacctd(8) AUTHOR
This text was originally compiled by Mats Erik Andersson for the Debian project, but may be distributed for other uses under the same licensing as the software itself. 0.12.1 March 2011 pmacct(1)

Check Out this Related Man Page

LNSTAT(8)						      System Manager's Manual							 LNSTAT(8)

NAME
lnstat - unified linux network statistics SYNOPSIS
lnstat [options] DESCRIPTION
This manual page documents briefly the lnstat command. lnstat is a generalized and more feature-complete replacement for the old rtstat program. In addition to routing cache statistics, it sup- ports any kind of statistics the linux kernel exports via a file in /proc/net/stat/. OPTIONS
lnstat supports the following options. -h, --help Show summary of options. -V, --version Show version of program. -c, --count <count> Print <count> number of intervals. -d, --dump Dump list of available files/keys. -f, --file <file> Statistics file to use. -i, --interval <intv> Set interval to 'intv' seconds. -k, --keys k,k,k,... Display only keys specified. -s, --subject [0-2] Specify display of subject/header. '0' means no header at all, '1' prints a header only at start of the program and '2' prints a header every 20 lines. -w, --width n,n,n,... Width for each field. USAGE EXAMPLES
# lnstat -d Get a list of supported statistics files. # lnstat -k arp_cache:entries,rt_cache:in_hit,arp_cache:destroys Select the specified files and keys. # lnstat -i 10 Use an interval of 10 seconds. # lnstat -f ip_conntrack Use only the specified file for statistics. # lnstat -s 0 Do not print a header at all. # lnstat -s 20 Print a header at start and every 20 lines. # lnstat -c -1 -i 1 -f rt_cache -k entries,in_hit,in_slow_tot Display statistics for keys entries, in_hit and in_slow_tot of field rt_cache every second. SEE ALSO
ip(8), and /usr/share/doc/iproute-doc/README.lnstat (package iproute-doc on Debian) AUTHOR
lnstat was written by Harald Welte <laforge@gnumonks.org>. This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others). LNSTAT(8)
Man Page