nerdexam
Cisco

300-615 · Question #293

Refer to the exhibit. An administrator must use this script on the Cisco Nexus 9000 Series Switches environment. The applet that was created fails to run the script. Which command set must be used in

The correct answer is C. action 1 cli guestshell python test.py. To invoke a Python script from the Nexus guest shell in an EEM applet you must use the cli guestshell python command, and to trigger on interface-down syslog messages use an event syslog pattern "IF_*.DOWN:". This combination ensures the switch drops into the guest shell to run y

Automation

Question

Refer to the exhibit. An administrator must use this script on the Cisco Nexus 9000 Series Switches environment. The applet that was created fails to run the script. Which command set must be used in the applet to resolve the issue?

Exhibits

300-615 question #293 exhibit 1
300-615 question #293 exhibit 2

Options

  • Aaction 1 cli run bash test.py
  • Baction 1 cli guestshell python test.py
  • Caction 1 cli guestshell python test.py
  • Daction 1 cli run bash test.py

How the community answered

(68 responses)
  • A
    3% (2)
  • B
    10% (7)
  • C
    84% (57)
  • D
    3% (2)

Explanation

To invoke a Python script from the Nexus guest shell in an EEM applet you must use the cli guestshell python command, and to trigger on interface-down syslog messages use an event syslog pattern "IF_*.DOWN:". This combination ensures the switch drops into the guest shell to run your test.py when an interface transitions to down.

Topics

#EEM applet#guestshell#Python#Nexus 9000

Community Discussion

No community discussion yet for this question.

Full 300-615 Practice