Cisco
300-615 · Question #293
300-615 Question #293: Real Exam Question with Answer & Explanation
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
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?
Exhibit
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
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.
Community Discussion
No community discussion yet for this question.
