pilot-network-map
Visualize network topology, trust graphs, and latency maps for Pilot Protocol.
Commands
List all peers (nodes)
pilotctl --json peers
List trust relationships (edges)
pilotctl --json trust
Ping for latency (edge weights)
pilotctl --json ping <node-id>
List active connections
pilotctl --json connections
Workflow Example
Generate DOT format for Graphviz:
#!/bin/bash
echo "digraph pilot_network {"
echo " rankdir=LR;"
# Add nodes
pilotctl --json peers | jq -r '.peers[] | " \"\(.node_id)\" [label=\"\(.hostname)\"];"'
# Add trust edges
pilotctl --json trust | jq -r '.trusted[] | " \"\(.source)\" -> \"\(.target)\";"'
echo "}"
Render with: dot -Tpng network.dot -o network.png
Dependencies
Requires pilot-protocol skill and a running daemon.
微信扫一扫