#!/usr/bin/env python
from netmiko import ConnectHandler
from getpass import getpass

ip_addr = raw_input("Enter IP Address: ")

device = {
    'device_type': 'cisco_ios_telnet',
    'ip': ip_addr,
    'username': 'pyclass',
    'password': getpass(),
    'port': 23,
} 

net_connect = ConnectHandler(**device)
#output = net_connect.send_command_expect("show version")

#print
#print '#' * 50
#print output
#print '#' * 50
#print

@@ -79,16 +79,17 @@
 etpass%0A%0A
+#
 ip_addr 
@@ -122,17 +122,67 @@
 ess: %22)%0A
-%0A
+pwd = getpass()%0Aip_addr = '184.105.247.70'%0A%0Atelnet_
 device =
@@ -285,25 +285,157 @@
 sword': 
-getpass()
+pwd,%0A    'port': 23,%0A%7D %0A%0Assh_device = %7B%0A    'device_type': 'cisco_ios_ssh',%0A    'ip': ip_addr,%0A    'username': 'pyclass',%0A    'password': pwd
 ,%0A    'p
@@ -441,23 +441,38 @@
 port': 2
-3
+2
 ,%0A%7D %0A%0A
+print %22telnet%22%0A
 net_conn
@@ -474,16 +474,17 @@
 _connect
+1
  = Conne
@@ -499,15 +499,146 @@
 r(**
-device)
+telnet_device)%0Aprint net_connect1.find_prompt()%0A%0Aprint %22SSH%22%0Anet_connect2 = ConnectHandler(**ssh_device)%0Aprint net_connect2.find_prompt()%0A
 %0A#ou

Test of telnet