Skip to content

A collection of Python scripts using Netmiko and Paramiko to automate network configuration backups, device discovery, and VLAN management for Cisco IOS.

Notifications You must be signed in to change notification settings

Sanazay/Python-Network-Automation-Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

🐍 Python Network Automation Toolkit

Python Cisco License

πŸ“Œ Overview

This repository contains a collection of Python scripts designed to automate daily network operations for Cisco IOS devices. As a Network Engineer, I developed these tools to reduce manual configuration errors and improve efficiency using Netmiko and Paramiko.


πŸš€ Features

Script Name Functionality
config_backup.py Connects to multiple routers via SSH and saves the running-config to a local directory with a timestamp.
vlan_deploy.py Automates the creation of VLANs and naming conventions across multiple Access Switches using a CSV inventory file.
ping_sweep.py Checks the reachability of devices in a subnet and generates a status report (Up/Down).
push_commands.py Pushes a set of configuration commands (e.g., ACLs, SNMP, NTP) to a list of devices.

πŸ› οΈ Prerequisites

Before running these scripts, ensure you have the following installed:

  • Python 3.8+
  • Pip packages:
    pip install netmiko paramiko pandas
  • Network connectivity to the devices (SSH enabled).

πŸ“‚ Project Structure

β”œβ”€β”€ backups/               # Folder where configs are saved
β”œβ”€β”€ inventory/
β”‚   └── device_list.csv    # IP, Username, Password, Device Type
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ config_backup.py
β”‚   β”œβ”€β”€ vlan_deploy.py
β”‚   └── ping_sweep.py
β”œβ”€β”€ README.md
└── requirements.txt



About

A collection of Python scripts using Netmiko and Paramiko to automate network configuration backups, device discovery, and VLAN management for Cisco IOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published