exam questions

Exam 350-601 All Questions

View all questions & answers for the 350-601 exam

Exam 350-601 topic 1 question 223 discussion

Actual exam question from Cisco's 350-601
Question #: 223
Topic #: 1
[All 350-601 Questions]


An engineer must use the python module in the guest shell of the Cisco Nexus 9000 Series switch to shutdown port Ethernet 1/4. Which command set will accomplish this?

  • A. from cli import * cli(''conf t'') cli(''interface eth1/4'') cli(''shutdown'')
  • B. from cisco import cli cli(''conf t'' ; ''interface eth1/4'' ; ''shutג€)
  • C. from cli import * cli(''conf t ; interface eth1/4 ; shut'')
  • D. from cisco import cli cli(''conf t ; interface eth1/4") cli(''shutdown'')
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://www.ciscolive.com/c/dam/r/ciscolive/apjc/docs/2016/pdf/DEVNET-1077.pdf

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Daeh
Highly Voted 2 years, 1 month ago
C is correct. LAB# sh run int eth1/3 !Command: show running-config interface Ethernet1/3 version 9.2(3) Bios:version interface Ethernet1/3 LAB# LAB# LAB# guestshell [admin@guestshell ~]$ python Python 2.7.5 (default) Type "help", "copyright", "credits" or "license" for more information. >>> from cli import * >>> cli("conf t ; interface eth1/3 ; shut") 'Enter configuration commands, one per line. End with CNTL/Z.\n' >>> Quit [admin@guestshell ~]$ exit logout LAB# LAB# LAB# sh run int eth1/3 !Command: show running-config interface Ethernet1/3 version 9.2(3) Bios:version interface Ethernet1/3 shutdown LAB#
upvoted 7 times
...
Scheldon
Most Recent 4 months, 3 weeks ago
Selected Answer: C
C https://developer.cisco.com/docs/nx-os/#!cli-module/cli:~:text=This%20CLI%20module,eth4/1%20%3B%20shut%22)
upvoted 1 times
...
GuyThatTakesDumps
11 months, 3 weeks ago
Selected Answer: C
C is correct!
upvoted 1 times
...
Valkyrie17
2 years ago
C is correct https://developer.cisco.com/docs/nx-os/#!cli-module/cli
upvoted 1 times
...
GeekT
2 years, 2 months ago
Even C does not look correct as the same document referred says "import cisco or from cisco import * "
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago