360 Secure SkillHub
360 安全技能中心

Pilot Mesh Status

核心功能:汇总Pilot Protocol mesh网络的守护进程健康、节点状态、加密状态、带宽等多维度数据,生成统一状态报告。典型场景:全局网络状态概览、连接/性能问题排查、监控或仪表盘报告生成。通过pilotctl命令调用,输出JSON格式数据;需依赖pilot-protocol技能、pilotctl二进制,且守护进程需运行。

teoslayer
teoslayer
热度 43.95
最近更新 2026-05-11 17:41:32
分类:数据依赖:代码执行应用场景:调试排错 / 数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 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.