SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
AI, and Network Operations and Management

CCNA Agentic AI and Prompting: AI Agents, Guardrails and Prompt Components for Network Operations

18 min readCCNA · AI, and Network Operations and ManagementUpdated

<p>Agentic AI in network operations is the use of AI agents that pursue a goal, such as restoring reachability or explaining an alarm, by planning steps and calling tools to read from and act on the network, while generative AI produces text or configuration in response to a prompt. This lesson covers CCNA 200-301 v2.0 exam topics 5.1 and 5.2: the role of agentic AI, how agent access and changes are controlled, how to evaluate the configuration and diagnoses AI tools produce, and how to choose a prompt using its components: data classification, output format, persona and instructions. Network management approaches, SNMP, syslog and Ansible are covered in their own lessons.</p>

What you’ll learn
  • Distinguish agentic AI from generative AI and from scripted automation, and describe the role agents play in network operations
  • Explain the agent loop and judge whether an agent's next step follows from the evidence in its action log
  • Limit what an agent can do with tool scope and device credentials rather than prompt rules, applying least privilege
  • Choose guardrails for agent-driven changes: human approval, read-only actions, staged rollout, backup and rollback
  • Evaluate AI-generated configuration and AI diagnoses against IOS behaviour and show output
  • Select a prompt by its components: data classification, output format, persona and instructions

What is the difference between generative AI and agentic AI?

Generative AI produces content, such as text, configuration or a summary, in response to a prompt and then stops; agentic AI is given a goal and works towards it by planning steps, calling tools to collect data or make changes, and deciding what to do next from the results. Both are usually built on a large language model (LLM). The difference is what surrounds the model: an agent has tools, a goal and permission to take more than one step without a person typing each prompt.

Generative AI assistant (chat)Agentic AI system
Starts whenA person types a promptA goal is assigned, or an event (an alarm, a telemetry threshold, a syslog message) triggers it
OutputOne answer per prompt: text, a table, commandsA sequence of actions and their results, ending in a report, ticket or change
Access to the networkNone; it sees only what is pasted into the promptCalls tools (device APIs, show-command collectors, ticketing, monitoring) to gather data and, if allowed, to act
Next step decided byThe person, who reads the answer and writes the next promptThe agent, from what its last action returned
Main riskA wrong answer that a person might applyA wrong action taken directly on the network

Some capabilities belong to the model itself, not to the agent: writing natural-language explanations of show output, and knowledge gained from training on networking text. A plain chat assistant has those too. What an agent adds is goal decomposition (breaking a goal into steps and choosing the next one from earlier results) and tool use. A digital network assistant is an AI assistant built into a network management or monitoring platform: it answers questions about the network it manages and recommends configuration changes or fixes, and some can also act through the platform. Whatever it is called, its output is evaluated the same way as any other AI output, against the evidence, before anything is applied. Neither kind of system is guaranteed to give the identical answer to the same input every time; LLM output varies from run to run.

An agent is also different from classic scripted automation. An Embedded Event Manager (EEM) applet or a syslog forwarding rule reacts to an event by running fixed, pre-written actions. It runs fixed, pre-written logic: it cannot weigh what it found against data from other devices, change its plan from the results or write a summary in plain language. An agent can, which is why it suits jobs such as "when this WAN link flaps at night, collect data from both ends, correlate it with syslog and page the on-call engineer with a summary".

How does the agent loop work?

The agent loop is the cycle an agent repeats until its goal is met: observe (read the current state or the result of the last action), reason/plan (decide what that result means and what to do next), act (call a tool, such as running a show command through an API), then observe the result of that action and go round again. Each pass narrows the problem, the way an engineer works through a troubleshooting method one command at a time.

