Skip to content

Instantly share code, notes, and snippets.

@kentsommer
Created June 25, 2018 03:25
Show Gist options
  • Save kentsommer/b12b0594a2c13c1db7804f9edebd96ac to your computer and use it in GitHub Desktop.
Save kentsommer/b12b0594a2c13c1db7804f9edebd96ac to your computer and use it in GitHub Desktop.
Find velodyne IP
read -p 'Ethernet device to use (can find with ifconfig): ' ethdev
sudo tcpdump -i $ethdev port 2368 -n | awk '{ print gensub(/(.*)\..*/,"\\1","g",$3), $4, gensub(/(.*)\..*/,"\\1","g",$5) }' | cut -d ' ' -f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment