300-635 · Question #22
Refer to the exhibit. The script is called deltacounters.py and it is currently inside a Guest Shell container running inside a Cisco NX-OS switch. Which Cisco NX-OS command results in a successful…
The correct answer is C. guestshell run python /home/admin/deltacounter.py ethernet1/1. Option C is correct because guestshell run is the valid NX-OS CLI command for executing commands inside the Guest Shell container, and /home/admin/ is the correct Linux filesystem path used within Guest Shell (not the NX-OS bootflash: notation). Why the distractors fail: A is…
Question
Options
- Apython /home/admin/bootflash:deltacounters.py ethernet1/1
- Bshow python bootflash:deltacounters.py ethernet1/1
- Cguestshell run python /home/admin/deltacounter.py ethernet1/1
- Dguestshell execute python /home/admin/deltacounter.py ethernet1/1
How the community answered
(46 responses)- A2% (1)
- B7% (3)
- C87% (40)
- D4% (2)
Explanation
Option C is correct because guestshell run is the valid NX-OS CLI command for executing commands inside the Guest Shell container, and /home/admin/ is the correct Linux filesystem path used within Guest Shell (not the NX-OS bootflash: notation).
Why the distractors fail:
- A is wrong because
python /home/admin/bootflash:deltacounters.pymixes NX-OS path syntax (bootflash:) into a Linux command - invalid hybrid syntax, and there's nopythoncommand at the NX-OS prompt. - B is wrong because
show pythonis not a valid NX-OS exec command;showcommands display state/data, they don't execute scripts. - D is wrong because
guestshell executedoes not exist - the correct subcommand isrun, notexecute.
Memory tip: Think "Guest Shell RUNs Linux" - the NX-OS command is always guestshell run <linux-command>, and inside that container you use standard Linux paths (/home/admin/), never NX-OS path prefixes like bootflash:.
Topics
Community Discussion
No community discussion yet for this question.