Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

pyats-routing皮亚茨路由

Agent Skill

pyats-routing 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

318

周安装

13

GitHub Stars

462

下载量

103
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pyats-routing(皮亚茨路由)
来源仓库:https://github.com/automateyournetwork/netclaw
仓库路径:skills/pyats-routing
安装命令:
npx skills add https://github.com/automateyournetwork/netclaw --skill pyats-routing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/automateyournetwork/netclaw --skill pyats-routing

简介

用于查找、检索和筛选相关信息。pyats-routing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库与原始 README 进一步核验具体用法。
  • 安装前需确认权限范围及是否会触发联网或文件读写操作。
  • 建议检查维护状态,避免使用不稳定或已弃用的技能。

SKILL.md

Routing Protocol Analysis

Routing Table Analysis

Always start here. The routing table is the source of truth for forwarding decisions.

Full Routing Table

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route"}'

Per-Protocol Routes

# OSPF routes only
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route ospf"}'

# BGP routes only
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route bgp"}'

# Connected and static
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route connected"}'

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route static"}'

VRF Routes

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route vrf MGMT"}'

Analysis checklist:

  • Route source codes: C (connected), S (static), O (OSPF), O IA (OSPF inter-area), O E1/E2 (OSPF external), B (BGP), D (EIGRP), D EX (EIGRP external)
  • Administrative distance and metric for each route
  • Next-hop reachability — is the next-hop IP actually reachable?
  • Recursive lookups — routes pointing to next-hops resolved through other routes
  • Equal-cost multipath (ECMP) — multiple next-hops for the same prefix
  • Default route presence and source
  • Unexpected route absence — if a prefix should be there but is not

OSPF Deep Dive

OSPF Process Overview

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf"}'

Check: Router ID, areas configured, SPF run count (high = instability), reference bandwidth, stub/NSSA config, authentication.

OSPF Neighbors

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf neighbor"}'

Neighbor state analysis:

  • FULL — Healthy, full adjacency
  • FULL/DR or FULL/BDR — Normal on broadcast/NBMA networks
  • FULL/DROTHER — Normal on broadcast/NBMA (non-DR/BDR)
  • 2WAY/DROTHER — Normal, two DROTHERs don't form full adjacency
  • INIT — One-way communication only → check MTU, ACLs, authentication
  • EXSTART/EXCHANGE — Stuck in database exchange → MTU mismatch (most common), OSPF area mismatch, authentication
  • LOADING — Stuck loading LSAs → database corruption, memory issues
  • DOWN — No hello packets → interface down, ACL blocking, hello/dead timer mismatch

Common OSPF problems and their symptoms:

SymptomLikely Cause
Stuck in EXSTARTMTU mismatch between neighbors
Stuck in INITHello reaching neighbor but not returning (ACL, asymmetric routing)
Neighbor flappingUnstable link, hello/dead timer too aggressive, CPU too high to process hellos
Missing routesArea type mismatch (stub vs non-stub), missing redistribute or default-information originate
Suboptimal routingCost misconfiguration, missing auto-cost reference-bandwidth

OSPF Interfaces

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf interface"}'

Check per interface: Area assignment, network type (broadcast/point-to-point/NBMA), cost, hello/dead timers, DR/BDR election, authentication type, passive status.

OSPF Database (LSDB)

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf database"}'

LSA types to understand:

  • Type 1 (Router LSA) — Every router generates one per area
  • Type 2 (Network LSA) — DR generates on broadcast/NBMA segments
  • Type 3 (Summary LSA) — ABR advertises between areas
  • Type 4 (ASBR Summary) — ABR advertises ASBR reachability
  • Type 5 (External LSA) — ASBR redistributes external routes
  • Type 7 (NSSA External) — External routes in NSSA areas (converted to Type 5 at ABR)

Red flags in LSDB:

  • Rapidly incrementing sequence numbers → LSA flooding loop
  • Type 5 LSAs in stub area → misconfiguration
  • Missing Type 3 LSAs for expected inter-area prefixes → ABR filtering or area mismatch
  • Duplicate Router IDs → same RID on two routers

