May-16-2020, 10:38 AM
I am getting error like below
TypeError: 'TerminalServerSSH' object is not callable
TypeError: 'TerminalServerSSH' object is not callable
from netmiko import ConnectHandler from getpass import getpass from jumpssh import SSHSession device = { 'device_type': 'terminal_server', 'host': '192.168.64.5', 'username': 'admin', 'password': getpass(), 'ssh_config_file': './ssh_config', } ESW1 = { 'device_type': 'cisco_ios', 'host': '192.92.34.61', 'username': 'cisco', 'password': getpass(), 'ssh_config_file': './ssh_config', } net_connect = ConnectHandler(**device) remote_connect = net_connect(**ESW1).open() output = remote_connect.send_command("show ip int brief | in up") print(output)