exam questions

Exam 350-601 All Questions

View all questions & answers for the 350-601 exam

Exam 350-601 topic 1 question 467 discussion

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



Refer to the exhibit. An engineer must create a Bash script to run in the Cisco NX-OS Guest Shell. The script must loop through the available namespaces and output all registered interfaces. Which code snippet completes the script?

  • A. chvrf "$ns";
  • B. echo "$ns";
  • C. ifconfig "$ns";
  • D. vrfinfo"$ns";
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
JCGO
Highly Voted 1 year, 5 months ago
Selected Answer: A
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/programmability/guide/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Guide_7x/Guest_Shell.html
upvoted 5 times
...
Verdesoto1978
Most Recent 10 months ago
I think question really has two valid. A, and C. I had tested it and two works.
upvoted 1 times
...
asd248402
1 year, 1 month ago
Selected Answer: A
change vrf and then do ifconfig
upvoted 3 times
...
camelw
1 year, 2 months ago
From the link provided by JCGO some explanation for this: "The Guestshell has access to the Linux network interfaces used to represent the management and data ports of the switch. Typical Linux methods and utilities like ifconfig and ethtool can be used to collect counters. When an interface is placed into a VRF in the NX-OS CLI, the Linux network interface is placed into a network namespace for that VRF. The name spaces can be seen at /var/run/netns and the ip netns utility can be used to run in the context of different namespaces. A couple of utilities, chvrf and vrfinfo , are provided as a convenience for running in a different namespace and getting information about which namespace/vrf a process is running in. "
upvoted 4 times
...
timeforexam
1 year, 2 months ago
Selected Answer: C
I choose C
upvoted 2 times
...
timeforexam
1 year, 2 months ago
C seems to be right
upvoted 3 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