The loop is easy to confuse with other AI terms:

  • Prompt chaining: a person (or fixed code) sends a series of prompts, each written in advance or typed by hand. The model does not choose the next step.
  • Fine-tuning: further training that changes the model's weights. It happens offline, before deployment, not between an agent's actions.
  • Retrieval (retrieval-augmented generation, RAG): looking up documents, such as runbooks or design guides, and adding them to the model's context. An agent may use retrieval as one of its tools, but retrieval alone is not a loop.
  • Temperature: a sampling setting that makes output more or less varied. It does not add control over what an agent is allowed to do.

To judge whether an agent is on the right track, read its action log like your own troubleshooting notes. A good next step follows the most specific clue the last result produced, towards the device and feature the evidence now points at. Steps that ignore the evidence fall into three patterns: treating one healthy check as proof the whole goal is met, repeating a check whose result cannot have changed, and taking a disruptive action on a device the evidence has not implicated. For example, if an agent chasing why hosts in one VLAN cannot reach their gateway finds the access port correctly assigned and up, the next useful check is whether that VLAN crosses the uplink trunk, not another look at the same access port or a reload of the access switch.

How do AI agents reach network devices, and how is their access limited?

Agents act on the network only through the tools they are given: functions or APIs such as "get interface status", "run show command" or "push configuration". A common way to offer tools is a Model Context Protocol (MCP) server, an open standard through which an AI application discovers and calls tools and reads data sources. Whatever the tool layer, the rule is the same: what an agent can do is decided by the tools and credentials it holds, not by the instructions in its prompt.

A system-prompt rule such as "never enter configuration mode" is guidance the model usually follows, but a model can misread a request, be confused by unusual input or be manipulated by text hidden in data it reads (prompt injection). Real controls are enforced outside the model:

RequirementControl that enforces itNot enough on its own
The agent must not be able to change configurationRemove write tools (no push-config tool), and give its device account only read rights, for example AAA command authorization (TACACS+) that permits show commands only, or a low privilege levelA privilege 15 account plus a prompt rule; reviewing its commands afterwards; full rights on "only some" devices
Secrets must never reach the modelThe tool masks enable secrets, SNMP community strings, pre-shared keys and server keys before returning outputA prompt rule telling the model to ignore secrets it has already been sent
The agent may propose but not apply fixesPropose-only tools: the agent writes a change request or ticket; engineers or a separate pipeline apply itKeeping the push tool and asking the model not to use it

This is the least-privilege principle applied to software: give each agent the narrowest tools, device accounts and data it needs for its job, and widen them only deliberately. Credentials should be dedicated to the agent, so its activity is logged and attributable, rather than a shared admin account.

What guardrails should control agent-driven changes?

Agent-driven changes need the same safeguards as any production change, plus a decision about which actions may run without a person: human-in-the-loop approval for changes, free running only for read-only actions, and staging, backup and rollback to limit damage when an approved change still goes wrong.

  • Human-in-the-loop (HITL) approval: the agent proposes a change and a qualified engineer approves or rejects it before it is pushed. This is the control when "a person must decide whether each change is applied". It places the decision before the change; anything that only shapes how the agent writes, or that reacts after a change has already been made, leaves the decision with the agent.
  • Read-only versus state-changing actions: actions that only collect data (show interfaces, show logging, pinging, reading a configuration) are the natural candidates to run immediately. Anything that changes state waits for approval, including shutting or bouncing interfaces, filtering traffic and changing routing. Resets count as changes too: clearing statistics or restarting a process wipes state that an engineer may need as evidence.
  • Staged (pilot) rollout: push a change to one site or device first, verify it, then continue. This limits the blast radius of a bad change to one site rather than all of them.
  • Backup and tested rollback: save the configuration and have a known rollback before every push, so a misbehaving change can be reversed quickly.
  • Logging and explanation: record every action and ask the agent to state its reasoning. This helps review and audit, but it does not prevent or contain a bad change.

Each control answers its own question. Approval rules decide who signs off and change windows decide when; only staging decides how many devices a single push reaches, and only a backup with a rollback plan decides how fast you can undo it.

How do you evaluate AI-generated configuration before applying it?

