Skip to content

Instantly share code, notes, and snippets.

@tzdybal
Created September 24, 2018 22:32
Show Gist options
  • Save tzdybal/ebcf6a23c5d2e335ae5cc77a322b43ce to your computer and use it in GitHub Desktop.
Save tzdybal/ebcf6a23c5d2e335ae5cc77a322b43ce to your computer and use it in GitHub Desktop.
geth - export of connected peers
geth api admin peers 2>&1 | grep -E remoteAddress\|id | cut -d\" -f4 | paste - - | awk '{print "admin.addPeer(\"enode://"$1"@"$2"\")"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment