ciscoconfparse 1.3
  • Site
      • Introduction
      • History and Python Apologetic
      • CiscoConfParse Installation and Python Basics
      • CiscoConfParse Tutorial
      • CiscoConfParse Legacy Syntax
      • License and Copyright
      • API
  • Page
      • CiscoConfParse Tutorial
  • « CiscoConfPars...
  • CiscoConfPars... »
  • Source
  • CiscoConfParse Tutorial
  • « CiscoConfPars...
  • CiscoConfPars... »
  • Source

    CiscoConfParse Tutorial¶

    This is a brief tutorial which will cover the features that most CiscoConfParse users care about. We make a couple of assumptions throughout this tutorial…

    • You already know a scripting language like Python or Perl
    • You (naturally) have a basic understanding of Cisco IOS

    Contents:

    • CiscoConfParse Fundamentals
      • IOS Parent-child relationships
      • IOSCfgLine objects
        • Example: Retrieving text from an IOSCfgLine object
      • Baseline configuration for these examples
      • Example Usage: Finding interface names that match a substring
      • Example Usage: Finding parents with a specific child
        • Method 1: for-loop to iterate over objects and search children
        • Method 2: list-comprehension to iterate over objects and search children
        • Method 3: find_objects_w_child()
      • Example Usage: Finding parents without a specific child
    • Example Usage: A Contrived Configuration Audit
    • Example Usage: Build configuration diffs
      • Baseline Configuration
      • Diff Script

    Back to top

    © Copyright 2007-2018, David Michael Pennington <mike /at\ pennington [dot] net>.
    Created using Sphinx 1.7.1.