- About lnstat : To get unified linux network statistics
- It comes from “iproute-2.6.32” package.
- Configuration Files:
- Path: /usr/sbin/lnstat
Examples:
1. To get the unified network statistics
$ lnstat |
2. To print the number of intervals
$ lnstat -c 10 |
3. To dump list of available files/keys
$ lnstat -d $ lnstat –dump |
4. To get the stats file to use
$ lnstat -f file.txt $ lnstat –file file.txt |
5. To set the interval to specified seconds
$ lnstat -i 10 $ lnstat –interval 10 |
6. To display only the specified keys
$ lnstat -k k,k,k $ lnstat –keys k,k,k |
7. To specify the header printing
$ lnstat -s 0 (No header at all) $ lnstat -s 1 (Prints a header only at start) $ lnstat -s 2 (prints a header every 20 lines) |
8. To specify the width for every field
$ lnstat -w 1,2,3, $ lnstat –width 2,2,2 |
9. To get the help for lnstat.
$ lnstat –help |
10. To get the version info
$ lnstat –version |
Related Commands: ip