ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 97 - 350-601 discussion

Report
Export

Refer to the exhibit.

Which command is run from the Guest Shell to set the description on the first five interfaces of the Cisco Nexus switch?

A.

Option A

Answers
A.

Option A

B.

Option B

Answers
B.

Option B

C.

Option C

Answers
C.

Option C

D.

Option D

Answers
D.

Option D

Suggested answer: D

Explanation:

The command in Option D correctly uses a loop to iterate over the range {1...5}, which represents the first five interfaces. Thedohostcommand is used to send commands to the host Cisco Nexus switch from the Guest Shell. The syntaxinterface eth1/$xanddescription Server$xwithin the loop sets the description for each interface eth1/1 to eth1/5 to ''Server1'' to ''Server5'' respectively.

Here's the command from Option D formatted for clarity:

[guestshell@guestshell ~]$ for x in {1..5}; do

dohost 'conf t' ;

interface eth1/$x;

description Server$x;

done

This command will configure the description for each of the first five Ethernet interfaces with the respective server number as part of the description.

asked 10/10/2024
Wilfried Wagener
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first