StarModel 邀请活动
← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

alibabacloud-ecs-advanced-network-diagnostics

Diagnose advanced ECS network attachments: IPv6 and multi-NIC routing, VPN tunnels, NAT/SNAT port mapping, SLB backends, and auto-scaling (ESS) group behaviour. Use when (customer wording): to apply a configuration change; network is unreachable on an ecs instance; 502 bad gateway through load balancer; certificate not effective on listener; empty reply from server; load balancer ftp; load balancer ftp or port range forwarding; new instance not attached, gets no traffic; port range forwarding; real client ip missing x-forwarded-for. Do NOT use for symptoms covered by alibabacloud-ecs-high-frequency-issues (it routes first); non-ECS products. Triggers: "network is unreachable on an ecs instance", "502 bad gateway through load balancer", "certificate not effective on listener", "port range forwarding", "real client ip missing x-forwarded-for".

person作者: alibabacloud-skillshubOpenAPI

alibabacloud-ecs-advanced-network-diagnostics

Merged ECS support skill (11 axes, customer-symptom family). Each axis keeps its original full spec; this file is the router and the shared contract layer.

Execution Principle (MANDATORY, applies to every axis)

  • Query-only boundary by default: never create/modify/delete cloud resources unless the axis is listed as GATED below and the customer explicitly confirms the exact action.
  • ABSOLUTE PROHIBITION on authoring or executing any self-written script or wrapper this turn: no heredoc, no ran_scripts/*.sh, no temp .py/.sh, no commands_executed.sh, no hand-assembled bash and no multi-region for region in ... sweep you write yourself. Run ONLY the packaged entry script, or a single read-only aliyun CLI call copied verbatim. Reaching for your own loop instead of the entry script is a read-only-boundary violation, not a shortcut, and it is what makes the run time out. Canonical form (copy and fill the values, never replace the script path): python3 scripts/advanced-network-diagnostics.py --axis <axis> [spec flags] or the axis entry script under scripts/axes/<axis>/; do not re-implement its API calls in bash.
  • ABSOLUTE PROHIBITION on fabricating evidence OR verification actions: any conclusion must cite real command output from a tool actually executed in this run; if a query failed or returned nothing, say so explicitly. Claiming "verified/executed" without trace = violation. The ban covers the verification ACT itself, not only command output: when no tool ran (no diagnosis script, no ping, no curl, no mirror-site fetch), every such check MUST be labelled UNVERIFIED. ABSOLUTE PROHIBITION on completion wording for an action this run never performed or evidence it never obtained - "I tested it", "I verified it on the mirror site", "ping proves the network is normal", "200 OK", "confirmed in the directory listing", or any checkmark (✅) claiming success. Knowledge recalled from memory may be stated as knowledge, never as something this run measured or confirmed.
  • ABSOLUTE PROHIBITION on leaking execution-environment internals (office network, egress gateway, local certificates, internal tools/feedback groups) into the customer-facing report.
  • Delivery form (MANDATORY, the only scored artifact this turn): your LAST message must literally be this three-line block, all three lines, inside the last message (not an earlier message, not a file): PRIMARY-CAUSE: <one-line root cause> EVIDENCE: <what you actually read this round; if nothing was read write NOT-READ / not-read + reason> NEXT_ACTION (manual/console): <a concrete manual or console step> Even when the target is not visible or nothing was found, still fill all three lines (state the cause, mark evidence NOT-READ/unverified, give the manual step); do not save a report file and do not end with "saved to .../generated".
  • Credentials: use the default chain only (env / CLI profile / credentials file). Never print or hardcode AK/SK. ABSOLUTE PROHIBITION on reading ~/.aliyun/config.json, ~/.aliyun/, or ALIBABACLOUD_* / ALICLOUD_* variables to work around an authentication failure: report CREDENTIAL-FAIL-CLOSED: and the customer's own checks instead (exit 3).

Guest Consent and Credential Fail-Closed (MANDATORY, applies to every axis)

In-guest reads are OFF by default. Cloud Assistant RunCommand executes inside the customer's instance. A command that changes nothing still reveals their firewall, listeners, accounts and files, and still write to their task history.

  • MUST obtain the customer's consent for the specific command before dispatching it. Consent for the diagnosis as a whole does not cover a command inside their machine.
  • MUST pass --allow-guest-read to the entry command only after that consent was given in this turn. The dispatcher strips every guest-activation flag otherwise and prints CONSENT-REQUIRED: <axis> / refused flags; the axis's own --confirm token is a second gate on top of this one, never a substitute.
  • MUST NOT re-run with --allow-guest-read on your own initiative. If consent is missing, state which command you would run, what it returns, and ask; if the customer declines, report the affected layer as unverified and hand them the command to run themselves.
  • MUST NOT describe a layer as clean because its guest read did not run.

Credential failure is fail-closed. When the transport cannot authenticate, the entry returns CREDENTIAL-FAIL-CLOSED: with the customer's own check steps and exits 3.

  • ABSOLUTE PROHIBITION: never read ~/.aliyun/config.json, ~/.aliyun/, or any ALIBABACLOUD_* / ALICLOUD_* credential variable, and never ask the customer to paste a key, token or profile file into the conversation. _guardrails.py refuses to spawn a command that carries those paths or names.
  • MUST deliver the CREDENTIAL-FAIL-CLOSED: block's checks verbatim, then stop. Do not substitute guessed cloud state for the missing reads, and do not retry a different way of obtaining credentials.
  • MUST NOT claim "no issue found" when the evidence was unreadable. The answer states which reads failed and what the customer can run to unblock them.

Axis Index (Module Index)

| Axis | Entry command (keep the scripts/ prefix verbatim) | Mode | Full spec | |---|---|---|---| | ipv6-multi-eni-config | python3 scripts/advanced-network-diagnostics.py --axis ipv6-multi-eni-config -- <args> | query-only | ipv6-multi-eni-config | | nic-ip-route-diagnosis | python3 scripts/advanced-network-diagnostics.py --axis nic-ip-route-diagnosis -- <args> | query-only | nic-ip-route-diagnosis | | vpn-tunnel-diagnosis | python3 scripts/advanced-network-diagnostics.py --axis vpn-tunnel-diagnosis -- <args> | query-only | vpn-tunnel-diagnosis | | nat-snat-port-mapping | python3 scripts/advanced-network-diagnostics.py --axis nat-snat-port-mapping -- <args> | query-only | nat-snat-port-mapping | | ess-scaling-group-guide | python3 scripts/advanced-network-diagnostics.py --axis ess-scaling-group-guide -- <args> | query-only | ess-scaling-group-guide | | intranet-egress | python3 scripts/advanced-network-diagnostics.py --axis intranet-egress -- <args> | query-only | intranet-egress | | network-quality-bandwidth | python3 scripts/advanced-network-diagnostics.py --axis network-quality-bandwidth -- <args> | query-only | network-quality-bandwidth | | bandwidth-modify-guide | python3 scripts/advanced-network-diagnostics.py --axis bandwidth-modify-guide -- <args> | query-only | bandwidth-modify-guide | | slb-backend-diagnosis | python3 scripts/advanced-network-diagnostics.py --axis slb-backend-diagnosis -- <args> | query-only | slb-backend-diagnosis | | vpc-connectivity-check | python3 scripts/advanced-network-diagnostics.py --axis vpc-connectivity-check -- <args> | query-only | vpc-connectivity-check | | smtp-block-diagnosis | python3 scripts/advanced-network-diagnostics.py --axis smtp-block-diagnosis -- <args> | query-only | smtp-block-diagnosis |

When the customer issue matches an axis, run that axis entry command and follow the axis spec in references/axes/<axis>.md. Do not mix axes in one report.

Trigger Conditions

See description (customer wording kept verbatim from the merged intake analysis).

Input Parameters

Per axis: region id / instance id / uid as required by the axis spec; if missing, ask the customer once, never guess.

Execution Flow

  1. Classify the symptom into one axis via the table above.
  2. Run the axis entry command in query-only mode.
  3. Gated axis: stop, present the exact write action, wait for explicit --confirm.
  4. Deliver the report in the axis spec's format.

Observability

Every CLI/API call in this skill attaches the User-Agent template AlibabaCloud-Agent-Skills/{skill}/{session-id} skill-version/{skill-version} (skill = the axis's own skill name, kept for traceability), where session-id is a 32-character hex string generated once per run and reused across all calls in that run (implemented by each axis's _cli.py under scripts/axes/).

Boundary (Do NOT use for)

  • Do NOT use for disk capacity or inode usage, expansion not taking effect (the disk-expand-diagnosis axis of alibabacloud-ecs-high-frequency-issues), instance will not start (the instance-state-diagnosis axis of alibabacloud-ecs-high-frequency-issues), slow disk IO (the disk-io-diagnosis axis of alibabacloud-ecs-disk-io-and-data-protection), VPC route table or vSwitch reachability, EIP and bandwidth billing, DNS resolution, or to apply a configuration change.
  • Do NOT use for security-group rule blocks, instance state, or disk
  • Do NOT use for plain SSH or RDP login failures with no tunnel named, cross-border path quality (use alibabacloud-network-diagnose), disk, instance-state or IO issues, or tunnel, firewall and routing changes.
  • Do NOT use for: disk expansion (the disk-expand-diagnosis axis of alibabacloud-ecs-high-frequency-issues), instance lifecycle state (the instance-state-diagnosis axis of alibabacloud-ecs-high-frequency-issues), disk IO performance (the disk-io-diagnosis axis of alibabacloud-ecs-disk-io-and-data-protection), or security group rule edits.

Axis root-cause intel (curated from resolved tickets)

ipv6-multi-eni-config

  • IPv6 unreachable from the internet is routinely caused by 0 outbound bandwidth for the IPv6 address (pay-per-bandwidth needed) or a missing egress rule - check the bandwidth setting first, then routing.

Important Notes

  • Relative paths only; all assets live in this package.
  • All network/API/subprocess calls carry timeouts.