شعار Alibabacloud Ecs Linux Os Troubleshooting

Alibabacloud Ecs Linux Os Troubleshooting

مؤسسة
aliyun
alibabacloud-ecs-linux-os-troubleshooting

Troubleshoot an Alibaba Cloud ECS Linux OS. Use when a user needs to diagnose a specified ECS Linux instance, such as instance stuck in Starting, boot stuck, SSH/VNC/Workbench login failure, network issues, disk/FS issues, performance anomalies, suspected mining or hidden processes, crash/hang, clock drift, or configuration not taking effect.

نظرة عامة

الناشرaliyun
المستودعalibabacloud-ecs-troubleshoot-skills
اسم المهارةalibabacloud-ecs-linux-os-troubleshooting
النجوم
147
التفريعات
11
الملفات المرفقة
52
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 52

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها aliyun على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Alibabacloud Ecs Linux Os Troubleshooting في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/aliyun/alibabacloud-ecs-troubleshoot-skills/tree/main/skills/alibabacloud-ecs-linux-os-troubleshooting
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aliyun/alibabacloud-ecs-troubleshoot-skills.git /tmp/alibabacloud-ecs-troubleshoot-skills
mkdir -p .claude/skills
cp -r /tmp/alibabacloud-ecs-troubleshoot-skills/skills/alibabacloud-ecs-linux-os-troubleshooting .claude/skills/alibabacloud-ecs-linux-os-troubleshooting
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Alibabacloud Ecs Linux Os Troubleshooting في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Alibabacloud Ecs Linux Os Troubleshooting تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Alibabacloud Ecs Linux Os Troubleshooting بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

ECS Linux Troubleshooting

This skill applies only to Linux GuestOS on Alibaba Cloud ECS and diagnoses abnormal issues on the Alibaba Cloud ECS Linux instance specified by the user (the target instance). The agent may run on the target instance or another machine, and uses the aliyun CLI to remotely diagnose and collect data from the target ECS instance.

When to Use This Skill

  • The troubleshooting target specified by the user is an Alibaba Cloud ECS Linux instance.
  • The user's description involves abnormal issues such as mismatches between startup/running status and OS state, remote login failures, network connectivity failures, disk expansion/mount issues, performance anomalies, crashes or hangs, clock drift, or configurations not taking effect.
  • Not applicable: non-Alibaba Cloud ECS, non-Linux GuestOS, other clouds or physical machines; purely control-plane, billing, or API-side issues with no GuestOS involvement.

Principles and Requirements

  1. Troubleshooting target = the Alibaba Cloud ECS Linux instance specified by the user: all checks and conclusions must target that one machine. Commands and paths in references/ are written for the in-instance environment.
  2. Use the aliyun CLI for remote diagnosis and data collection: except for the steps in references/utils/guestos-pe-prep.md, all other steps may only use the subcommands listed in references/aliyun-cli-cheatsheet.md. Do not call subcommands that are not listed there.
  3. Clarify the problem before investigating: strictly follow the troubleshooting workflow. First narrow the user's description to a phenomenon domain, then follow the corresponding troubleshooting document. Do not skip phases or reorder them, and do not draw a conclusion or stop the workflow early when the evidence does not uniquely point to a single root cause.
  4. Prefer the commands described in the references/<slug>.md troubleshooting document. Do not blindly guess commands on your own.
  5. External reference material: when a troubleshooting document contains a URL, such as an Alibaba Cloud help page, you must fetch the content of that link and use it as the basis for the investigation. Do not judge based only on the link title or on prior knowledge.
  6. Multiple-instance scenarios: troubleshoot each ECS instance separately. Do not use results from instance A to draw conclusions about instance B.
  7. Least-privilege permissions: before running this skill, ensure the caller has only the required RAM actions for the selected workflow. Use references/ram-policies.md as the permission source of truth.

Progress Checklist

Before starting the troubleshooting workflow, create the following 6 phase tasks with the progress checklist tool. After completing each phase, immediately mark the corresponding task as complete before moving to the next phase:

  1. Phase 1: Clarify the abnormal issue
  2. Phase 2: Classify into a phenomenon domain
  3. Phase 3: Confirm whether it is a GuestOS issue
  4. Phase 4: Diagnostic tool investigation
  5. Phase 5: GuestOS-internal component investigation
  6. Phase 6: Summary and recommendations

Input Validation and Execution Safety

