From ab204b305aa980985b2f8aeb967631396d990636 Mon Sep 17 00:00:00 2001 From: muassif <32828975+muassif@users.noreply.github.com> Date: Wed, 11 Aug 2021 17:29:46 +0400 Subject: [PATCH] Deleting to swap chapter 13 and 14 --- Chapter13/paramiko/show_cisco_int_pmk.py | 27 ------------------------ 1 file changed, 27 deletions(-) delete mode 100644 Chapter13/paramiko/show_cisco_int_pmk.py diff --git a/Chapter13/paramiko/show_cisco_int_pmk.py b/Chapter13/paramiko/show_cisco_int_pmk.py deleted file mode 100644 index 521ff5c..0000000 --- a/Chapter13/paramiko/show_cisco_int_pmk.py +++ /dev/null @@ -1,27 +0,0 @@ -import paramiko - -ip='172.16.2.50' -port=22 -username='root' -password='rootroot' - - -cmd= 'show ip interface brief \n' - -def main(): - - try: - ssh = paramiko.SSHClient() - ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - ssh.connect(ip, port, username, password) - - stdin, stdout, stderr = ssh.exec_command(cmd) - outlines = stdout.readlines() - resp = ''.join(outlines) - print(resp) - - finally: - ssh.close() - -if __name__ == '__main__': - main()