Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nstat(8) [debian man page]

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

NAME
nstat, rtacct - network statistics tools. SYNOPSIS
Usage: nstat [ -h?vVzrnasd:t: ] [ PATTERN [ PATTERN ] ] Usage: rtacct [ -h?vVzrnasd:t: ] [ ListOfRealms ] DESCRIPTION
nstat and rtacct are simple tools to monitor kernel snmp counters and network interface statistics. OPTIONS
-h, --help Print help -V, --version Print version -z, --zero Dump zero counters too. By default they are not shown. -r, --reset Reset history. -n, --nooutput Do not display anything, only update history. -a, --ignore Dump absolute values of counters. The default is to calculate increments since the previous use. -s, --noupdate Do not update history, so that the next time you will see counters including values accumulated to the moment of this measurement too. -j, --json Display results in JSON format. -d, --interval <INTERVAL> Run in daemon mode collecting statistics. <INTERVAL> is interval between measurements in seconds. Time interval to average rates. Default value is 60 seconds. SEE ALSO lnstat(8) 27 June, 2007 RTACCT(8)

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
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). 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

4 More Discussions You Might Find Interesting

1. Solaris

netstat counters

Is there a way to reset the netstat counters in solaris 8? Specifically, the error counters? (1 Reply)
Discussion started by: tjlst15
1 Replies

2. UNIX for Dummies Questions & Answers

How to print based on the value from counters?

Hi, I am writing a script which will get the input from a combinations of awk commands and using counters and loop I am generating a dynamic values and passing the output to a file using print -u3 options, now instead of redirecting the output to a file how can the output be created in the same... (3 Replies)
Discussion started by: shruthidwh
3 Replies

3. UNIX for Beginners Questions & Answers

Working out percentage in shell script

Hi All, I currently have a shell script which is pulling multiple counters from various sources. Due to the counters being cumulative counters I've got some code to work out the delta from the last reading and current which is working fine. The problem i have now is being able to work out the... (8 Replies)
Discussion started by: mutley2202
8 Replies

4. Red Hat

CPU Usage statistics Dump in a text file over a period of time

I am facing issue related to performance of one customized application running on RHEL 5.9. The application stalls for some unknown reason that I need to track. For that I require some tool or shell scripts that can monitor the CPU usage statistics (what we get in TOP or in more detail by other... (6 Replies)
Discussion started by: Anjan Ganguly
6 Replies