CCNP 350-401 ENCOR Question 323 DISCUSSION
« Back to Main MenuWhich outcome is achieved with this Python code?
client.connect (ip, port= 22, username= usr, password= pswd )
stdin, stdout, stderr = client.exec_command ('show ip bgp 192.168.101.0 bestpathin')
print (stdout)
A. connects to a Cisco device using SSH and exports the BGP table for the prefix
B. connects to a Cisco device using SSH and exports the routing table information
C. displays the output of the show command in a formatted way
D. connects to a Cisco device using Telnet and exports the routing table information
Which outcome is achieved with this Python code?
client.connect (ip, port= 22, username= usr, password= pswd )
stdin, stdout, stderr = client.exec_command ('show ip bgp 192.168.101.0 bestpathin')
print (stdout)
A. connects to a Cisco device using SSH and exports the BGP table for the prefix
B. connects to a Cisco device using SSH and exports the routing table information
C. displays the output of the show command in a formatted way
D. connects to a Cisco device using Telnet and exports the routing table information
Correct Answer: A