OpenVZ Forum


Home » General » Support » Traffic accounting in OpenVZ 7 (Monthly transfer)
Traffic accounting in OpenVZ 7 [message #52543] Mon, 05 September 2016 17:56 Go to next message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
From: *hsi.kabel-badenwuerttemberg.de
Hello, there is any native implementation in OpenVZ 7 to know the traffic used by a CT/VM ? or we still need implement via iptables?

The kindly named "xxx GB/month"

Thanks!
Re: Traffic accounting in OpenVZ 7 [message #52544 is a reply to message #52543] Mon, 05 September 2016 18:13 Go to previous messageGo to next message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
From: *hsi.kabel-badenwuerttemberg.de
Ok, I found that is possible with the "vznetstat" command.

But I have other question, is possible to reset to 0 (zero) this values? or reset a specific CT/VM... ?

Thanks
Re: Traffic accounting in OpenVZ 7 [message #52550 is a reply to message #52544] Wed, 07 September 2016 15:47 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 491
Registered: January 2006
Location: Moscow, Russia
Senior Member
From: *sw.ru
There is an ioctl interface for that, and 'prlsrvctl tc restart', see users@openvz.org mailing list:

https://lists.openvz.org/pipermail/users/2016-September/0070 97.html


If you problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Traffic accounting in OpenVZ 7 [message #52616 is a reply to message #52543] Fri, 11 November 2016 11:58 Go to previous message
JimmFrem is currently offline  JimmFrem
Messages: 10
Registered: September 2016
Location: Europe
Junior Member
From: *iv.lt
You can use tc for traffic shaping and accounting purposes.
Previous Topic: PSBM-51818 NFS lock Bug reappeared on 042stab120.3?
Next Topic: cPanel Quota
Goto Forum:
  


Current Time: Fri Sep 21 21:51:38 GMT 2018