pyATS Library: Genie

Getting started

  • Introduction
  • Installation
  • Getting Started

Documentation

  • User Guide
  • pyATS Clean
  • pyATS Blitz
  • pyATS Health Check
  • Genie Command Line
  • Genie Solutions
  • Internal Documentation

Library

  • Available APIs
  • Available Clean Stages
  • Available Models (Conf/Ops)
  • Available Parsers
  • Available Triggers
  • Available Verifications

Developer Docs

  • Library Abstraction
  • Metaparsers
  • CLI Auto-Parser
    • Introduction
    • Tabular parsing
    • Non-Tabular parsing
    • Advanced
    • API Documentation
  • Predicates

Reference

  • Roadmap
  • Changelog
pyATS Library: Genie
  • CLI Auto-Parser

CLI Auto-Parser

The Genie Parsergen package (or simply genie.parsergen) provides a one-step parsing mechanism that is capable of parsing dynamic tabular and non-tabular device outputs into noticeably fewer lines of code compared to the standard parsing mechanisms.

../_images/parsergen.png
  • Introduction
  • Tabular parsing
    • The Tabular Parser
      • Column Based Results
        • Full show arp example
        • A Simpler show arp Example
        • Tabular parsing support for delimited Multi-line header tables
      • Parse using device output
  • Non-Tabular parsing
    • The Non-Tabular Parser
      • How It Works
      • How To Specify the Regex
      • How To Specify Show Commands
      • Specifying parsing details using Marked Up Input
      • A Full Example
        • Registering With Parsergen
        • Requesting a Parse and Comparison of Select Tags
        • Requesting a Full Parse
          • Skip Mode
        • Parsing Output
      • Attribute Value Ordering
      • Output Generated from Marked Up Input
  • Advanced
    • Parse using device output
    • Parsing Both Tabular and Non-Tabular Output
    • Putting It All Together
    • Standalone Parsing
    • Limitations
    • Core documentation
      • Markup Syntax
        • The OS Section
        • The CMD Sub-Section
        • The SHOWCMD Sub-Section
        • The PREFIX Sub-Section
        • The ACTUAL Sub-Section
        • The MARKUP Sub-Section
          • Parsing Example
        • Sample Parsing Script
        • Use of Subclassing with the Tabular Parser
  • API Documentation
    • Parsergen Module
Previous Next

© Copyright 2025, Cisco Systems Inc.. Last updated on Apr 25, 2025.