Treat AI-generated configuration like a change written by a new colleague: check it against how IOS actually behaves before you apply it. LLMs produce plausible configuration that is often almost right, and the mistakes cluster in a few places that CCNA already teaches.

What to checkTypical AI mistakeWhat actually happens
ACLs end in an implicit denyAn ACL with only a deny line, meant to block one hostEvery other packet hits the implicit deny any, so the whole subnet is blocked. A permit any after the deny is needed.
Replace versus addswitchport trunk allowed vlan 30 to "add" VLAN 30The command replaces the allowed list, so the VLANs already on the trunk stop crossing it. switchport trunk allowed vlan add 30 appends.
Fixes that remove a protectionno spanning-tree vlan 10 to remove the 30-second startup delay on PC portsSTP is disabled for that VLAN on each switch where the command is entered, so redundant links can form a Layer 2 loop. The fix is PortFast (with BPDU Guard) on edge ports only.
Platform and releaseCommands from another Cisco operating system or releaseThe commands are rejected or behave differently. Name the platform and release in the prompt.
ScopeChanges to ports or features nobody asked aboutUnreviewed side effects. Limit the request to the object you mean to change.

Standard ACL facts to have ready when reading AI output: a standard ACL matches the source address only, written as host plus an address, an address with a wildcard mask, or any; it is applied to an interface with ip access-group in either the in or the out direction; and every ACL ends with an implicit deny. Judge an AI-written ACL by what it permits after that implicit deny.

How do you check an AI diagnosis against the evidence?

Check an AI diagnosis by asking whether every piece of evidence fits it, including the facts you already know and the AI may not, and whether another explanation fits better. A conclusion that ignores a clue, or that a simple counter-example disproves, should be rejected even if it sounds confident.

  • Duplex mismatch, not a bad cable: if a NIC is hard-coded to 100 Mb/s full duplex while the switch port is left at auto, the NIC no longer autonegotiates. The switch still detects the speed but falls back to half duplex. The switch side then shows half-duplex, collisions and late collisions, while CRC and input errors may stay at zero. Damaged pairs normally show up as CRC and input errors, and a recent passed cable test points away from the cable. "Line protocol is up" says only that the link is working at Layer 2, not that it is healthy.
  • A server is up if other clients use it: clients in one VLAN getting 169.254.x.x (APIPA) addresses while another VLAN gets leases from the same DHCP server proves the server and its service are running. The fault is on the path from the failing VLAN, commonly a missing ip helper-address on that VLAN's SVI. Relay is configured on each Layer 3 interface that faces clients, and the server picks the scope from the relay address of the interface the request arrived on. A 169.254.x.x address is one the client assigns itself when no offer arrives; it is never handed out by a server.
  • Read the output the AI read: a trunk's allowed list, the interfaces listed in OSPF, the counters on a port. If the AI's claim contradicts what the output shows, the output wins.

The habit the exam rewards is the same one good troubleshooting needs: evidence first, then the hypothesis that explains all of it, then a fix that is both correct and safe.

What does data classification mean when you write a prompt?

Data classification in a prompt means sending a given AI service only the data its approval level allows, and removing or masking anything more sensitive first. Organisations label data in levels (for example Public, Internal, Confidential and Restricted) and approve each AI service for a maximum level: a public chatbot might be approved for Public data only, while an internal or enterprise assistant under contract is approved for Confidential data.

Two decisions follow:

  1. Which service? Match the data's class to a service approved for it. If the task needs the real configuration and logs, send them to the service approved for that class. Approval belongs to the service and is settled before anything is sent; it cannot be granted by a request inside the prompt. Masking what the task does not need is how you keep the useful evidence while staying within policy.
  2. What to redact? Even to an approved service, remove credentials and restricted data that the task does not need.
Usually redact or maskUsually safe to keep (and useful)
enable secret, username … secret and line passwordsInterface names, speed and duplex settings
snmp-server community stringsSpanning-tree mode, VLAN and trunk settings
IKE/IPsec pre-shared keys (for example in a keyring)Routing protocol settings such as OSPF timers
TACACS+/RADIUS server keys, routing authentication keysLogging settings, IOS XE release from show version
Customer names or other identifying data in descriptions, public IP addresses if policy restricts themError counters and show output relevant to the problem