Validate all user-provided and model-derived values before placing them in an aliyun CLI command because invalid identifiers or shell metacharacters can target the wrong resource or change command meaning.

  • Business region (--biz-region-id): allow only Alibaba Cloud region identifiers such as cn-hangzhou; use ^[a-z]+-[a-z]+-[a-z0-9]+$ as the baseline pattern.
  • ECS instance IDs, disk IDs, image IDs, security group IDs, ENI IDs, diagnostic report IDs, and invoke IDs: require the expected product prefix and reject whitespace, quotes, shell metacharacters, command substitution, or newlines.
  • JSON parameters such as InstanceIds and AdditionalOptions: build them with a JSON serializer or a quoted literal verified as valid JSON; do not concatenate untrusted fragments.
  • Time windows: accept only ISO 8601 timestamps and ensure StartTime <= EndTime.
  • Passwords and key-pair names in offline rollback: treat them as sensitive inputs, never echo them in the final report, and pass them only after explicit user confirmation.
  • If any value cannot be validated, stop that command path and ask the user for a corrected value.

Use bounded waits for all polling operations because cloud operations may stay pending or fail silently. Default policy: poll every 10 to 20 seconds, stop after 10 minutes or 30 attempts, and then report the last observed status and the next safe action. A referenced document may define a shorter timeout for a specific operation.

Observability

Every aliyun CLI command must include the following user-agent parameter:

bash
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-linux-os-troubleshooting/{session-id}

Requirements:

  1. Generate or obtain one non-empty session-id for each troubleshooting session.
  2. Reuse the same session-id for all aliyun CLI commands within the same troubleshooting session.
  3. Do not reuse a session-id across different troubleshooting sessions.
  4. Include the parameter in every example and every actual aliyun CLI command execution.

Example:

bash
aliyun ecs describe-instances \
  --biz-region-id <region-id> \
  --instance-ids '["<instance-id>"]' \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-linux-os-troubleshooting/<session-id>

Troubleshooting Workflow

Execute the phases in order.

Phase 1: Clarify the Abnormal Issue

First, call DescribeInstances to query the instance information:

  • Success: record the instance metadata, such as region, image, and status, then continue with the normal workflow below.
  • Failure (an error or an empty result is returned): ask the user "Has this instance been released?"
    • The user confirms it is released: enter degraded mode, see references/degraded-mode.md.
    • The user denies it but confirms the instance ID is correct: also enter degraded mode.

Before opening any domain document, if the user's issue description is vague, first refine the issue through multi-turn dialogue. Use the aliyun CLI and questions to the user to complete the evidence and related environment information for when the abnormal issue occurred. This usually includes the following information:

DimensionInformation to CompleteHow to Obtain
Basic instance information, status, and specificationInstance statusCall aliyun CLI as needed
ScopeWhether it is reproducible; start and end time; whether there were changes, restarts, scale-out/scale-in, or configuration changes when the abnormal issue occurredAsk the user
Access channelWhether VNC is available; whether SSH/Workbench/Cloud Assistant is availableAsk the user
Network directionExternal source to instance service port, instance to external network, only intra-VPC connectivity, etc.Ask the user
SymptomsOriginal error messages and screenshotsAsk the user

Note: the instance status and the GuestOS status may be inconsistent. Even if the instance status is Running, the GuestOS kernel may have failed to start. This phase only completes the environment information; do not make any root cause judgment or output any conclusion.

Phase 2: Classify into a Phenomenon Domain

  1. Open references/symptom-to-domain.md, and select the phenomenon domain category and phenomenon domain based on the clarified abnormal issue description.
  2. Output one phenomenon domain and record the corresponding troubleshooting document path references/<slug>.md. At the same time, ask the user to confirm whether the phenomenon domain is accurate. Enter Phase 3 only after it is confirmed as accurate. If the user says it is inaccurate, exclude the phenomenon domain selected in step 2 and show the TOP 3 secondary phenomenon domains to the user for confirmation. If the user says none of the secondary phenomenon domains applies, stop all subsequent workflows and recommend that the user submit an Alibaba Cloud support ticket.

Phase 3: Confirm Whether It Is a GuestOS Issue

After opening the selected references/<slug>.md, complete the steps in the initial "Confirm Whether It Is a GuestOS Issue" section in order. Requirements:

  1. You must confirm that it is a GuestOS issue before entering any subsequent steps. Otherwise, directly return the abnormal issue conclusion to the user.
  2. Prefer completing the judgment yourself in order: for any data that can be obtained through the aliyun CLI, call it directly. Do not ask the user before attempting to obtain the data through the aliyun CLI. Ask the user only when the information can genuinely only be obtained from the console or the user's client-side environment.
  3. Do not enter any subsequent steps before completing the judgment.

Phase 4: Diagnostic Tool Investigation

