Cisco Automating Cisco Data Center Solutions (DCAUTO) 300-635 Question # 9 Topic 1 Discussion
300-635 Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1
Refer to the exhibit:
The exhibit shows a Cisco NX-OS switch configuration an Ansible playbook, and the output of running this playbook The playbook failed due to error "msg' "Request failed \ 'status* -1 "url" "http://192.168.251.129:80/ins " Which Cisco NX-OS configuration command resolves this failure?
A.
feature nxapi
B.
http-server enabled
C.
interface mgmt0; ip access-group allow_http_traffic in
The error message “Request failed ” indicates that the Ansible playbook is trying to connect to the Cisco NX-OS switch using HTTP but is unable to establish a connection. This can be due to the HTTP server feature not being enabled on the NX-OS device. Enabling an HTTP server on a Cisco NX-OS device allows for remote management of the device via HTTP, which is what the Ansible playbook is attempting to do.
To resolve this issue, one would need to enable the HTTP server on the Cisco NX-OS switch. The command http-server enabled specifically enables the HTTP server feature, allowing for remote connections such as those attempted by Ansible playbooks.
References :=
Implementing Automation for Cisco Data Center Solutions (DCAUI) - 6
Cisco Learning Network - Automating Cisco Data Center Solutions Videos - 7
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit