def show_version(a_device):
 creds = a_device.credentials
 remote_conn = ConnectHandler(device_type=a_device.device_type, ip=a_device.ip_address, username=creds.username, password=creds.password, port=a_device.port, secret='')
 print
 print ('#' * 80)
 print remote_conn.send_command_expect('show version')
 print ('#' * 80)
 print

def show_version ( a_device ) : creds = a_device . credentials remote_conn = ConnectHandler ( device_type = a_device . device_type , ip = a_device . ip_address , username = creds . username , password = creds . password , port = a_device . port , secret = '' ) print print ( '#' * 80 ) print remote_conn . send_command_expect ( 'show version' ) print ( '#' * 80 ) print
execute show version command using netmiko .