Masking means replacing the value, not deleting the line, so the AI still sees that the feature is configured: snmp-server community <REDACTED> RO.

How do you specify the output format in a prompt?

The output format component tells the model exactly what shape the answer must take, so it can be used without reworking: commands only, a table, a numbered list or a structured format such as JSON. Without it, the model chooses a format, and that choice can change from one reply to the next.

  • For a change ticket or a paste into a device: "Return only the IOS XE commands, in one code block, with no commentary."
  • For a script that parses the reply: name a machine-readable structure and its fields, and forbid anything else, for example "Return a JSON array of objects with the fields interface, status and vlan, and nothing else." Free-form prose, however good, changes shape from reply to reply, and a parser needs the same structure every time.
  • For people: a table of probable causes with the evidence for each, or a short summary first and detail afterwards.

Output format is separate from length. A word or sentence limit controls size, but it does not make the reply parseable or change who it is written for.

What are persona and instructions in a prompt?

The persona sets the role the model takes and the audience it writes for; the instructions state the task itself, with the context and limits it needs. The CCNA exam topics list prompt components such as data classification, output format, persona and instructions.

ComponentAnswers the questionExample
PersonaWho is speaking, and to whom?"You are a network architect advising a trading firm where every minute of outage is costly." "Explain this to a student in their first networking course."
Instructions (and context)What exactly should be done, on what, within what limits?"Using the output below, find why VLAN 50 traffic does not cross the uplink from SW3 (IOS XE 17.12) to SW1. Limit any change to Te1/1/1."
Output formatIn what shape should the answer come back?"Commands only, one code block." "JSON with these fields."
Data classificationWhat may this service see?Approved service for the data's class; secrets masked

Persona is the lever when the answer is accurate but pitched at the wrong reader: telling the model to write for a newcomer changes vocabulary and depth. It is not a substitute for the facts: an "expert" persona does not tell the model which platform you run or which interface to touch.

Good instructions are specific in four ways:

  • The task: state the action and its object (diagnose, explain, compare, generate commands) and tie it to the evidence you supply. An open-ended or vague task gets a generic answer.
  • Platform and release: name the operating system and version (for example IOS XE 17.12) so the commands match the device.
  • Evidence: include the relevant show output or configuration (classified and masked as required) and say it is the current state.
  • Scope: limit the change to the device, interface or feature you mean, so the model does not "fix" things you did not ask about.

How do you choose the best prompt for a network task?

Choose the prompt whose components all match the situation: the data is allowed for that service, the instruction asks for the task you actually need with the platform, evidence and scope stated, the persona fits the reader, and the output format fits where the answer is going. When comparing candidate prompts, find the one problem in the scenario (wrong service for the data, wrong format for a parser, wrong audience, missing platform, unlimited scope) and pick the change that fixes that problem directly.

A short worked contrast: "Help with my trunk." returns a general explanation of trunking because it has no platform, no evidence and no specific task. A strong version names the devices and release, states the symptom, attaches the relevant output, asks for the cause to be identified from that output and, if a fix is wanted, limits it and asks for commands only. Each added part does a different job; adding more of one part (a grander persona, a longer request) does not make up for a missing one.

Finally, every answer is still a draft. Prompting well raises the quality of AI output; it does not remove the need to evaluate that output against the evidence before anything reaches a production device.

Tip. Questions on this topic are scenarios. Some describe an AI tool or an agent's action log and ask what kind of system it is, what the agent should do next, or how its access and changes should be controlled under a stated constraint, such as no way to change configuration, secrets never reaching the model, an engineer deciding each change, or limiting how many sites a bad change can affect. Others show configuration or show output with an AI recommendation or diagnosis and ask you to evaluate it, which draws on CCNA knowledge from other domains (ACLs, trunks, spanning tree, duplex, DHCP relay, OSPF). Prompt items give a goal and a problem, such as data policy, a parser failing, an audience that cannot follow the answer or a reply that used the wrong platform, and ask which prompt or prompt component fixes it. Some items ask you to select two answers.

