Running tcpdump Inside the NX-OS Guest Shell Container
Short answer
B The run guestshell command executes the tcpdump capture inside the already-deployed Guest Shell container on the Nexus device.
Question

Key Takeaways
run guestshell runs a command in the Guest Shell context and returns to NX-OS, whereas guestshell alone enters the interactive container prompt; both parallel run bash for the host shell.
To capture OSPF traffic on a specific NX-OS switch port using an embedded container, use the run guestshell command from the NX-OS CLI to execute tcpdump inside the Guest Shell.
Common mistake: Confusing guestshell (interactive entry) with run guestshell (scripted execution); the question asks which command completes a scripted capture, not which drops you into the shell.
Expert Analysis
Why the Answer Is Correct
The capture must run inside the embedded Guest Shell container already deployed on the Nexus 9000. From the NX-OS CLI, the run guestshell <command> syntax executes a command within the Guest Shell context and returns to the NX-OS prompt, which is exactly what a scripted packet capture needs. run guestshell parallels run bash, which reaches the host shell; both invoke container tools such as tcpdump without an interactive session.
Why the Other Options Are Wrong
A. guestshell-bash is not a valid NX-OS command. D. guestshell alone enters the Guest Shell interactive prompt; it does not complete a one-line script that launches tcpdump and returns. C. run bash accesses the host Linux shell, not the Guest Shell container the question requires.
Community Comment Notes
Exam community is split (votes D 78 / B 22). The highest-liked comment (luisam, 6 likes) cites the NX-OS Programmability Guide and concludes B. The deciding detail is "completes the script": a non-interactive prefix that runs the command inside the container is run guestshell, whereas guestshell is the interactive entry point.
Official Reference
This link opens the official vendor documentation in a new tab.
Community Votes
78% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 12 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 12
Show 7 more comments
-
udo2020 👍 1„You can use the run guestshell CLI command to access the Guest Shell on the Cisco Nexus device; the run guestshell command parallels the run bash command that is used to access the host shell.“
-
crooks_1988 👍 1B is correct: In Cisco NX-OS, only network-admin users can access the Guest Shell by default. It is automatically enabled in the system and can be accessed using the run guestshell command
-
Rollizo 👍 1 Answered DIt is D. With “run guestshell” you can only introduce a command to be executed in guestshell interface
-
GoForCCNP 👍 1 Answered BI agree with @luisam. Correct is B - run guestshell.
-
JobProcess 👍 2 Answered DAnswer D: guestshell
-
wickkkkkkkkkkkkkkkkkk 👍 1BBBBBBBBBBBBBBBBBBBBBBBBBB
-
JobProcess 👍 1 Answered BAnswer B: run guestshell
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
run guestshellwill drop you in, but could also use it to run a command from switch. If i get this question, i will go with D here.