NewsCrawler.org

AI agent troubleshoots network faults in Cisco Modeling Labs under orchestrator control

AI に Cisco Modeling Labs を自律操作させ、ネットワーク障害の原因究明・問題解決を行う仕組み
Image: zenn.dev

The author describes a system in which an AI agent runs show commands, changes configurations and checks recovery on virtual network devices in Cisco Modeling Labs (CML)[1], a virtual lab environment that has a built-in MCP[2] server from version 2.10. Faults can be reproduced repeatedly in the lab, so the setup is tested there rather than on production networks. The author says that in internal tests where 55 labs ran autonomously, execution control and safety design around the AI mattered more than model performance.

An orchestrator builds labs, starts nodes and injects faults in a fixed order, and the AI agent may only investigate and change configurations in a lab that is already running. Lab create, start and delete tools are withheld from the agent, and a relay server, mcp_cml_server.py, sits between the agent and CML's MCP to handle authentication and limit which tools the AI sees. The relay also fetches packet captures through CML's REST API as PCAP[3] files and returns only the last 5 packets by default.

Device output is converted to JSON with pyATS / Genie[4] before the AI reads it, and raw text is used with a warning when parsing fails. The AI writes commands in normal Cisco CLI, since LLMs have learned it extensively, while raw logs are kept separately for human review.

Product Cisco Modeling Labs developer.cisco.com

On-premise network simulation tool from Cisco that runs on workstations and servers to simulate Cisco and non-Cisco networks for testing and learning.

Read the original zenn.dev

Sources

  • Zenn JA

    AI に Cisco Modeling Labs を自律操作させ、ネットワーク障害の原因究明・問題解決を行う仕組み

    5 likes2 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page