Tag Archives: script

A script abc.sql must be executed to perform a job. A database user HR, who is defined in this database,

A script abc.sql must be executed to perform a job.A database user HR, who is defined in this database, executes this command:$ sqlplus hr/[email protected] @abc.sqlWhat will happen upon execution? A. The command succeeds and HR will be connected to the orcl and abc.sql databases B. The command fails and reports an error because @ is used twice C.… Read More »

Running the script causes the output in the exhibit. Which change to the first line of the script resolves the error?

A. from ncclient import B. import manager C. from ncclient import * D. import ncclient manager Answer: Option D. Explanation:  No answer description available for this question Show AnswerDiscussion The post Running the script causes the output in the exhibit. Which change to the first line of the script resolves the error? appeared first on Majanto.

Which code results in the working Python script displaying a list of network devices from the Cisco DNA Center?

Refer to the exhibit. Which code results in the working Python script displaying a list of network devices from the Cisco DNA Center? A. network_device_list(dnac[“host”], dnac[“username”],dnac[“password”]) login = dnac_login(dnac) print(dnac_devices) B. login = dnac_login(dnac[“host”], dnac[“username”], dnac[“password”]) network_device_list(dnac, login) print(dnac_devices) C. login = dnac_login(dnac[“host”], dnac[“username”], dnac[“password”]) network_device_list(dnac, login) for item in dnac_devices: print(dnac_devices.item) D. network_device_list(dnac[“host”], dnac[“username”], dnac[“password”]) login =… Read More »

Which two Python libraries are used to write a script to retrieve network device information using RESTCONF? (Choose two.)

A. PySNMP B. requests C. ncclient D. YANG E. json Answer: Option B, E. Explanation:  No answer description available for this question Show AnswerDiscussion The post Which two Python libraries are used to write a script to retrieve network device information using RESTCONF? (Choose two.) appeared first on Majanto.

An engineer is deploying a Python script to manage network devices through SSH. Which library based on Paramiko is used?

A. sshmiko B. paramiko.agent C. libssh2 D. netmiko Answer: Option D. Explanation:  Reference: https://pynet.twb-tech.com/blog/automation/netmiko.html Show AnswerDiscussion The post An engineer is deploying a Python script to manage network devices through SSH. Which library based on Paramiko is used? appeared first on Majanto.

What is the effect of the script on the device?

Refer to the exhibit. What is the effect of the script on the device? A. All interfaces except GigabitEthernet2 are reset to their default configurations. B. It replaces the entire configuration for GigabitEthernet2 on the device using RESTCONF. C. It merges the new configuration with the existing configuration on the device using RESTCONF. D. It compares the configuration… Read More »

A Python script is created to add a new device on Cisco NSO using RESTCONF API. The device is added successfully, but a 405 Method Not Allowed RESTCONF error code has received as the line to fetch SSH keys runs. Which code is missing to complete the script?

Refer to the exhibit. A Python script is created to add a new device on Cisco NSO using RESTCONF API. The device is added successfully, but a 405 Method Not Allowed RESTCONF error code has received as the line to fetch SSH keys runs. Which code is missing to complete the script? A. response = requests.put(baseUriOperation + “/devices/device=ios-device/ssh/fetch-host-keys”,… Read More »

A Cisco CMX 3375 appliance on the 10.6.1 version code counts duplicate client entries, which creates wrong location analytics. The issue is primarily from iOS clients with the private MAC address feature enabled. Enabling this feature requires an upgrade of the Cisco CMX 3375 appliance in a high availability pair to version 10.6.3. SCP transfers the Cisco CMX image, but the upgrade script run fails. Which configuration change resolves this issue?

A. Upgrade the high availability pair to version 10.6.2 image first and then upgrade to version 10.6.3. B. Save configuration and use the upgrade script to upgrade the high availability pair without breaking the high availability. C. Break the high availability using the cmxha config disable command and upgrade the primary and secondary individuality. D. Run root patch… Read More »

The output of a unified diff when comparing two versions of a Python script is shown. Which two “single_request_timeout()” functions are defined in fish.py and cat.py? (Choose two.)

Refer to the exhibit. The output of a unified diff when comparing two versions of a Python script is shown. Which two “single_request_timeout()” functions are defined in fish.py and cat.py? (Choose two.) Answer: Option B, C. Explanation:  No answer description available for this question. Show AnswerDiscussion The post The output of a unified diff when comparing two versions… Read More »

Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user “devnetuser”.

Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user “devnetuser”. import requests import json controller = ‘devnetapi.cisco.com/sandbox/apic_em’ url = “https://” + controller + “api/va/ticket” payload = {‘username’: ‘_________________’, ‘password’: ‘370940885’} header = {‘Content-type’: ‘application.json’} response = _______________________.post(url, data=json.dumps(payload), headers= ______________________, verify=False) r_json = response.json() print… Read More »