Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 4.34 KB

File metadata and controls

43 lines (31 loc) · 4.34 KB

image

published Run in Cisco Cloud IDE

AUTOMATING A NETWORK INVENTORY WITH PYTHON

Automating a network inventory with Python pyats involves using the pyATS framework to simplify and accelerate the process of collecting and organizing information about network devices. By leveraging the power of Python programming, network administrators can create customized scripts that automate the collection of device data, enabling them to quickly and accurately generate an inventory of all devices on their network.

  • Click to Dino to check the video!!!

  • How can we talk to the devices?

  • What tool / language will we use?

  • How do we create the list of devices to work with?

  • How will we share our code for others to use?

  • How do we protect any “secrets” (username/password)

PROOF OF CONCEPT

AUTOMATING.A.NETWORK.WITH.PYTHON.mp4

METHOD CLI

  • Library to interact: PyATS
  • Parse: regex, pyATS
  • Spreadsheet: Std CSV
Topics Description Title Notes
INSTALL PYTHON AND DEPENDENCIES Install Python 3.10.2. INSTALL PYTHON AND DEPENDENCIES In this first step you install your Python.
INSTALL ANYCONNECT VPN CLIENT Install VPN Client via CLI INSTALL ANYCONNECT VPN CLIENT In this second step you install your vpn anyconnect client.
INSTALL GIT Install GIT via CLI INSTALL GIT In this step you install git in your environment.
CREATE SPREADSHEET Create Spreadsheet CREATE SPREADSHEET In this step you create an Spreadsheet.
TESTING CONNECTIVITY Testing Connectivity TESTING CONNECTIVITY In this step you are going to make a testing connectivity.
GATHERING INFORMATION Gathering show version and show inventory over devices with Python GATHERING INFORMATION In this step you are going to begin gathering information.
FORMATTING FOR INVENTORY REPORT Provide a correct format to generate a inventory report in Python FORMATTING FOR INVENTORY REPORT In this step you are going to begin gathering information.
CREATING A CSV FILE Provide a CSV File as a report in Python CREATING A CSV FILE In this step you are going to provide a report via Python.

REFERENCES