Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Python script for show commands-CISCO Devices
#1
Hello All,

This is my first post and I am pretty rookie in python world. I am trying to create network script which will help me to capture show commands output for CISCO devices and store output in files.

I tried to run few scripts from internet but those are somewhat static scripts where variables like IP Addresses, show commands & username/password need to be stored under different .txt files and those filenames will be invoked as parameter while running the script in CLI.

I am looking for way where IP addresses, show commands & username/password can be entered dynamically while running the script as those parameter value will differ everytime.

Could someone please guide me over here or any sample would be enough.
Quote
#2
see the paramiko package:  https://pypi.python.org/pypi/paramiko/2.4.0
an example of it's use: https://stackoverflow.com/questions/2076...-text-file
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Threading with python in sending multiple commands? searching1 0 420 Jun-12-2019, 09:13 PM
Last Post: searching1
  GNS3 telnet from bash terminal to virtual cisco router marienbad 2 564 Feb-24-2019, 07:55 AM
Last Post: marienbad

Forum Jump:


Users browsing this thread: 1 Guest(s)