This repository contains beginner-friendly Python projects using 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.
Automates sending configuration commands to a Cisco IOS device to modify or verify interface settings.
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.
Runs the show ip route command and saves the output into a timestamped .txt file for auditing or tracking routing changes.
- Python 3.x installed
- Terminal or command prompt
- Access to a network device (e.g., Cisco DevNet Sandbox)
netmikoinstalled via pip- pip install netmiko
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.
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.
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!