diagnose.sh 211 B

12345678910111213141516
  1. #!/bin/bash
  2. ROOT=$(cd `dirname $0`/../../; pwd)
  3. NET_CARD=enp2s0
  4. echo ethtool
  5. #ethtool -S $NET_CARD
  6. ethtool -S $NET_CARD | grep rx_ | grep errors
  7. echo ifconfig
  8. ifconfig $NET_CARD
  9. echo netstat
  10. netstat -s -u