Thursday, February 20, 2014

Unix: tcpdump check connectivity

Useful commnd to run
tcpdump -nn -v -s 1500 -c 1 'ether[20:2] == 0x2000' -i ethX

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...