My $dir = "/sys/class/net/$dev/statistics" I wrote this dumb script a long time ago, it depends on nothing but Perl and Linux≥2.6: #!/usr/bin/perl No need for priv, dorky binaries, hacky scripts, libpcap, etc. Got sar? Likely yes if youre using RHEL/CentOS.