From 9b0065e05a367b7ff707253de713ce37a9d922cc Mon Sep 17 00:00:00 2001 From: zelig Date: Tue, 5 Jul 2016 04:15:54 +0200 Subject: [PATCH] swarm/cmd: improve README --- swarm/cmd/README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/swarm/cmd/README.md b/swarm/cmd/README.md index a28ea84a7b..6be77fba37 100644 --- a/swarm/cmd/README.md +++ b/swarm/cmd/README.md @@ -125,6 +125,8 @@ wget -O- gateway-url/bzz:/swarm-url # Further examples ```shell +# start with updaing +swarm update chambers # display CLI options given to geth used to launch swarm instance 02 swarm options 02 @@ -154,6 +156,15 @@ swarm remote-run nodes.lst 'swarm enode all' > enodes.lst for node in `cat nodes.lst|grep -v '^#'`; do scp enodes.lst $node:; done swarm remote-run nodes.lst 'swarm addpeers enodes.lst' +# if you run a local network and your nodes do not listen to external IPs +swarm remote-run pivot.lst 'swarm restart all' + +# to add just one or a few guardians and let the network bootstrap +# swarm remote-run 'swarm enode all' +swarm addpeers pivot.lst +# or directly +swarm addpeers all <(IP_ADDR='[::]' swarm enode 01|tr -d '"') + # stop all running instances on the node swarm stop all @@ -180,7 +191,7 @@ swarm netstatun swarm remote-run nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun' -swarm remote-run-all nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun' +swarm remote nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun' ``` @@ -214,5 +225,5 @@ npm install -g pm2 ## configure and run netstats client for each node ```shell -swarm remote-run-all nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun' +swarm remote-run nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun' ```