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