|
本帖最后由 coxyblog 于 2019-6-6 11:40 编辑
也不知道你用的哪个版本,查了下更新日志
2.0 / 21-Oct-2018
- Fixed
- Data rate calculations when using SI decimal prefixes
- Workaround for filled arcs not drawn correctly with some versions
of libgd (libgd/libgd#351)
- New
- C struct dump database has been replaced with sqlite database,
full data import included from legacy databases of versions 1.3 - 1.18
- User configurable data retention durations for all resolutions with
following changed defaults:
v1.18 v2.0
5 minutes n/a 576 (48 hours)
hours 24 96 (4 days)
days 30 62 (2 full months)
months 12 25 (2 full years)
years n/a all
top days 10 20
- Option to select units to use SI decimal prefixes using calculations
with powers of 1000 (IEC and JEDEC prefixes use powers of 1024)
- Yearly and 5 minute resolution statistics
- Pebibyte and exbibyte support
- Options the configure the length of each list output
- Option to limit the length of --json and --xml outputs
- Hourly list output replaces the hourly graph when the -h parameter is used
- Hourly graph is accessible with -hg / --hoursgraph parameter
- Options -b / --begin and -e / --end for specifying query time range
- Configuration comes with ISO 8601 date formats as new defaults
- Removed
- Weekly output
- Merge of data from multiple interfaces to one output
- --testkernel
- --exportdb, use --oneline, --json or --xml instead
- --importdb, -u / --update and related options using vnstat command
- Old style (default in versions up to 1.7) summary layout in image output
dumpdb之前更名为exportdb,现在exportdb也去掉了,用--oneline --json --xml代替了,然后给你看了下
--oneline [mode]
Show traffic summary for selected interface using one line with a parsable format. The output contains 15 fields with ; used as field delimiter. The 1st field contains the API version information of the output that will only be changed in future versions if the field content or structure changes. The following fields in order 2) interface name, 3) timestamp for today, 4) rx for today, 5) tx for today, 6) total for today, 7) average traffic rate for today, 8) timestamp for current month, 9) rx for current month, 10) tx for current month, 11) total for current month, 12) average traffic rate for current month, 13) all time total rx, 14) all time total tx, 15) all time total traffic. An optional mode parameter can be used to force all fields to output in bytes without the unit itself shown.
自己从里面找找测试测试吧。
PS,用软件就得看人家官方的文档,不看说明书可是不行的。 |
|