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 Жыл бұрын
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!
@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 Жыл бұрын
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!
@pppam3 жыл бұрын
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!
@chrisavants3 жыл бұрын
That’s what we are doing here. This can find any variable then write whichever command.
@rashhadmiah99593 жыл бұрын
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)
@chrisavants3 жыл бұрын
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
@chrisavants3 жыл бұрын
I modified the script a little and retested it, worked great. Let me know if you need more help
@chrisavants3 жыл бұрын
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