DEV Community

Cover image for Network Health Check & Diagram for Families
Adam Sherengos
Adam Sherengos

Posted on

Network Health Check & Diagram for Families

This is a submission for the Runner H "AI Agent Prompting" Challenge.

πŸ’‘ What I Built
I created a prompt for Runner H that generates a beginner-friendly, text-based network diagram of a home lab. The diagram clearly labels devices like a router, switch, firewall, and three computers to help beginners visualize basic network topology.

In addition to the diagram, the agent generates a Python script that pings each device and reports which are online or offline. The code includes detailed comments so beginners can understand each part.

Finally, to make the learning process more fun, I included a Star Wars analogy β€” the script works like checking the "shield generators" of your home network to make sure everything’s protected and operational.

✨ This solution addresses the challenge of making networking concepts accessible and engaging for beginners, parents, kids, and hobbyists β€” combining visualization, hands-on scripting, and storytelling.

πŸŽ₯ Demo
Here are some highlights of the output:

βœ… Text-Based Network Diagram

scss
Copy
Edit
[Router] ---(Ethernet)---> [Firewall] ---(Ethernet)---> [Switch]
---(Wi-Fi)---> [Computer 1]
---(Wi-Fi)---> [Computer 2]
---(Wi-Fi)---> [Computer 3]
βœ… Beginner-Friendly Python Script (snippet)

python
Copy
Edit

List of devices to check

devices = ["192.168.1.1", "192.168.1.2", "192.168.1.3"]

Loop through each device and ping it

for device in devices:
response = os.system(f"ping -c 1 {device}")
if response == 0:
print(f"{device} is online.")
else:
print(f"{device} is offline.")
βœ… Sample Output

csharp
Copy
Edit
192.168.1.1 is online.
192.168.1.2 is offline.
192.168.1.3 is online.
βœ… Star Wars Analogy
β€œThis script is like a Rebel technician checking the Death Star’s shield generators β€” making sure each system is up and ready to defend your network from incoming threats!”

πŸ“½ Demo Video:
πŸ‘‰ https://youtu.be/tChXouRxKMs

βš™οΈ How I Used Runner H
Rather than creating multiple separate prompts or complex modules, I designed one comprehensive prompt that outputs everything needed in one response:

A clear, beginner-friendly, text-based network diagram

A fully commented Python script that pings devices and reports status

A fun Star Wars-themed analogy to make the concept memorable and engaging

This approach showcases how a single well-crafted prompt can produce a multi-part, practical, and educational tool all at once, making it easy for beginners and families to learn and monitor their home networks without getting overwhelmed.

By combining visualization, scripting, and storytelling into one output, Runner H demonstrates its power as an AI agent capable of simplifying and streamlining technical tasks into accessible, digestible chunks.

Here’s the exact prompt I gave Runner H:

"Generate a simple text-based network diagram of a home lab showing a router, switch, firewall, and three computers. Label each device clearly, like a map for beginners.
Then, create a beginner-friendly Python script that pings each device in the network and outputs a status report saying which devices are online or offline.
Include comments in the code to help a beginner understand what each part does.
Finally, provide a simple explanation using a Star Wars analogy about how this script helps check the 'shield generators' of the network."

Runner H returned a clear, complete package β€” the network diagram, a well-commented ping script, and the Star Wars explanation β€” all ready for use.

πŸš€ Use Case & Impact
This solution is helpful for:

Parents and kids learning networking fundamentals together

Home lab enthusiasts monitoring device connectivity

Beginners studying network topology and Python scripting

Anyone wanting a clear visualization of their network alongside a practical health check

By combining visual aids, hands-on scripting, and storytelling, this tool helps simplify complex concepts and encourages proactive network management. It makes technical learning more fun, especially for families.

❀️ Social Love
I shared this submission on Twitter:
πŸ‘‰ https://x.com/SherengosAdam/status/1941221483344478560

πŸ™ Thank You
Thank you to the Runner H challenge organizers and community for this fantastic opportunity!

Top comments (0)