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.
Running config file in TXT format.
git clone https://github.com/ocptech/parse_nxos_config
cd parse_nxos_config
chmod 755 parse_nxos_config
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
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"