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

# [NAME](#NAME)

nstat, rtacct - network statistics tools

# [SYNOPSIS](#SYNOPSIS)

Usage: nstat \[ -h?vVzrnasd:t:jp ] \[ PATTERN \[ PATTERN ] ]  
Usage: rtacct \[ -h?vVzrnasd:t: ] \[ ListOfRealms ]

# [DESCRIPTION](#DESCRIPTION)

**nstat** and **rtacct** are simple tools to monitor kernel SNMP counters and network interface statistics.

**nstat** can filter kernel SNMP counters by name with one or several specified wildcards. Wildcards are case-insensitive and can include special symbols **?** and **\***

# [OPTIONS](#OPTIONS)

**-h, --help** Print help.

[**-V, --version**](#V,)

Print version.

[**-z, --zeros**](#z,)

Dump zero counters too. By default they are not shown.

[**-r, --reset**](#r,)

Reset history.

[**-n, --nooutput**](#n,)

Do not display anything, only update history.

[**-a, --ignore**](#a,)

Dump absolute values of counters. The default is to calculate increments since the previous use.

[**-s, --noupdate**](#s,)

Do not update history, so that the next time you will see counters including values accumulated up to this measurement.

[**-j, --json**](#j,)

Display results in JSON format.

[**-p, --pretty**](#p,)

When combined with **--json**, pretty print the output.

[**-d, --scan &lt;INTERVAL&gt;**](#d,)

Run in daemon mode collecting statistics. &lt;INTERVAL&gt; is the interval between measurements in seconds.

[**-t, --interval &lt;INTERVAL&gt;**](#t,)

Time interval to average rates. Default value is 60 seconds.

# [SEE ALSO](#SEE_ALSO)

[lnstat(8)](/man/os/iproute2/lnstat.8)

27 June 2007

---

Document: nstat(8) from iproute2 7.2.0-r0 (Chainguard OS)
Source: https://kernel.googlesource.com/pub/scm/network/iproute2/iproute2
