Is it possible to SET the interface statistics in Linux after it's been brought up? I'm dealing with rrdtool (mrtg) that gets upset by a daily ifdown
and ifup
which brings the interface counters back to zero. Ideally I would like to continue counting from where I left and setting the interface values to what they were before the interface went down seems to be the easiest path.
I checked writing to /sys/class/net/ax0/statistics/rx_packets
but that gives a Permission Denied
error.
netstat
, ifup
, ifconfig
and friends don't seem to support changing these values either.
Anything else I can try?