QuestionQ89

VerifiedManagement and Operations

Drag and drop the commands from the left into the correct categories on the right.

Drag & Drop
Will Run Successfully
Will Cause an Error
Explanation

NX-OS's "vsh -c" invocation requires each discrete CLI command inside the quoted string to be delimited by a semicolon; the shell/vsh parser does not treat plain whitespace or commas as command separators. A string that correctly chains "configure terminal ; interface eth1/2; shutdown; sleep 2; show interface eth1/2 brief" with semicolons runs successfully whether it is invoked from a plain "run bash" shell or from a "run bash sudo su" root shell, because the semicolon-delimited syntax itself is what vsh requires. Conversely, a string that concatenates the commands with spaces only (no semicolons) is parsed as a single malformed command and fails, and a string that uses commas in place of semicolons is likewise invalid vsh syntax and produces an error.

Community Discussion

No comments yet. Be the first to start the discussion!