mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
swarm/cmd: improve README
This commit is contained in:
parent
38028fc8e9
commit
9b0065e05a
1 changed files with 13 additions and 2 deletions
|
|
@ -125,6 +125,8 @@ wget -O- gateway-url/bzz:/swarm-url
|
||||||
# Further examples
|
# Further examples
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
# start with updaing
|
||||||
|
swarm update chambers
|
||||||
|
|
||||||
# display CLI options given to geth used to launch swarm instance 02
|
# display CLI options given to geth used to launch swarm instance 02
|
||||||
swarm options 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
|
for node in `cat nodes.lst|grep -v '^#'`; do scp enodes.lst $node:; done
|
||||||
swarm remote-run nodes.lst 'swarm addpeers enodes.lst'
|
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
|
# stop all running instances on the node
|
||||||
swarm stop all
|
swarm stop all
|
||||||
|
|
||||||
|
|
@ -180,7 +191,7 @@ swarm netstatun
|
||||||
swarm remote-run nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun'
|
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
|
## configure and run netstats client for each node
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
swarm remote-run-all nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun'
|
swarm remote-run nodes.lst 'swarm netstatconf cicada-sworm; swarm netstatrun'
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue