When two nodes are connected in the cluster, is there a way where I can get or display node 1 pins in node 2?
Is something like this possible from node 2 I type this command, ipfs-cluster-ctl pin ls //so this should list all the pinned hashes from node1.
Thank you.
hector
2
pin ls
lists all the pins that cluster is tracking. It has an allocation array. You can use that to filter the pins allocated to a specific peer:
i.e.
ipfs-cluster-ctl --enc=json pin ls | jq 'select(.[].allocations[] | contains("<peerID>"))'
or simply grep by peer id: ipfs-cluster-ctl pin ps | grep <peerid>
.
1 Like