Skip to content

Example script to generate tables from Cisco NXOS config file

License

Notifications You must be signed in to change notification settings

ocptech/parse_nxos_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parse NXOS Config ✅

published

Description

This example script generates an Excel file with the information gathered from running-config file from Cisco NXOS.

The file contains the following pages:

  • VLANs: Table with vlan information.
  • SVIs: Table with vlan interfaces information.
  • Ints: Table with interface information.
  • Po: Table with port-channel information.

Requirements

Running config file in TXT format.

Clone the repository

git clone https://github.com/ocptech/parse_nxos_config
cd parse_nxos_config

chmod 755 parse_nxos_config

Python environment

Create virtual environment and activate it (optional)

python3 -m venv parse_nxos_config
source parse_nxos_config/bin/activate
Install required modules

Install required modules

pip install -r requirements.txt

Usage & examples

Just run the parse-conf.py script and select the config file. The output will be generated in the same directory.

Use "example.cfg" as test input, the output will be "example.cfg.xls"

About

Example script to generate tables from Cisco NXOS config file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages