返回顶部
a

alibabacloud-network-reachability-analysis 网络可达性分析

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.1
安全检测
已通过
142
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

alibabacloud-network-reachability-analysis

NIS Network Reachability Analysis / NIS 网络可达性分析

Language / 语言: Respond in the same language the user uses.
If the user speaks Chinese, use the Chinese (zh-CN) prompts below.
If the user speaks English, use the English (en) prompts below.

使用阿里云 NIS 引导智能体进行交互式网络可达性分析。
涵盖正向/反向路径分析、拓扑可视化(Mermaid)以及路径上资源的监控诊断。

架构: NIS (CreateAndAnalyzeNetworkPath + GetNetworkReachableAnalysis) + CloudMonitor (DescribeMetricData)

⚠️ CRITICAL / 关键: READ-ONLY OPERATIONS ONLY

This skill performs read-only network diagnostics. DO NOT create, modify, or delete any cloud resources.

本技能仅执行只读网络诊断操作。严禁创建、修改或删除任何云资源。

Allowed: CreateAndAnalyzeNetworkPath, GetNetworkReachableAnalysis, DescribeMetricData, Describe* APIs

允许:分析任务创建与查询、监控数据查询、Describe* 类查询 API

Forbidden: Create (except CreateAndAnalyzeNetworkPath), Modify, Delete, Start, Stop, Run APIs

禁止:创建类 API(除 CreateAndAnalyzeNetworkPath 外)、修改、删除、启停、执行类 API

安装

前置检查:需要 Aliyun CLI >= 3.3.1
运行 aliyun version 确认版本 >= 3.3.1。如果未安装或版本过低,
请参阅 references/cli-installation-guide.md 获取安装说明。
然后 [必须] 运行 aliyun configure set --auto-plugin-install true 以启用自动插件安装。

bash
aliyun version
aliyun configure set --auto-plugin-install true

身份认证

前置检查:需要阿里云凭证
安全规则:

  • - 严禁读取、回显或打印 AK/SK 值(例如,echo $ALIBABACLOUDACCESSKEYID 是禁止的
  • 严禁要求用户在对话或命令行中直接输入 AK/SK
  • 严禁使用 aliyun configure set 并传入字面凭证值
  • 使用 aliyun configure list 检查凭证状态

bash
aliyun configure list --user-agent AlibabaCloud-Agent-Skills

检查输出中是否存在有效的配置(AK、STS 或 OAuth 身份)。
如果没有有效的配置,请在此处停止。

  1. 1. 从 阿里云控制台 获取凭证
  2. 在此会话之外配置凭证(通过终端中的 aliyun configure 或 shell 配置文件中的环境变量)
  3. 当 aliyun configure list 显示有效配置后,返回并重新运行

RAM 权限

完整的 RAM 策略请参见 references/ram-policies.md

所需操作:nis:CreateAndAnalyzeNetworkPath、nis:GetNetworkReachableAnalysis、cms:DescribeMetricData。

参数确认

重要:参数确认 — 在执行任何命令或 API 调用之前,
所有用户可自定义的参数(例如,RegionId、实例 ID、IP 地址、
协议、端口、资源类型等)必须与用户确认。
未经用户明确批准,不得假设或使用默认值。

以交互方式收集以下参数:

参数必填说明 (EN)说明 (ZH)默认值
RegionIdRegion of the analysis task分析任务所在地域
SourceType
是 | ecs, vsw, internetIp, vpn, vbr | 源端类型 | — |
| SourceId | 是 | Source resource ID (or public IP if internetIp) | 源资源 ID(公网 IP 类型直接填 IP) | — |
| SourceIpAddress | 条件性 | On-Premise IP, required for vpn/vbr | 云下私网 IP,vpn/vbr 时必填 | — |
| TargetType | 是 | ecs, vsw, internetIp, vpn, vbr, clb | 目的端类型 | — |
| TargetId | 是 | Target resource ID (or public IP if internetIp) | 目的资源 ID(公网 IP 类型直接填 IP) | — |
| TargetIpAddress | 条件性 | On-Premise IP, required for vpn/vbr | 云下私网 IP,vpn/vbr 时必填 | — |
| Protocol | 是 | tcp, udp, or icmp | 协议类型 | — |
| TargetPort | 条件性 | Required for tcp/udp | tcp/udp 时必填 | — |
| SourcePort | 可选 | Source port | 源端口 | — |

交互收集逻辑

使用与用户语言匹配的提示:

步骤 1 — 询问资源类型

ENZH
What is the source resource type? (ecs / vsw / internetIp / vpn / vbr)请问源端资源类型是什么?(ecs / vsw / internetIp / vpn / vbr)
What is the target resource type? (ecs / vsw / internetIp / vpn / vbr / clb)
请问目的端资源类型是什么?(ecs / vsw / internetIp / vpn / vbr / clb) |

步骤 2 — 按类型提示

条件EN PromptZH Prompt
internetIpFor public IP analysis, please provide the public IP address directly as the ID.分析公网路径时,请直接提供公网 IP 地址作为 ID 传入。
vpn / vbr
For hybrid cloud analysis, besides the resource ID, please also provide the On-Premise IP (private IP on your side). | 连接云下环境时,除了资源 ID,请务必提供您的云下私网 IP (On-Premise IP) 以确保分析准确。 |

步骤 3 — 协议和端口

ENZH
What protocol? (tcp / udp / icmp) And what is the target port?请问使用什么协议?(tcp / udp / icmp)目的端口是多少?

核心工作流

步骤 1:正向路径分析

bash
aliyun nis create-and-analyze-network-path \
--source-id \
--source-type \
--target-id \
--target-type \
--protocol \
--target-port \
--source-ip-address \
--target-ip-address \
--region \
--user-agent AlibabaCloud-Agent-Skills

如果 SourceType/TargetType 不是 vpn 或 vbr,省略 --source-ip-address / --target-ip-address。
如果 Protocol 是 icmp,省略 --target-port。

记录返回的 NetworkReachableAnalysisId。

⚠️ 强制: 正向分析完成后始终执行反向路径分析。

必须在步骤 2 完成后立即执行步骤 3(反向路径分析)。请勿跳过或省略反向路径检查。

必须在正向分析完成后立即执行 Step 3(反向路径分析)。严禁跳过或省略反向路径检查。

步骤 2:轮询正向结果

bash
aliyun nis get-network-reachable-analysis \
--network-reachable-analysis-id \
--region \
--user-agent AlibabaCloud-Agent-Skills

重复直到 NetworkReachableAnalysisStatus 为 finish。提取 Reachable、NetworkReachableAnalysisResult。

步骤 3:反向路径分析

交换

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 alibabacloud-network-reachability-analysis-1775921535 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 alibabacloud-network-reachability-analysis-1775921535 技能

通过命令行安装

skillhub install alibabacloud-network-reachability-analysis-1775921535

下载

⬇ 下载 alibabacloud-network-reachability-analysis v0.0.1(免费)

文件大小: 14.08 KB | 发布时间: 2026-4-12 08:52

v0.0.1 最新 2026-4-12 08:52
Initial release of Alibaba Cloud NIS network reachability analysis skill.

- Enables interactive network path analysis using Alibaba Cloud's Network Intelligence Service (NIS), including both forward and reverse diagnosis.
- Supports topology visualization and resource health monitoring for analysis participants.
- Strictly read-only: prohibits any create/modify/delete operations beyond path analysis and monitoring queries.
- Provides detailed, language-adaptive guidance for parameter collection and workflow steps in both English and Chinese.
- Enforces explicit user confirmation for all customizable analysis parameters before execution.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部