diff --git a/arp2ethers b/arp2ethers index 600ed57..ad67efe 100755 --- a/arp2ethers +++ b/arp2ethers @@ -13,7 +13,7 @@ # - sort # -sort +2rn arp.dat | \ +sort -k 2 -rn arp.dat | \ awk 'NF == 4 { print }' | \ awk -f p.awk | \ egrep -v '\.[0-9][0-9]*$' | \ diff --git a/arpfetch b/arpfetch index 5c19c2c..6d8a8c7 100755 --- a/arpfetch +++ b/arpfetch @@ -4,8 +4,6 @@ # arpfetch - collect arp data from a cisco using net-snmp # -export PATH="/usr/local/bin:${PATH}" - prog=`basename $0` if [ $# -ne 2 ]; then @@ -30,4 +28,3 @@ snmpwalk -Oq -Os -v 1 -c ${cname} ${host} ${what} | 2>&1 tr A-Z a-z | print ea "\t" ip }' -rm -f ${t1}