BGP Deep Dive

BGP Summary

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip bgp summary"}'

Check: Local AS, router ID, table version, total paths/best paths, per-neighbor state.

Neighbor state column meaning:

  • Number (e.g., 5) → Established, number = received prefixes
  • Idle → Not configured correctly, or administratively shut
  • Idle (Admin)neighbor shutdown configured
  • Active → TCP connection failing → check reachability, TTL, ACLs
  • Connect → TCP SYN sent, no response
  • OpenSent → TCP connected, waiting for OPEN reply
  • OpenConfirm → OPEN received, waiting for KEEPALIVE
  • Established → Healthy

BGP Neighbors Detail

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip bgp neighbors"}'

Deep analysis per neighbor:

  • BGP state, uptime, last reset reason
  • Messages sent/received (OPEN, UPDATE, KEEPALIVE, NOTIFICATION)
  • Hold time and keepalive interval
  • Address families negotiated
  • Route-map/filter-list/prefix-list applied (inbound/outbound)
  • Next-hop-self, soft-reconfiguration, route-reflector-client status
  • Notification messages — decode the error code/subcode

Common BGP problems:

SymptomLikely Cause
Stuck in ActiveTCP connection failing — check ACL, reachability, update-source, ebgp-multihop
Neighbor flappingUnstable link, route-map causing route churn, max-prefix exceeded
0 prefixes receivedNo network or redistribute on remote side, outbound filter on remote, address-family not activated
Routes not in RIBNext-hop unreachable (next-hop-self missing for iBGP), route filtered by policy
Suboptimal pathWeight/local-pref/AS-path/MED not set correctly

BGP Table

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip bgp"}'

BGP best path selection order (memorize this):

  1. Highest Weight (Cisco proprietary, local to router)
  2. Highest Local Preference (iBGP, default 100)
  3. Locally originated (network/redistribute/aggregate)
  4. Shortest AS-path
  5. Lowest Origin (IGP < EGP < Incomplete)
  6. Lowest MED (from same neighbor AS only)
  7. eBGP over iBGP
  8. Lowest IGP metric to next-hop
  9. Oldest route (for eBGP)
  10. Lowest router ID
  11. Lowest neighbor IP

EIGRP Analysis

EIGRP Neighbors

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip eigrp neighbors"}'

Check: Hold timer (resetting to max means hellos received), uptime, SRTT, RTO, Q count (should be 0 — non-zero means retransmission queue backed up).

EIGRP Topology

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip eigrp topology"}'

DUAL states:

  • Passive (P) → Route is stable, normal
  • Active (A) → Route in active query state → DUAL is searching for a feasible successor → if stuck, SIA (Stuck In Active) will kill the neighbor

EIGRP metric components (classic): Bandwidth, Delay, Reliability, Load, MTU (only BW and delay used by default).

EIGRP metric components (wide/named mode): Throughput, Latency, Reliability, Load, MTU, Extended attributes.


Redistribution Audit

When multiple routing protocols are in use, check redistribution points:

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip protocols"}'

Redistribution checklist:

  • Is redistribution mutual (two-way)? Risk of routing loops
  • Are route-maps/prefix-lists applied to redistribution? They should be
  • Are metrics set correctly on redistribution? (seed metric for EIGRP, metric-type for OSPF)
  • Is there a risk of suboptimal routing through the redistribution boundary?
  • Administrative distance tuning — are AD values set to prefer the right protocol?

Route Filtering Verification

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show route-map"}'

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip prefix-list"}'

Convergence Validation

After any routing change, verify convergence:

  1. Check all expected neighbor adjacencies are FULL/Established
  2. Verify the routing table has all expected prefixes
  3. Ping across the network from the device to validate data plane
  4. Check logs for any protocol events during the change
  5. Compare route counts before and after
# Verify route count
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route summary"}'

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.23%
按下载量换算38

Claude

28.24%
按下载量换算29

Cursor

20.95%
按下载量换算22

Gemini CLI

8.91%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills