Wednesday, March 13, 2019

python - device.send_command vs net_connect.send_command

Can someone clarify the difference for these two command options and when to use them? A link to the documentation (??) would be great. I searched all the 3.7.3 PDFs but no luck.

1) device.send_command

device=ConnectHandler(device_type=platform, ip='192.168.1.1', username=username, password=password)

com1='show vlan id 100'

output1 = device.send_command(com1)

2) net_connect_send

output = net_connect.send_command(command)

print(output)

net_connect.disconnect

Thank you,



No comments:

Post a Comment