VNSTATI

Section: User Manuals (1)
Updated: APRIL 2009
Index Return to Main Contents
 

NAME

vnStat image output - png image output support for vnStat  

SYNOPSIS

vnstati [ -cdhimorstv? ] [ -i interface ] [ --hours ] [ --days ] [ --months ] [ --top10 ] [ --summary ] [ -hs ] [ --hsummary ] [ -vs ] [ --vsummary ] [ -ne ] [ --noedge ] [ -nh ] [ --noheader ] [ --rate ] [ --output file ] [ --cache time ] [ --iface interface ] [ --config file ] [ --help ] [ --version ]  

DESCRIPTION

The purpose of vnstati is to provide image output support for statistics collected using vnstat(1). The image file format is limited to png. All basic outputs of vnStat are supported excluding live traffic features. The image can be outputted either to a file or to standard output.  

OPTIONS

-s, --summary
Output traffic summary.
-hs, --hsummary
Output traffic summary including hourly data using a horizontal layout.
-vs, --vsummary
Output traffic summary including hourly data using a vertical layout.
-d, --days
Output traffic for days.
-h, --hours
Output traffic for the last 24 hours.
-m, --months
Output traffic for months.
-t, --top10
Output all time top10 traffic days.
-ne, --noedge
Remove darker edges from around the image.
-nh, --noheader
Remove header containing title and update time. Time of the previous update will still be visible in the lower right corner using a less visible color.
-r, --rate
Show traffic in hourly output as hourly average rate instead of showing how much was transferred. This option has effect only when the selected output contains the hourly output.
-o, --output file
Write png image to file and exit. Output can be directed to stdout by giving "-" as filename.
-c, --cache time
Update output file only if at least time minutes have passed since the previous file update. This option is ignored if stdout is used as output.
-i, --iface interface
Use interface instead of default or configured interface.
--config file
Use file as config file instead of using normal config file search function.
-?, --help
Show a command summary.
-v, --version
Show current version.
 

FILES

/var/lib/vnstat/
Default database directory. Files are named according to the monitored interfaces.
/etc/vnstat.conf
Config file that will be used unless $HOME/.vnstatrc exists. See vnstat.conf(1) for more information.
 

EXAMPLES

vnstati -s -i eth0 -o /tmp/vnstat.png
Output traffic summary for interface eth0 to file /tmp/vnstat.png.
vnstati -h -c 15 -o /tmp/vnstat_h.png
Output hourly traffic statistics for default interface to file /tmp/vnstat_h.png if the file has not been updated within the last 15 minutes.
vnstati -d -ne -nh -o -
Output daily traffic statistics without displaying the header section and edges for default interface to standard output (stdout).
vnstati -m --config /home/me/vnstat.cfg -i -o -
Output monthly traffic statistics for default interface specified in configuration file /home/me/vnstat.cfg to standard output (stdout).
 

AUTHOR

Teemu Toivola <tst at iki dot fi>  

SEE ALSO

vnstat(1), vnstatd(1), vnstat.conf(1), units(7)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
EXAMPLES
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 15:05:15 GMT, March 18, 2021