.. index:: pair: group; Getting interface statistics with ethtool .. _doxid-group__ethtool-statistics: Getting interface statistics with ethtool ========================================= .. toctree:: :hidden: Check that ethtool shows interface statistics. Scenarios: X3-ET003. #. Run ' **ethtool** -S **iut_if'** on IUT. Check that it terminated with zero exit code and did not print anything to **stderr**. #. Save current values of Tx and Rx bytes counters from **ethtool** output. #. Create a pair of connected sockets of type **sock_type** on IUT and Tester, send some data in both directions between them, receive and check it. #. Wait for a while to let statistics counters update. #. Again run ' **ethtool** -S **iut_if'** on IUT. Check that it terminated with zero exit code and did not print anything to **stderr**. #. Obtain new values of Tx and Rx bytes counters from **ethtool** output, check that they increased. Dmitry Izbitsky `Dmitry.Izbitsky@oktetlabs.ru `__ .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer ` * :ref:`env.peer2peer_ipv6 ` * - sock_type - Socket type: * ``SOCK_STREAM`` * ``SOCK_DGRAM``