Python Forum
Python script for show commands-CISCO Devices
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.
Reply
#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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  netmiko: print out specific line matches with 'Cisco IOS Software' in sh ver output sabrina 1 3,359 Nov-28-2022, 10:05 AM
Last Post: carstenlp
  hello everyone, I am attempting to extract lldp neighbors from Cisco switches->excel skins996 1 2,959 Nov-13-2020, 04:29 PM
Last Post: evapa8f
  [Socket] Can a server be accessible from devices not in the same network? SheeppOSU 2 2,934 Jun-18-2020, 01:29 PM
Last Post: DeaD_EyE
  netmiko connecting to arista devices. dan1962 0 4,069 Feb-07-2020, 09:23 PM
Last Post: dan1962
  Threading with python in sending multiple commands? searching1 0 3,957 Jun-12-2019, 09:13 PM
Last Post: searching1
  GNS3 telnet from bash terminal to virtual cisco router marienbad 2 3,687 Feb-24-2019, 07:55 AM
Last Post: marienbad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020