An open API service indexing awesome lists of open source software.

https://github.com/tejasvi2708/netmiko

This folder consists of projects based on Networking and Automation using Netmiko Library of Python.
https://github.com/tejasvi2708/netmiko

automation netmiko networking networking-in-python projects-in-python python python-3 python-script

Last synced: 3 months ago
JSON representation

This folder consists of projects based on Networking and Automation using Netmiko Library of Python.

Awesome Lists containing this project

README

          

# Network Automation with Netmiko

This repository contains beginner-friendly Python projects using **[Netmiko](https://github.com/ktbyers/netmiko)**—
A Python library that simplifies SSH connections to network devices, especially Cisco IOS. Each project demonstrates practical use cases like retrieving device info, configuring interfaces, and exporting routing data.

These scripts can be run directly in your terminal.

## Projects Included

### Project 1: Interface Configuration
Automates sending configuration commands to a Cisco IOS device to modify or verify interface settings.

### Project 2: Device Information Extraction
Connects to a device and fetches details such as:
- Interface status
- IP address info
Results are saved into a text file named as a **netwoek-inventory.txt**.

### Project 3: Routing Table Logger
Runs the `show ip route` command and saves the output into a timestamped `.txt` file for auditing or tracking routing changes.

## Prerequisites

- Python 3.x installed
- Terminal or command prompt
- Access to a network device (e.g., **Cisco DevNet Sandbox**)
- `netmiko` installed via pip
- pip install netmiko

## Using Your Own Credentials
Each script uses a **credentials.txt** file to securely read your login details. I have already created a file so you have to use your personal credentials in it.

**Important**: Do NOT upload this file to GitHub.
Make sure to list it in .gitignore to keep your credentials safe.

## How to Run a Script
Clone or download this repo.

Create a credentials.txt file with your details.

Open your terminal.

Run any script using:
**python project1.py**
Or whichever script you'd like to test.

---

You can use Cisco's free DevNet Sandbox to access Cisco IOS devices if you don’t have lab equipment.

---

## Best Practices -
Keep credentials.txt private.
Use .gitignore to exclude sensitive and unnecessary files.
Organize output files into a dedicated folder if needed.

These projects are simple yet practical for beginners interested in network automation. They demonstrate how tools like Netmiko can replace manual CLI tasks and help automate routine operations on network devices.

Happy Automating!