forked from STI/Astroport.ONE
scan & connect
This commit is contained in:
parent
97677b4024
commit
7a88b9fc72
@ -1,17 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## SHOW DHT STATS
|
## SHOW DHT STATS
|
||||||
|
echo "#########################"
|
||||||
echo "------------------------------------------------- ~/.zen/tmp/ipfs.stats.dht.wan"
|
echo "------------------------------------------------- ~/.zen/tmp/ipfs.stats.dht.wan"
|
||||||
echo "GETTING DHT STATS"
|
echo "GETTING DHT STATS"
|
||||||
ipfs stats dht wan > ~/.zen/tmp/ipfs.stats.dht.wan
|
ipfs stats dht wan > ~/.zen/tmp/ipfs.stats.dht.wan
|
||||||
# cat ~/.zen/tmp/ipfs.stats.dht.wan
|
# cat ~/.zen/tmp/ipfs.stats.dht.wan
|
||||||
|
echo "#########################"
|
||||||
|
|
||||||
## BOOSTRAP
|
## BOOSTRAP
|
||||||
echo "-------------------------------------------------"
|
echo "#########################"
|
||||||
echo "SWARM NODES"
|
echo "BOOSTRAP NODES"
|
||||||
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" | grep -v '^[[:space:]]*$')
|
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" | grep -v '^[[:space:]]*$')
|
||||||
do
|
do
|
||||||
echo
|
|
||||||
ipfsnodeid=${bootnode##*/}
|
ipfsnodeid=${bootnode##*/}
|
||||||
ipfs swarm peers | grep $bootnode
|
ipfs swarm peers | grep $bootnode
|
||||||
ipfs --timeout 15s ping -n 3 $bootnode
|
ipfs --timeout 15s ping -n 3 $bootnode
|
||||||
@ -26,8 +27,10 @@ done
|
|||||||
|
|
||||||
## SWARM
|
## SWARM
|
||||||
echo
|
echo
|
||||||
echo "-------------------------------------------------"
|
echo "#########################"
|
||||||
echo "SWARM NODES"
|
echo "SWARM NODES"
|
||||||
|
ls ~/.zen/tmp/swarm
|
||||||
|
echo "-------------------------------------------------"
|
||||||
for ipfsnodeid in $(ls ~/.zen/tmp/swarm);
|
for ipfsnodeid in $(ls ~/.zen/tmp/swarm);
|
||||||
do
|
do
|
||||||
ipfs --timeout 15s ping -n 3 /p2p/$ipfsnodeid
|
ipfs --timeout 15s ping -n 3 /p2p/$ipfsnodeid
|
||||||
|
Loading…
Reference in New Issue
Block a user