GNU/Linux Command – LNSTAT

lnstat — Linux Network Statistics

Summary:
lnstat is a generalized and more feature-complete replacement for the old rtstat program. In addition to routing cache statistics, it supports any kind of statistics the Linux kernel exports via a file in /proc/net/stat/. By default, lnstat use 3 seconds as the interval.

Examples:
$ lnstat -- Show the stats with header. $ lnstat -d -- Show all support stats files. $ lnstat -c 6 -- Show the stats for 6 times. $ lnstat -c 6 -i 5 -- Show with interval of 5 sec. $ lnstat -c -1 -- Run until the ^C is pressed. $ lnstat -s 0 -- Don't show the headers. $ lnstat -s 6 -- Show the headers for every 6 output lines. $ lnstat -f rt_cache -- Show stats from this file alone. $ lnstat -k in_hit -- Show specific key values only.
Read: man lnstat

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: