nerdexam
CiscoCisco

350-601 · Question #380

350-601 Question #380: Real Exam Question with Answer & Explanation

The correct answer is D: Option D. To verify IP reachability for multiple hosts using 'ping' from a Cisco NX-OS switch via the management VRF and then exit the shell, the script needs to iterate through host IPs, use 'ping vrf management' for each, and then execute an 'exit' command.

Automation

Question

A network engineer must create a script to quickly verify IP reachability for multiple hosts using ping from the Cisco NX-OS switches. The script should use the management VRF and exit the shell after execution. Which script should be used to achieve this objective?

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

Explanation

To verify IP reachability for multiple hosts using 'ping' from a Cisco NX-OS switch via the management VRF and then exit the shell, the script needs to iterate through host IPs, use 'ping vrf management' for each, and then execute an 'exit' command.

Common mistakes.

  • A. This option is incorrect because it likely misses the 'vrf management' keyword, fails to properly loop through multiple hosts, or does not include an 'exit' command for proper termination.
  • B. This option is incorrect because it probably does not correctly specify the management VRF for the ping, leading to reachability issues or incorrect testing results.
  • C. This option is incorrect because it likely has syntax errors, does not handle multiple hosts efficiently, or fails to properly exit the shell after execution.

Concept tested. Cisco NX-OS scripting, ping with VRF, shell exit

Reference. https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus7000/sw/interfaces/config/cisco_nexus7000_interfaces_config_guide_8x/vrfs.html#C_ID_06C71D85_00

Topics

#Network Scripting#NX-OS CLI#Management VRF#IP Reachability

Community Discussion

No community discussion yet for this question.

Full 350-601 PracticeBrowse All 350-601 Questions