#!/bin/bash OUT=`netstat -as | grep "OutOctets" | awk '{ print $2 }'` IN=`netstat -as | grep "InOctets" | awk '{ print $2 }'` TOTAL=`expr $OUT + $IN` echo "" echo " Network_Usage_Bytes" echo " generic_data_inc" echo " $TOTAL" echo " bytes/sec" echo " Total bytes/sec transfered in this system" echo ""