I use the folowing: cat /sys/class/net/em1/statistics/rx_bytes for the em1 interface all other stats are available Paul Hewlett Senior Systems Engineer Velocix, Cambridge Alcatel-Lucent t: +44 1223 435893 m: +44 7985327353 ________________________________________ From: ceph-users [ceph-users-bounces@xxxxxxxxxxxxxx] on behalf of Carl-Johan Schenström [carl-johan.schenstrom@xxxxx] Sent: 09 April 2015 07:34 To: Francois Lafont; ceph-users@xxxxxxxxxxxxxx Subject: Re: Cascading Failure of OSDs Francois Lafont wrote: > Just in case it could be useful, I have noticed the -s option (on my > Ubuntu) that offer an output probably easier to parse: > > # "column -t" is just to make it's nice for the human eyes. > ifconfig -s | column -t Since ifconfig is deprecated, one should use iproute2 instead. ip -s link show p2p1 | awk '/(RX|TX):/{getline; print $3;}' However, the sysfs interface is probably a better alternative. See <https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-statistics> and <https://www.kernel.org/doc/Documentation/ABI/README>. -- Carl-Johan Schenström Driftansvarig / System Administrator Språkbanken & Svensk nationell datatjänst / The Swedish Language Bank & Swedish National Data Service Göteborgs universitet / University of Gothenburg carl-johan.schenstrom@xxxxx / +46 709 116769 _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com