Key takeaways
  • Generative AI answers a prompt; agentic AI pursues a goal by planning steps and calling tools, and can be triggered by events without a person starting it.
  • The agent loop is observe, reason/plan, act through a tool, then observe the result, repeated until the goal is met; the agent chooses each next step.
  • An agent's real permissions are its tools and credentials: remove write tools, use read-only (show-only) device accounts and mask secrets in tool output. Prompt rules are not enforcement.
  • Human-in-the-loop approval gives a person the decision on each change; read-only data collection is the safe class of action to run without approval.
  • Staged rollout to one site limits the blast radius, and a backup with a tested rollback speeds recovery.
  • Check AI configuration for implicit deny, replace-versus-add commands, fixes that remove protections, the wrong platform and changes outside the requested scope.
  • Reject an AI diagnosis when any evidence contradicts it, such as late collisions on a half-duplex port or a DHCP server that still serves other VLANs.
  • Data classification decides which AI service may receive the data and what must be masked: secrets, keys, community strings and customer-identifying data.
  • Output format makes replies usable (commands only, JSON with named fields); persona sets role and audience; instructions give the task, platform and release, evidence and scope.

Frequently asked questions

What is the difference between agentic AI and generative AI in networking?

Generative AI produces one piece of content, such as an explanation or a configuration snippet, each time a person sends a prompt. Agentic AI is given a goal and works towards it on its own: it plans steps, calls tools such as device APIs to collect data or make changes, and chooses its next step from the results. Both normally use a large language model; the agent adds tools and multi-step autonomy.

Can a system prompt stop an AI agent from changing network configuration?

No. A system prompt only guides the model, which can misread a request or be manipulated by input it reads. To guarantee an AI agent cannot change configuration, remove any configuration-push tool and give the agent a device account that is authorised for read-only commands, for example TACACS+ command authorisation that permits show commands only.

Which AI agent actions can safely run without human approval?

Read-only data collection, such as running show commands, reading logs or reading configuration, is the usual class of AI agent action allowed to run immediately. Anything that changes device state should wait for human approval, including shutting interfaces, applying ACLs, changing routing and clearing counters or processes, which can also erase troubleshooting evidence.

What should be removed from a Cisco configuration before pasting it into an AI chatbot?

Remove or mask credentials and restricted data before sharing a Cisco configuration with an AI service: enable and user secrets, line passwords, SNMP community strings, IKE/IPsec pre-shared keys, TACACS+ or RADIUS keys and routing authentication keys, plus any customer-identifying data in descriptions. Also check that the service is approved for the configuration's data classification at all.

What are the components of a prompt for network operations?

The CCNA exam topics list prompt components such as data classification (what data the AI service may receive), output format (the shape of the reply, such as commands only or JSON), persona (the role the model takes and the audience it writes for) and instructions (the specific task with its context, such as platform and release, evidence and scope).

How do you get output from a generative AI model that a script can parse?

To get parseable output from a generative AI model, ask for a structured format and name its fields, for example a JSON array of objects with interface, status and vlan fields, and tell the model to return nothing else. Free-form prose changes shape from reply to reply, which breaks parsing.

How do you limit the damage if an AI agent pushes a bad change?

Limit the damage from a bad AI agent change by staging it: apply it to one pilot site or device, verify it and only then continue to the rest. Before every push, save a configuration backup and have a tested rollback ready so the change can be reversed quickly. Staging limits how many sites one change reaches; the backup and rollback limit how long it lasts.

Source

This lesson covers the "AI, and Network Operations and Management" domain of the official CCNA exam guide. Vendors revise their guides — check the source for the current version.

Test yourself on this topic
Practice now

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?