Linux command
vnstati 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
vnstati --summary --iface [network_interface] --output [path/to/output.png]
Example
vnstati --top 10 --iface [network_interface] --output [path/to/output.png]
Example
vnstati --months --iface [network_interface] --output [path/to/output.png]
Example
vnstati --hours --iface [network_interface] --output [path/to/output.png]
说明
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.
参数
- -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
FAQ
What is the vnstati command used for?
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.
How do I run a basic vnstati example?
Run `vnstati --summary --iface [network_interface] --output [path/to/output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --iface _interface_ do in vnstati?
Select interface to use