Tag Archives: retrieve

A network engineer is trying to retrieve SNMP MIBs with RESTCONF on the Cisco switch but fails. End-to-end routing is in place. Which configuration must the engineer implement on the switch to complete?

Refer to Exhibit. A network engineer is trying to retrieve SNMP MIBs with RESTCONF on the Cisco switch but fails. End-to-end routing is in place. Which configuration must the engineer implement on the switch to complete? A. netconf-yang cisco-ia snamp-community -string Public B. snmp-server community cosco RW C. snmp-server community public RO D. netconf-yang cisco-Ia snmp-community-string Private Answer:… 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.

Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth.

Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth. curl -X ____________ -H ” __________: application/json” -H ” _______: Bearer AbCdEf123456″ https://localhost/api/myresource A. See explanation below. Answer: Option A. Explanation:  GET Accept Authorization Reference: https://webcache.googleusercontent.com/search?q=cache:Se6d2trvMsEJ:https://blogs.cisco.com/developer/security-api-best-practices+&cd=4&hl=en&ct=clnk&gl=pk&client=firefox-b-d Show AnswerDiscussion The post Fill in the blanks to… Read More »

Fill in the blanks to complete the Python script to retrieve a list of network devices using the Cisco DNA Center API.

Fill in the blanks to complete the Python script to retrieve a list of network devices using the Cisco DNA Center API. my_token=’eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzl1NiJ9.ey.JzdWliOil1ZDE0OWZkMjhlZTY2 MmQ3NGM5YzE5ZTliLmYzMClslmV4cCI6MTU3MjM3ODE5MCwidXNlcm5hbWUiOiJraX N370940885.zhK5LPQd501ZUpZI0IH_qrgOXttlNbxSFFF7JOEtRls’ import requests url = “https://myDNAserver/dna/intent/api/v1/network-device” payload = {} headers = {“˜x-auth-token’: my_token} } response = requests.request( _______________________ , url, headers = _________________________, data = _______________________ ) print(response.text.encode(“˜utf8′)) A. See explanation below. Answer: Option… Read More »

Which action resolves a 401 error in response to an HTTP GET that is issued to retrieve a configuration statement using RESTCONF on a CSR 1000V?

A. Change the HTTP method to PUT. B. Check the MIME types in the HTTP headers. C. Change the transport protocol to HTTPS. D. Check the authentication credentials. Answer: Option D. Explanation:  No answer description available for this question. Show AnswerDiscussion The post Which action resolves a 401 error in response to an HTTP GET that is issued… Read More »

A developer creates a script to obtain a list of devices by using the Cisco DNA Center API. The remote server authorizes the request only if an authentication token is supplied in the headers. A function named get_auth_token() must retrieve a valid token by using HTTP Basic Authentication. Which code must be added to complete the get_auth_token() function?

Refer to the exhibit. A developer creates a script to obtain a list of devices by using the Cisco DNA Center API. The remote server authorizes the request only if an authentication token is supplied in the headers. A function named get_auth_token() must retrieve a valid token by using HTTP Basic Authentication. Which code must be added to… Read More »