Please refer to the displayed image.What are the results of this Python code?
A. Display show command output without formatting
B.Displays the output of show commands in a formatted manner
C. Connect to a Cisco device using Telnet and export routing table information
D. Connect to a Cisco device using SSH and export routing table information
Excuse me, I don't understand this problem, but is the output result D?
I chose D.
Here is the reference site.
解答The answer sentences are slightly different.
Other people told me that B is the correct answer, but I would also like you to tell me why B is the correct answer.I apologize for the inconvenience, but I appreciate your cooperation.
*This is an additional note.
Dear @nekketsuuuu,
The reason I thought it was D was because
in the first line of the image
client.connect(ip, port=22, username=usr, password=pswd)
Because port 22 is specified.
I interpreted it this way and chose D.
Thank you for your cooperation.
Dear @cubick♦,
All right.
I will actually install Python myself and verify it.
Dear @keitaro_so,
I asked the respondent why it is B, but he hasn't replied yet.
The explanation itself was not given, so I am still in a muddled state.
I'm not satisfied yet.
D is the answer.
Before you know what Cisco show commands are and what BGP tables are,
Since you are connected to port 22, D is the only choice for SSH.
© 2024 OneMinuteCode. All rights reserved.