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'')
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#
Even C does not look correct as the same document referred says
"import cisco or from cisco import *
"
upvoted 1 times
...
Log in to ExamTopics
Sign in:
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.
Daeh
Highly Voted 2 years, 1 month agoScheldon
Most Recent 4 months, 3 weeks agoGuyThatTakesDumps
11 months, 3 weeks agoValkyrie17
2 years agoGeekT
2 years, 2 months ago