Before entering detailed domain-specific investigation, first perform a quick investigation using the diagnostic tools recommended for the phenomenon domain.

  1. Check the "Recommended Diagnostic Metric Sets" column for the current phenomenon domain in references/phenomenon-domain.md to determine the list of diagnostic metric sets to call. If the recommended column is "—" (no recommended diagnostic metric set), skip this phase and enter Phase 5 directly.
  2. First, ask the user to confirm whether to run the recommended diagnostic metric sets. If the user agrees, use the diagnostic metric set list obtained in step 1 and, in order, follow references/create-diagnostic-report.md to create resource diagnostic reports and run diagnostics. If the user does not agree, skip this phase. Notes:
    1. If a diagnostic metric set requires additional input parameters, first query related data through the aliyun CLI. Ask the user to provide the data only when it cannot be obtained through the aliyun CLI.
    2. If the diagnostic metric set does not exist or resource diagnostic report creation fails, first explain the situation to the user, then skip this phase and enter the next phase.
  3. View the resource diagnostic report details. If the diagnostic report already contains diagnostic items strongly related to the abnormal issue, enter Phase 6 directly. Otherwise, carry the diagnostic report output into subsequent phases and analyze it together with the domain-specific workflow.

Phase 5: GuestOS-Internal Component Investigation

Read the GuestOS-internal section of references/<slug>.md:

  1. Read the Related Components list. These are the GuestOS components that may be involved in the current phenomenon domain, such as NICs, routes, DNS, firewalls, sshd, PAM, disks, and the kernel.
  2. Follow the Issue Localization steps in the document. When an investigation step points to a component investigation document link such as references/utils/<component-slug>.md, open the referenced document and perform component investigation in order. Requirements: collect data through the aliyun CLI (when GuestOS-internal data for the current phenomenon domain needs to be collected, use the plugin command aliyun ecs run-command to call the RunCommand OpenAPI action). Commands should be as detailed as possible, and should collect all data needed for this phenomenon domain in one run whenever possible to reduce the number of RunCommand executions.
  3. Do not perform any remediation operation. Only provide conclusions and remediation recommendations.

Phase 6: Summary and Recommendations

Finally, provide a summary and recommendations based on one of the following two situations:

  • Root cause identified: provide a structured diagnosis report explaining the phenomenon domain, the evidence chain from the investigation process, and the conclusion, and provide recommendations to fix or mitigate the issue. Requirements:
    1. You must generate the diagnosis report using the template in references/diagnosis-report-template.md.
    2. Make it clear and readable; avoid vague statements.
    3. When multiple root causes exist, analyze their relationships: whether one root cause caused another, or whether multiple root causes jointly caused the issue.
  • Root cause still uncertain: list the candidate root causes that have been ruled out and provide next-step troubleshooting recommendations.

Output contract:

  • Always include the target instance, region, phenomenon domain, confirmed issue boundary, key evidence, conclusion confidence, and recommended next actions.
  • For every conclusion, cite the command output, diagnostic report item, console evidence, or user-provided fact that supports it.
  • If remediation is recommended, describe the risk and expected impact, but do not execute remediation unless the user explicitly requests it.
  • Do not include secrets, passwords, access keys, or full sensitive command outputs in the report.

Workflow Overview

Reference Document Index

PathPurpose
symptom-to-domain.mdNatural language to phenomenon-domain routing
phenomenon-domain.mdAuthoritative table: unique identifier, concept, typical symptoms, slug, and recommended diagnostic tools
aliyun-cli-cheatsheet.mdaliyun CLI quick reference (allowlisted subcommands)
ram-policies.mdLeast-privilege RAM actions required by the workflows
create-diagnostic-report.mdResource diagnostic report creation and interpretation
degraded-mode.mdAvailable evidence and phase behavior when the instance is released or unreachable
diagnosis-report-template.mdDiagnosis report template (used in Phase 6)
references/<slug>.mdComplete troubleshooting workflows for each phenomenon domain
references/utils/<component-slug>.mdGuestOS component-level investigation
utils/guestos-console-log.mdSerial console log acquisition, keyword search, and context expansion
utils/cloudmonitor-metrics.mdCloudMonitor metric queries and per-domain metric selection
utils/guestos-malware-mining.mdMining trojan and hidden process investigation

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Alibabacloud Ecs Linux Os Troubleshooting؟

Troubleshoot an Alibaba Cloud ECS Linux OS. Use when a user needs to diagnose a specified ECS Linux instance, such as instance stuck in Starting, boot stuck, SSH/VNC/Workbench login failure, network issues, disk/FS issues, performance anomalies, suspected mining or hidden processes, crash/hang, clock drift, or configuration not taking effect.

لماذا تستخدم Alibabacloud Ecs Linux Os Troubleshooting على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Alibabacloud Ecs Linux Os Troubleshooting عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Alibabacloud Ecs Linux Os Troubleshooting في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/aliyun/alibabacloud-ecs-troubleshoot-skills/tree/main/skills/alibabacloud-ecs-linux-os-troubleshooting. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Alibabacloud Ecs Linux Os Troubleshooting؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Alibabacloud Ecs Linux Os Troubleshooting؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Alibabacloud Ecs Linux Os Troubleshooting معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Alibabacloud Ecs Linux Os Troubleshooting مجانية؟

نعم. نشرها aliyun على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