Which command is run from the Guest Shell to set the description on the first five interfaces of the Cisco Nexus switch?
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
B . Option B
C . Option C
D . Option D
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. The dohost command is used to send commands to the host Cisco Nexus switch from the Guest Shell. The syntax interface eth1/$x and description Server$x within 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.
Latest 350-601 Dumps Valid Version with 138 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund