nerdexam
Cisco

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…

Network Element Programmability

Question

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 execution of this script?

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)
  • A
    2% (1)
  • B
    7% (3)
  • C
    87% (40)
  • D
    4% (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.py mixes NX-OS path syntax (bootflash:) into a Linux command - invalid hybrid syntax, and there's no python command at the NX-OS prompt.
  • B is wrong because show python is not a valid NX-OS exec command; show commands display state/data, they don't execute scripts.
  • D is wrong because guestshell execute does not exist - the correct subcommand is run, not execute.

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

#Guest Shell#Python scripting#NX-OS execution context#Network device automation

Community Discussion

No community discussion yet for this question.

Full 300-635 Practice