Tuesday, November 14, 2017

Network Config Parser

Hi all,

I've been working on an application to parse network device configuration, and I'd like to get some feedback (and bug reports) from the people here in /r/networking. It's in an alpha state, but I figure it still may be useful to people in this state.

Summary

  • It's called ncp
  • It takes configuration files (or input from STDIN), parses them, and outputs it in a specified format (raw Perl, JSON, CSV).
  • It currently has partial support for Cisco ASA, CheckPoint CLISH, and Linux iproute2 and net-utils.
  • It's easily extensible - plugins can be written to add parser support, as well as output driver support (CSV, database, etc).
  • There may be bugs. If you encounter something, please raise issues on the GitHub Repo.

There's documentation up for the ncp cmd line utility as well as the module that supports it.

You can install it with cpanminus (cpanm Device::Network::ConfigParser), or with the legacy cpan utility (cpan Device::Network::ConfigParser).

Here are some examples:

Reach out if you've got any questions.



No comments:

Post a Comment