
14 Jul
2015
14 Jul
'15
10:34 p.m.
zlinw@mcmedia.com.au <zlinw@mcmedia.com.au> wrote:
Many thanks for the replies, James reply put me on the track, vnstat just reads /proc/net/dev this give full stats for all up interfaces. All I need to do is when ppp0 comes up is to start reading /proc/net/dev and feed it to grep ppp0, extracting the transmit and recieve count will be trivial.
There are always more commands to learn, it seems. Vnstat was new to me.