• Managing your network through the CLI works fine when you have a handful of devices.
    You SSH into a router, type commands, read the output, and move on.

    But what happens when you have 200 devices to configure at 2 AM without a single typo?

    network administrator need to configure many devices

    Figure 1 – Configuring 200 devices manually does not scale

    The CLI Was Built for Humans

    Every CLI command you type is a text string. Every output you read is unstructured text.
    Your router does not return data in a format that a script can easily parse.

    If you want to extract the IP address of an interface from show ip interface brief, you need complex text-parsing logic.
    One minor change in the output format between IOS versions, and your script breaks.

    NETCONF solves this. Look at the difference:

    CLI approach returning unstructured text versus NETCONF approach returning structured XML mapped to YANG model

    Figure 2 – CLI vs NETCONF

    On the left, CLI returns raw text that your script must parse line by line.
    On the right, NETCONF returns structured XML that maps directly to a data model.

    No guesswork. No fragile parsing.

    Answer the question below

    What format does NETCONF use to return data to your scripts?

    What NETCONF Brings to the Table

    NETCONF (Network Configuration Protocol, RFC 6241) was built from the ground up for programmatic device management.
    Instead of sending CLI commands as plain text, it uses a fully structured approach:

    • Your data is modeled by YANG (covered in the YANG lesson)

    • Your data is encoded in XML, a structured and machine-readable format

    • Your transport is SSH, the same secure channel you already use for CLI access

    Before NETCONF

    Before NETCONF, SNMP was the primary protocol for programmatic management.
    But SNMP was designed for monitoring, not for pushing full configurations.

    Approach

    Designed for

    Data format

    Configuration support

    CLI

    Human operators

    Unstructured text

    Full, but manual

    SNMP

    Monitoring and polling

    MIB/OID (structured but rigid)

    Limited and complex

    NETCONF

    Programmatic management

    XML (structured, flexible)

    Full read and write

    Table 1 – CLI vs SNMP vs NETCONF

    Answer the question below

    What data modeling language does NETCONF rely on to define the structure of configuration data?