Gathers all info from Cisco devices and creates/updates it in Netbox server

Script gathers all needed info from Cisco devices and creates entities in Netbox (devices, interfaces, prefixes, ip addresses, cdp connections etc)

This script has two parts:

What the main.py script does:

  1. Connects to ips of Cisco devices written in ip_list_all.txt or ip_list.txt files by netmiko or paramiko
  2. Gathers information according to templates
  3. Parses data and writes into api/”device_name”.csv files in json format

Script’s main purpose is full integration between Cisco and Netbox (https://netbox.readthedocs.io/en/stable/)

Script works fine with IOS, NX-OS, XR, SG-220, Air-OS but can have some problems with “slow” devices when getting responce takes a long time.
Script might fail trying to connect to some devices ,especially when connecting to more than 20 devices simultaneously in a thread.
script worked fine and was tested in one Enterprise network environment

 

 

 

To finish reading, please visit source site