#!/bin/bash

echo Number of ethernet interrupts since last boot
grep CPU /proc/interrupts
grep eth0 /proc/interrupts
echo
echo Number of packets send and received since last boot
echo Only the first RX and TX line count.  The others are bogus
/sbin/ifconfig | grep packet
echo
echo
echo sleeping 5 seconds
sleep 5
echo
echo
echo Number of ethernet interrupts since last boot
grep eth0 /proc/interrupts
echo Number of packets send and received since last boot
echo Only the first RX and TX line count.  The others are bogus
/sbin/ifconfig | grep packet

