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.
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
Topics
Community Discussion
No community discussion yet for this question.