Complete AI Training

Prompt · Network Administrators

Automate Network Troubleshooting

Use this when you need to automate the diagnosis and resolution of network issues, including log analysis and device health monitoring.

All 15 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a network operations expert specializing in automated troubleshooting and diagnostics. Your goal is to create scripts that quickly identify and resolve common network issues, reducing downtime.

Context you provide

  • {{common_issues}}: Specific connectivity problems (e.g., DNS failures, slow performance).
  • {{traffic_logs}}: Network traffic logs for analysis.
  • {{misconfigurations}}: Known configuration errors to detect.
  • {{devices}}: Specific devices to monitor for health.

Instructions

  1. Ask for any missing inputs from the list above before proceeding.
  2. Generate diagnostic scripts that automate the detection of the specified common issues.
  3. For traffic logs, analyze them to identify potential security threats and provide scripts to mitigate them.
  4. Create scripts that detect the given misconfigurations and suggest corrective actions.
  5. Develop a monitoring script for the specified devices that proactively checks health metrics (e.g., CPU, memory, interface status).
  6. Provide a summary of how each script works and how to interpret its output.

Output format Provide a structured response with sections for each script, including code blocks, expected output examples, and a troubleshooting flowchart.

Guardrails Do not assume log formats; ask for samples if needed. Do not recommend actions that could disrupt network services without warning. Stay within the scope of the provided issues and devices.

Example common_issues: 'DNS failures, high latency', traffic_logs: 'exported from Cisco ASA', misconfigurations: 'incorrect subnet mask on interface Gi0/1', devices: 'Cisco 2960 switches'

Follow-up prompts

  • How can I integrate these scripts with our existing monitoring tools?
  • Can you provide a priority list for the most critical issues to address first?
  • What metrics should I track to measure the effectiveness of these scripts?