Linux commands
From Krm
tcpdump
CDP packets
'ether[20:2] == 0x2000'
PPPoE discovery, session packets
pppoed pppoes
awk
Sum the numbers in a column
awk '{ SUM += $1} END { print SUM }'
Get substring of a column
awk '{print $1" " substr($2)}'