360 Secure SkillHub
360 安全技能中心

Pilot Mesh Status

通过 pilotctl CLI 采集守护进程、对等节点、连接、信任、中继、带宽、延迟和加密覆盖等维度数据,用 jq 等工具聚合为统一的网格状态报告,适用于监控看板与连通性排查,明确排除纯节点发现、详细健康监控和拓扑可视化。

teoslayer
teoslayer
热度 43.98
最近更新 2026-05-11 17:41:32
分类:自动化依赖:代码执行应用场景:DevOps / 报告撰写 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pilot-mesh-status
Metadata
name
pilot-mesh-status
description
Comprehensive mesh status — peers, encryption, relay, bandwidth. Use this skill when: 1. Getting a complete overview of network status and health 2. Debugging connectivity or performance issues across the mesh 3. Generating status reports for monitoring or dashboards Do NOT use this skill when: - You only need peer discovery (use pilot-discover instead) - You need detailed health monitoring (use pilot-health instead) - You need to visualize topology (use pilot-network-map instead)
tags
["pilot-protocol","status","monitoring"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

pilot-mesh-status

Comprehensive mesh network status reporting for Pilot Protocol. Aggregates daemon health, peer status, encryption state, relay usage, bandwidth metrics, and connection details into unified reports.

Commands

List All Peers

pilotctl --json peers

List Active Connections

pilotctl --json connections

Get Agent Info

pilotctl --json info

Benchmark Connection

pilotctl --json bench <node-id>

Check Daemon Status

pilotctl --json daemon status

Status Dimensions

A complete mesh status report covers:

  1. Daemon health: Uptime, resource usage, error rate
  2. Network membership: Peer count, discovery status
  3. Connections: Active connections, ports, encryption
  4. Trust: Trust relationships, mutual trust count
  5. Relay usage: Relay vs direct connections
  6. Bandwidth: Total bytes sent/received
  7. Latency: RTT to key peers
  8. Security: Encryption coverage, trust coverage

Workflow Example

Generate comprehensive mesh status report:

#!/bin/bash
echo "========== PILOT MESH STATUS =========="
echo "Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)"

# Daemon Health
daemon_status=$(pilotctl --json daemon status)
echo "$daemon_status" | jq -r '
  "Uptime: \(.uptime_seconds)s",
  "Memory: \(.memory_mb)MB",
  "Connections: \(.connection_count)"'

# Network Membership
peers=$(pilotctl --json peers)
peer_count=$(echo "$peers" | jq '.peers | length')
echo "Total peers: $peer_count"

# Active Connections
connections=$(pilotctl --json connections)
conn_count=$(echo "$connections" | jq '.connections | length')
echo "Total connections: $conn_count"

# Relay Usage
relay_count=$(echo "$connections" | jq '[.connections[] | select(.relay)] | length')
direct_count=$((conn_count - relay_count))
echo "Direct: $direct_count, Relay: $relay_count"

# Bandwidth
total_sent=$(echo "$connections" | jq '[.connections[].bytes_sent] | add // 0')
total_recv=$(echo "$connections" | jq '[.connections[].bytes_received] | add // 0')
echo "Sent: $(numfmt --to=iec $total_sent)"
echo "Recv: $(numfmt --to=iec $total_recv)"

# Encryption Coverage
encrypted_count=$(echo "$connections" | jq '[.connections[] | select(.encrypted)] | length')
if [ "$conn_count" -gt 0 ]; then
  enc_pct=$(echo "scale=1; $encrypted_count * 100 / $conn_count" | bc)
  echo "Encrypted: $encrypted_count/$conn_count ($enc_pct%)"
fi

Dependencies

Requires pilot-protocol skill and running daemon.