
Section 1 Introduction & Basics of Python
Introduction
Let's Learn Python
Python Conceptual Hierarchy
Python Data types Strings
Python Data type Number
Pythyon Strings inbuilt functions
Python Conditions
Python Lists
Python Dictionaries
Python Loops For Loop
Python Loops While Loop
Python Fuctions
Python Working with Files
Section 2 Python Basic Network Automation
Learn how to telnet Network Device
Loopback _ Eigrp Configuration
Create Vlan to Switch
Telnet to Multiple devices _ Vlan config 01
Telnet to Multiple devices _ Vlan config 02
Create 10 Vlans with Loop Condition
Take the Backup of Networking Devices
SSH via Netmiko
Do the SSH via Netmiko
Add more Commands via Netmiko
SSH to Multiple Devices
Run Bulk Commands via SSH
Explore python as an interpreter-level language, its ease of learning, and its role in network automation across Linux, Windows, and macOS.
Explore Python's conceptual hierarchy, from objects and dynamic variables to type, methods, and help utilities, with a focus on Python 3 and network device configuration.
Explore how to use a Python virtual environment within Cisco DNA Center automation to manage multiple Python versions, install dependencies, clone code, and run API programs.
Explore Python strings as a data type, using quotes and type checks. Learn to concatenate, print multi-line outputs, and apply key string methods on IP addresses and masks.
Learn Python data types and number operations, including integers, division, absolute value, and variable assignments, plus boolean logic with and, or, not for conditional expressions.
Explore Python strings inbuilt functions with practical examples, including upper, split, and replace, and learn consistent quoting, list storage, and basic string manipulation.
Explore Python conditions by using equal, not equal, greater than, and less than operators, implement if, elif, and else blocks with indentation and prints for networking device scripts.
Master Python lists for network automation by learning list creation, indexing (including negative indices), and common methods such as append, insert, pop, extend, count, and sort to manage device collections.
Learn how Python dictionaries store key-value pairs, their mutability, and practical use with update, pop, and get methods, plus accessing keys, values, and items.
Explore for loops and loop logic to iterate over device lists and inventories, printing device types and sanitized ip addresses one by one, with practical Python examples for network devices.
Explore the Python while loop in Cisco DNA Center automation, including conditional iteration, printing values, and using increment and break to avoid infinite loops.
Learn to define your own functions, pass arguments, and reuse code, including nested calls, returning lists, and using inbuilt functions like devices and length to automate Cisco DNA Center tasks.
Learn how to use Python to work with files, including reading and writing permissions, reading lines, and loading configurations from a file to compare device configs with a master copy.
Build the lab from scratch by installing the required software, setting up VirtualBox and GNS3, importing the DVM, and configuring host-only adapters to start the lab.
Set up a GNS3 based lab for Cisco DNA Center Automation, using VirtualBox, remote and local servers, templates, and Docker to deploy and test network automation with Cisco devices.
Build a basic lab by configuring a local switch and an automation tool, connect to cloud or home lab resources, set IPs and credentials, and verify connectivity with ping.
Install and verify Python in the lab, update apk, install Python and its plugins, and set up pip to complete the lab environment before tackling Lennix basics.
Learn to automate telnet into a network device with Python, using a library to drive login prompts, enter enable mode, and encode commands in ASCII.
Configure two loopback interfaces and enable EIGRP on a remote device using an automation tool, assign IP addresses, set the autonomous system, and verify the configuration.
Use the automation tool to create vlans on the switch, assign names and ip addresses, then verify with ping and show commands.
Automate logins to multiple switches with Python via telnet, using an inventory-driven loop and conditional logic to apply VLAN configurations across devices.
Learn to automate Telnet-based configuration across multiple switches using for and if logic, proper indentation, and login-driven VLAN configuration sequences to achieve consistent results.
Demonstrate replacing manual VLAN creation with a for loop in the automation engine script, iterating 1–10 to build commands, while managing indentation, encoding, and candidate configuration.
Take network device backups by using a script that reads inventory, logs in with credentials, and captures the running configuration, then saves outputs for restore or analysis.
Learn to use the netmiko library to establish secure SSH connections to Cisco and other vendor devices, replacing insecure methods, and demonstrate running commands and configurations on supported platforms.
Log into switches, configure ssh with netmiko, generate rsa keys, set ip domain name, and run a python 3 script to automate show commands.
Extend a netmiko automation lab by adding interface and loopback IPs, creating VLANs from 40 to 50, and printing configuration outputs to validate automated Cisco DNA Center workflows.
Automate SSH access to multiple switches with a Python script, manage a device inventory, use a for loop and net connect to configure VLANs 80-90 across all switches.
Configure and run bulk commands via ssh to automate network devices using a device config file, a switches dictionary, and interface settings through an automation engine.
Explore basics of the Cisco DNA Center API, log into DNA, and integrate the API with Python to push templates, manage device lifecycles, and explore enterprise automation and security integration.
Learn how Cisco DNA Center integrates internet-based infrastructure with an open platform and RESTful APIs to improve network visibility and reduce total cost of ownership.
Explore Cisco DNA Center automation by using the DNA API, enabling REST API access, and leveraging the developer toolkit to run EPA for topology and policy insights.
Learn to obtain an authentication token with a POST request to the Cisco DNA Center API and use it for subsequent lab APIs in sandboxes.
Explore Cisco DNA Center automation with programs to check IP and IP network, retrieve device licenses, list devices, generate CSV reports, and locate clients by IP or MAC on switches.
Explore how to fetch all devices from Cisco DNA Center, handle pagination beyond 500, and generate table and CSP output with headers like hostname, device type, and software version.
Learn to fetch license information from Cisco DNA Center using APIs, filter licenses in use, and assemble device details—hostname, device type, serial number—from the DNA output.
Identify wired or wireless clients using IP and MAC queries in Cisco DNA Center automation. The IP client info program retrieves hostname, model, device type, and interface for precise location.
Demonstrate switchport inventory in Cisco DNA Center automation, comparing license info with switchboard inventory, and collect hostname, device type, serial number, and port details via an API.
Identify out-of-sync and non-compliant devices by comparing running vs startup configurations, using DNA Center APIs and archive config diffs to reveal missing lines and guide corrections.
Learn to automate device provisioning with a template runner: create and update projects and templates, push templates to devices, verify hostname and IP duplication, and confirm deployment status.
Explore the DNAC life-cycle app, which retrieves security advisories and hardware and software details, integrates with ServiceNow to trigger events, and generates an Excel report and a summary page.
Compare traditional networks with software-defined networking using Cisco DNA Center Automation, and learn to discover devices, push templates, and troubleshoot via a centralized control plane API-driven approach.
Explore the features and capabilities of Cisco DNA Center Automation, including automation, built-in analytics, policy integration, and network assurance APIs, with support for events, notifications, and third-party integrations.
Follow the network assurance workflow in DNA Center, from discovering devices to provisioning, assigning them to sites, applying templates, and validating health and risks in the assurance dashboard.
Discover how Cisco DNA Center integrates internet-based infrastructure with an open platform via RESTful APIs, enabling IT management integration, health checks, and software updates.
Explore the DNA Center API and EPA references by accessing documentation, enabling the REST API, and using the developer toolkit to handle authentication, site management, topology, and policy operations.
Fetch an authentication token via a post request and print it for use in subsequent api calls, using a python library and sandbox configurations.
Cisco DNA Center enables multivendor support by managing non-Cisco devices via third-party SDKs, while acting as the single source of truth with discovery, inventory, topology, policy, and assurance.
Explore how DNA Center automation integrates with ITSM and management tools and sends events and notifications to external web servers via API-based monitoring and webhooks.
Learn how to implement API requests for Cisco DNA Center to accomplish network management tasks using the DNA Center API toolkit, exploring intent-based APIs, site management, topology, and Python integration.
Explore how to use Cisco DNA Center command runner APIs with Python to fetch supported commands, execute them on devices, and manage latency and timeouts.
Learn how to use Cisco DNA Center site APIs to count, list, create, and delete sites in DNA Center, including name, type, and address details.
Explore network discovery with Cisco dna center automation. Use device APIs and Python to run discoveries, retrieve results by range, and export data as csv.
Learn how to back up Cisco DNA Center managed devices using the DNA Center SDK, enumerate devices, fetch configurations, save backups to a sandbox folder, and generate device reports.
learn to use templated api with a script to create a project, define a template, and push it to devices via deployment in DNA Center.
Learn to troubleshoot with Cisco DNA Center automation using the assurance API to assess client, network, and security health, and perform hop-by-hop flow analysis with ingress and egress interfaces.
No more box-by-box configuration and deployment. Using intent-based policy, Cisco DNA automation capabilities transform previously manual onboarding, configuration, provisioning, and software management processes to simplify and scale network operations and greatly minimize configuration errors.
Features and benefits
Cisco DNA automation replaces manual chores with a more agile and effective process based on four sets of capabilities: visibility, intent, deployment, and management.
Visibility
Automatically discover devices to get end-to-end network visibility and a network inventory.
Intent
Define how you intend your network to work, and translate that intent into automation.
Deployment
No more guessing about configurations. Simply plug in a network device to onboard it automatically.
Management
Help ensure end-to-end network consistency and performance with the right software image management for every device.
Components of Cisco DNA automation
Cisco DNA software
Help enable continuous innovation through software updates. Choose from three licensing tiers for your access points, switches, and routers.
Cisco DNA Center
Manage automation and assurance for your entire network from a central dashboard.
Cisco DNA infrastructure
Deploy Cisco software-programmable access points, switches, routers, and other devices to help enable automation capabilities.
Cisco services
Get more from your intent-based network with Cisco Customer Experience services.
Cisco DevNet
Learn how to extend automation across the enterprise via open APIs.
Cisco DNA Center security
Integrate with Cisco security solutions such as Umbrella, Stealthwatch, firewalls, and wIPS.