Тёмный

Automation Using Python | SSH to Cisco Device 

My IT Workshop
Подписаться 16 тыс.
Просмотров 36 тыс.
50% 1

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

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@ewertondesousaestacio.2430
@ewertondesousaestacio.2430 7 месяцев назад
umbelivable! I'm dev in migration to InfraSctucture area. That's amazing! using Python to automatize a bunch of dailly tasks really makes me smile at this side of the screen. Thanks for this!
@kimberly17125
@kimberly17125 9 месяцев назад
thank you for the great tutorial!
@dookieduckie
@dookieduckie 4 месяца назад
Thank you for this tutorial this is cool stuff
@WhereAmEye2187
@WhereAmEye2187 3 года назад
Wow! This is awesome! What is a real-world example of when something like this would be used instead of just logging in directly and performing the commands on the network device? Also, could you make a video showing how to write a script that will ssh into multiple devices (more than 20) in one action?
@FoodWoW1
@FoodWoW1 3 года назад
Running a script for multiple devices. Of course if you only have 1 device to check it's easier to just log into it. But if you're checking something, or making changes on 30 devices, you can do it all at once by altering a few lines of code.
@dreamsneezer8668
@dreamsneezer8668 2 года назад
There aren’t many, if your not using dhcp it’s hard to get around addressing so maybe a python loop to connect to each device and entering addresses that way, you could use a good config as a template and transfer that onto the devices first to simplify all of the default configurations you need to make. You can also write config commands in a text editor and drag and drop them into the cli this is fast and easy as long as you don’t have a shit ton of devices.
@dreamsneezer8668
@dreamsneezer8668 2 года назад
I’d say configure a switch and router as far as you can, save the configuration files in a .txt and as the running-config on the devices then just transfer them and use dhcp.
@au10ticity
@au10ticity 2 года назад
how would you go about grabbing the existing user logged in and then prompt for a password instead of typing in the info in the script?
@MyITWorkshop
@MyITWorkshop 2 года назад
Hello, In order to get the user that is currently logged to the device you would need to connect to it first. I agree adding the username and password to the script is not at all secure. This example was just to show that is possible to automate the process. A more secure way would be coding it in VS code and use the python library "getpass" and make users to type username and password before every session. Hope it helps Thanks for the comment!
@au10ticity
@au10ticity 2 года назад
@@MyITWorkshop thanks for replying.. I was implying in a LDAP environment, but this is good info.
@nguyenhoanganh6089
@nguyenhoanganh6089 11 месяцев назад
how does router and python can connect together ?
@MyITWorkshop
@MyITWorkshop 11 месяцев назад
Hello, That’s possible using the Netmico library for python.
@Select-Start
@Select-Start 3 года назад
awesome.
@benbunor
@benbunor Год назад
can you sh run int range in this manner?
@samueladepoju8717
@samueladepoju8717 3 года назад
Great job
@ikhwanhuzirislakh6845
@ikhwanhuzirislakh6845 2 года назад
HI, I tried the the script however its returning "ValueError: Failed to enter enable mode. Please ensure you pass the 'secret' argument to ConnectHandler". I am trying to use radius account configured in my switch and the account is actually not high privilege level. So how do I bypass this enable mode? Thanks for the script provided.
@generalrojs6835
@generalrojs6835 2 года назад
Maybe you are missing command Connect.enable() and see if your switch has configured ssh connection on vty lines.
@kracksmith4ejm1
@kracksmith4ejm1 6 месяцев назад
real action starts at 5:50
@SonuSingh-py9cx
@SonuSingh-py9cx 4 года назад
very informatic video
@major_kupricz
@major_kupricz 2 года назад
It doesn't work any more
@Vicmendon
@Vicmendon 3 года назад
Bateu desespero dasuhsdahusda
Далее
Scripting with Python | Saving Cisco Config
29:55
Просмотров 6 тыс.
These Are Too Smooth 😮‍💨
00:57
Просмотров 7 млн
Python For Network Engineers - 1hr crash course
59:15
Parse Cisco IOS to JSON with Python and Netmiko
17:15
Automation Using Python | Enable, Disable Ports
21:06
Python SSH Client - Paramiko. SSH with Python.
7:21
Просмотров 76 тыс.
Python 101 for Network Engineers
1:22:09
Просмотров 49 тыс.
Cisco IOS Automation with Ansible
31:22
Просмотров 55 тыс.
Useful Python Libraries for Network Engineers
56:48
Просмотров 64 тыс.