Click the Exhibit button.
Python
> > > with Device(host = "172.25.11.2", user = "lab", passwd = "lab123") as dev:
... dev.open()
... dev.close()
...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/jnpr/junos/device.py", line 1347, in open
self._conn = netconf_ssh.connect(
File "/usr/local/lib/python3.8/dist-packages/ncclient/manager.py", line 168, in connect
return connect_ssh(*args, **kwds)
File "/usr/local/lib/python3.8/dist-packages/ncclient/manager.py", line 135, in connect_ssh
session.connect(*args, **kwds)
File "/usr/local/lib/python3.8/dist-packages/ncclient/transport/ssh.py", line 291, in connect
raise SSHError("Could not open socket to %s:%s" % (host, port))
ncclient.transport.errors.SSHError: Could not open socket to 172.25.11.2:830
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " < stdin > ", line 1, in < module >
File "/usr/local/lib/python3.8/dist-packages/jnpr/junos/device.py", line 1450, in __enter__
self.open()
File "/usr/local/lib/python3.8/dist-packages/jnpr/junos/device.py", line 1379, in open
raise EzErrors.ConnectRefusedError(self)
jnpr.junos.exception.ConnectRefusedError: ConnectRefusedError(172.25.11.2)
What would cause the error shown in the exhibit to occur?
You need to retrieve data from the Junos XML API. Which of the following would you use to accomplish this task?
Which Junos process is responsible for aggregating the individual Junos APIs, and is used by the JET API?
Which REST API authentication method combines the use of passwords and tokens?