lnstat
Report Linux network statistics
SYNOPSIS
lnstat [options]
PARAMETERS
-c COUNT
Number of intervals to print
-d
Show detailed list of available counters
-f FILE
Statistics file to use
-h
Show help message
-i INTERVAL
Interval between updates in seconds
-j
Output in JSON format
-k KEYS
Display only specified keys
-s
One-shot mode, print stats once
-w
Don't wrap output lines
DESCRIPTION
lnstat provides a simple and generalized interface for accessing Linux kernel networking statistics. It reads statistics from various files in /proc/net/stat/ and presents them in a unified format. This tool is useful for monitoring network subsystem performance and debugging network issues.
CAVEATS
Available statistics depend on kernel configuration. Some counters may not be meaningful without kernel knowledge. Requires access to /proc filesystem.
COMMON FILES
arp_cache - ARP cache statistics
ndisc_cache - Neighbor discovery cache
ip_conntrack - Connection tracking stats
rt_cache - Route cache statistics


