Python Invokeshell Multiple commands Cisco
Python Invokeshell Multiple commands Cisco I'm having issues with my script which reads from an ip from the text file. Process the IP through ssh into the device. Executes three show commands. The problem I'm having is I would think the double authentication, however when I modify the script with the authentication all it does is print the command on the line, but doesn't execute the command. import paramiko import getpass import io import os import time # *****Open Plain Text #f = open ("chkpt.txt") f = open ("ciscoasa.txt") # *****Read & Store into Variable ip =(f.read().splitlines()) f.close() # *****Username Credentials username = raw_input("Please Enter Username:") # *****Password Options password = getpass.getpass("Please Enter Password:") # ***** Name of File #name = raw_input("Please Name Your File:") client=paramiko.SSHClient() def connect_ssh(ip): try: client.load_system_host_keys() client....