LinuxCommandLibrary

vnstati

Generate network traffic graph images

TLDR

Output a summary of the last 2 months, days, and all-time

$ vnstati --summary --iface [network_interface] --output [path/to/output.png]
copy
Output the 10 most traffic-intensive days of all time
$ vnstati --top 10 --iface [network_interface] --output [path/to/output.png]
copy
Output monthly traffic statistics from the last 12 months
$ vnstati --months --iface [network_interface] --output [path/to/output.png]
copy
Output hourly traffic statistics from the last 24 hours
$ vnstati --hours --iface [network_interface] --output [path/to/output.png]
copy

SYNOPSIS

vnstati [options] -o file | --output file

DESCRIPTION

vnstati generates PNG images from vnStat network traffic data, providing visual representations of bandwidth usage. It reads the same database as vnstat and outputs graphical summaries suitable for web pages or reports.
The tool supports various time ranges (hourly, daily, monthly, yearly) and can generate traffic summaries, top usage days, and 5-minute resolution graphs. Multiple style options allow customization of appearance.

PARAMETERS

-i, --iface interface

Select interface to use
-o, --output file
Output filename (PNG format)
-s, --summary
Output traffic summary
--top count
Output top days by traffic
-h, --hours
Output hourly traffic statistics
-d, --days
Output daily traffic statistics
-m, --months
Output monthly traffic statistics
-y, --years
Output yearly traffic statistics
-5, --fiveminutes
Output 5-minute resolution statistics
--style num
Modify visual appearance (0-4)
-c, --cache time
Update output only if database is newer than time
--headertext text
Custom header text
--transparent
Toggle background transparency

CAVEATS

Requires vnstat daemon to be running and collecting data. Output is PNG format only. The interface must have existing traffic data in the vnstat database.

HISTORY

Part of the vnStat project by Teemu Toivola. vnstati was added to provide graphical output capabilities, commonly used for generating bandwidth graphs for web-based monitoring dashboards and reports.

SEE ALSO

vnstat(1), nethogs(8), iftop(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community