Automation Using Python | SSH to Cisco Device

  Рет қаралды 36,396

My IT Workshop

My IT Workshop

Күн бұрын

Пікірлер: 21
@ewertondesousaestacio.2430
@ewertondesousaestacio.2430 9 ай бұрын
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 11 ай бұрын
thank you for the great tutorial!
@dookieduckie
@dookieduckie 6 ай бұрын
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.
@benbunor
@benbunor 2 жыл бұрын
can you sh run int range in this manner?
@au10ticity
@au10ticity 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@MyITWorkshop thanks for replying.. I was implying in a LDAP environment, but this is good info.
@samueladepoju8717
@samueladepoju8717 3 жыл бұрын
Great job
@nguyenhoanganh6089
@nguyenhoanganh6089 Жыл бұрын
how does router and python can connect together ?
@MyITWorkshop
@MyITWorkshop Жыл бұрын
Hello, That’s possible using the Netmico library for python.
@kracksmith4ejm1
@kracksmith4ejm1 9 ай бұрын
real action starts at 5:50
@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.
@SonuSingh-py9cx
@SonuSingh-py9cx 4 жыл бұрын
very informatic video
@Select-Start
@Select-Start 3 жыл бұрын
awesome.
@major_kupricz
@major_kupricz 2 жыл бұрын
It doesn't work any more
@Vicmendon
@Vicmendon 4 жыл бұрын
Bateu desespero dasuhsdahusda
Scripting with Python | Saving Cisco Config
29:55
My IT Workshop
Рет қаралды 6 М.
Automation Using Python | Enable, Disable Ports
21:06
My IT Workshop
Рет қаралды 7 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
Vampire SUCKS Human Energy 🧛🏻‍♂️🪫 (ft. @StevenHe )
0:34
Alan Chikin Chow
Рет қаралды 138 МЛН
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Ansible Network Automation
1:02:52
David Bombal
Рет қаралды 77 М.
Automation with Python - Login to Multiple Cisco Switches.
37:28
My IT Workshop
Рет қаралды 13 М.
CompTIA Network+ Certification Video Course
3:46:51
PowerCert Animated Videos
Рет қаралды 8 МЛН
Python Skills and Techniques for Network Engineers, Part 1
57:54
Cisco DevNet
Рет қаралды 56 М.
TCP/IP for Programmers
3:03:31
Eli the Computer Guy
Рет қаралды 245 М.
Automation Using Python | Find a Mac Address in a Network
41:13
My IT Workshop
Рет қаралды 8 М.
Python For Network Engineers - 1hr crash course
59:15
Networks Learning
Рет қаралды 20 М.
HTTPS, SSL, TLS & Certificate Authority Explained
43:29
Laith Academy
Рет қаралды 152 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН