cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1315
Views
0
Helpful
1
Replies

Python use in multiple switch for the same command

vyas.2020
Level 1
Level 1

I am having around 50 cisco 2960 and 2960X switches. Every time I have to run the IP INT BRIEF | IN UP command on all switch to check the interface status. It is very hard to me login each and every device and run the command.

Is their anything solution that I can login in single window and take the output from all the switch in one hit.

Is python script works for me for this requirement. I am not used to for python, if it works than I will search and check.

1 Reply 1

helpcenterus
Spotlight
Spotlight

@vyas.2020 absolutely, there's a solution to streamline the process of checking interface status across multiple Cisco switches. Using a Python script, you can automate this task and gather the output from all switches in a single execution. The Paramiko library in Python is commonly used for SSH connectivity to network devices. You can write a script that iterates through your list of switches, logs in via SSH, and executes the 'show ip interface brief | include up' command. The script can then collect and display the results. This approach not only saves time but also provides a more efficient way to monitor and manage multiple switches simultaneously. While you're new to Python, there are numerous online resources and communities that can guide you through creating such scripts. It's a valuable skill for network administrators dealing with repetitive tasks across a fleet of devices.

Good luck with your exploration into Python scripting!