Тёмный
No video :(

Cisco ISE v3 Lessons - Automating Switch Configurations w Python Netmiko 

Chris Avants
Подписаться 1,8 тыс.
Просмотров 4,2 тыс.
50% 1

Part of the BONUS videos I created for my new Cisco ISE v3 Lessons course I created for WiFiTraining.com. In this video, I show you how to use a simple Python script to automate configuration deployments to Cisco IOS / IOS-XE devices using Python3 and Netmiko libraries. You don't have to be a seasoned coder to realize the power of Python in network automation! You can purchase these courses at wifitraining.com
You can download the Python script from my new GitHub page github.com/Roc...
Oh horrible lighting in this video so the green screen is terrible, lol.

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@TheBeach5563
@TheBeach5563 10 месяцев назад
Thanks so much for sharing Chris. I just found this today. I work at a large refinery and do mostly switches and Wireless APs. I wopuld say we have around 100 switches mostly 3560s but I have about16 new 9200 switches I will be installing. We use Solarwinds for monitoring and some configuration. I'm really trying to find a way to make my life easier with configurations, troubleshooting. I really think brushing up on automation tools that can help would be cool I will be checking out more of your videos.
@chrisavants
@chrisavants 10 месяцев назад
It's absolutely worth learning some basic automation. It's amazing how far someone new can go in a week or two with Python, and there are a lot of libraries and examples out there for us. Check out our course Python for Network Engineers, it will help you get started and actually give you skills to start automating:) Thanks for the kind words!
@pppam
@pppam 3 года назад
Very useful. Thanks. But what about a script that connects to a switch, seeks what ports have only MAB enabled and then populates these interfaces with dot1x config as well. This would be very useful!
@chrisavants
@chrisavants 3 года назад
That’s what we are doing here. This can find any variable then write whichever command.
@ReezMotovlog
@ReezMotovlog Год назад
Hi thank you so much for the tutorial ! But I have a question, instead of SSH how do you connect using serial port? Like configuring a switch from scratch which doesn't have a username and password, and doesn't have an management IP address. TQ!
@chrisavants
@chrisavants Год назад
Reezy, you would need a USB to Serial adapter for that, or USB to micro USB console cable (depending on the model / type of switch). The adapters are cheap, about $10 $20, but getting drivers to work on Windows can be fun at times. Good luck!
@rashhadmiah9959
@rashhadmiah9959 3 года назад
tried to run this but I keep getting these errors Traceback (most recent call last): File "C:/Users/rashhad.miah/Desktop/security/vuln_check.py", line 27, in output = net_connect.send_command(commands_list) File "C:\Users ashhad.miah\Desktop\Auto\venv\lib\site-packages etmiko\utilities.py", line 430, in wrapper_decorator return func(self, *args, **kwargs) File "C:\Users ashhad.miah\Desktop\Auto\venv\lib\site-packages etmiko\base_connection.py", line 1479, in send_command command_string = self.normalize_cmd(command_string) File "C:\Users ashhad.miah\Desktop\Auto\venv\lib\site-packages etmiko\base_connection.py", line 1638, in normalize_cmd command = command.rstrip() AttributeError: 'list' object has no attribute 'rstrip' is there something im doing wrong? (im a newbie to network automation)
@chrisavants
@chrisavants 3 года назад
Hmm, looks like an issue with the netmiko library, but also could be the nesting of something. Is this from my GitHub script? I'll check it
@chrisavants
@chrisavants 3 года назад
I modified the script a little and retested it, worked great. Let me know if you need more help
@chrisavants
@chrisavants 3 года назад
No the devices and commands.ios are plane text files in Linux. Create by using nano device, add IPs one at a time, then save. Same for commands with any command you want to write to the devicd
Далее
Parse Cisco IOS to JSON with Python and Netmiko
17:15
لدي بط عالق في أذني😰🐤👂
00:17
Просмотров 4,3 млн
Starman🫡
00:18
Просмотров 599 тыс.
Getting Started with ISE Profiling
59:12
Просмотров 9 тыс.
SSH Configuration with Netmiko
13:45
Просмотров 30 тыс.
Let's Build a Netmiko Script
11:20
Просмотров 3,1 тыс.
Automation Using Python | SSH to Cisco Device
21:37
Просмотров 35 тыс.
5 Amazing Ways to Automate Your Life using Python
18:40
Device Administration with ISE
1:00:56
Просмотров 5 тыс.
Python - GNS3 VM - Netmiko and IOS
16:54
Просмотров 521