Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 491643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:01:56+00:00 2026-05-13T02:01:56+00:00

Is there either: A freely available program that can convert the output of a

  • 0

Is there either:

A freely available program that can convert the output of a Cisco’s “show conf” to some sensible XML, like this (probably not very sensible) block form:

<aaa>
  <new-model/>
  <authentication>
    <login>
      <default>
        <group id="tacacs+">enable</group>
      </defult>
    </login>

    <!-- ...etc... -->

  </authentication>
</aaa>

…or, if not, at an XML schema that I could look to implement? Without a deep understanding of the IOS syntax, building up the schema is proving to be tricky.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T02:01:56+00:00Added an answer on May 13, 2026 at 2:01 am

    Cisco provides no schema for IOS configurations. However, you may have two options:

    • Cisco’s IOS XR has built-in XML support. Depending on the model of your router you may be able to upgrade. You’ll have to enable the “xml-agent” feature for this to work. Be aware that this feature is not always deemed reliable yet (last we checked there were some bugs that prevented us from using it), but it should be good enough for many people.

    • If upgrading is not an option, there is this horrible ugly hack (that’s my fault):

    http://code.google.com/p/text2xml/

    It comes with a syntax for IOS (syntax/ios.def in the repository) that supports translating a significant number of commands to XML, but is in no way complete. Still, it works for a large number of very complex configurations here, and extending it to support new IOS commands should merely be a matter of adding the new commands to the (painfully unreadable and hard to understand) syntax definition.

    You’ll still want to convert the resulting XML to something more stable, but XML transformations are way easier than parsing IOS (which is a royal PITA).

    [edit]
    The above answer is now largely obsolete: I have written Gelatin, which lets you convert IOS and IOS XR configurations to XML, JSON, or YAML – whichever you prefer. This is essentially a replacement for afore mentioned ugly hack, with the following differences:

    • I no longer call it an ugly hack. I am actually pretty proud of it, so don’t disillusion me! More seriously, if you find any problem with it, please let me know and I will fix it.
    • Written in pure Python, and it no longer compiles to C, which makes it a lot easier to use and install. (Also, the performance gain from generating C code wasn’t essential anyway.)
    • The syntax is way easier to understand. There is also some documentation.
    • The parser is much more stable.

    A short how-to:

    • Download and install Gelatin:

      git clone git://github.com/knipknap/Gelatin.git
      cd Gelatin
      sudo python setup.py install
      
    • The package contains a syntax for IOS (syntax/ios/show_running_config/syntax.gel) and another one for IOS XR (syntax/ios_xr/show_running_config/syntax.gel).

    • Transform a config to XML using the following command:

      gel -s syntax.gel config.txt
      

    If that fails, please file a bug with the configuration that does not work. (Or better yet, attach a patch for the syntax.) I fully expect that a lot of IOS commands are still missing, so don’t be shy.

    Gelatin may be used to transform pretty much anything to XML, and if you happen to create your own syntax files (further instructions are here), please send them in. I’ll gladly accept any feedback.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are quite a few freely available datetime pickers in Javascript. However, you can
Is there either an existing command, or some trick or script that allows me
What advantages are there for using either XSLT or Linq to XML for HTML
Is there either a bash command or a Python library that will time the
I wish to either make use of a freely available email validator (software, script
Hi out there in Stackland. I was wondering if there was either a function
I am running into a randomly occuring issue, and it looks like either there
I want to allow users to either have there username field empty at any
There are multiple ways to fill an NSTableView up with data through either bindings,
Is there a way to coax either the h:outputLink or s:link tags into generating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.