ACE-A1-2 practice question 11 of 25
On EOS 4.15 and above, the ability to show JSON output for EOS CLI commands is available. Which of the following will successfully produce JSON output for the show version command?
Full set: 127 questionsDomain Arista EOS
On Arista EOS version 4.15 and later, the standard method to format the output of a show command into JSON is by appending a pipe (|) followed by the json keyword. The pipe redirects the standard, human-readable output of the show version command to an internal EOS process that converts it into a structured JSON format. This feature is designed to facilitate automation and programmatic interaction with the switch's state information via the Command Line Interface (CLI).
A. show version | show json: The command show json is not a valid EOS command or filter; the correct keyword is simply json after the pipe.
C. show json | show version: This syntax is logically invalid as it attempts to pipe the output of a non-existent command (show json) into show version.
D. show version json: This syntax is incorrect because it omits the mandatory pipe character (|) which is required to redirect the command output for JSON formatting.
1. Arista EOS 4.15.0F Release Notes, Section: "New Features and Enhancements" -> "Management Plane".
This document explicitly introduces the feature: "JSON command output: The CLI now supports displaying show command output in JSON format. To use this feature, append | json to any show command."
2. Arista EOS 4.28.0F System Configuration Guide, Section: "CLI Management" -> "Displaying Command Output in JSON Format".
This guide states: "The pipe option | json displays command output in JSON format." It provides the example: switch# show interfaces | json. This confirms the correct syntax uses the pipe character.
Keep practicing
Take the free ACE-A1-2 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ACE-A1-2 practice questions
- Question 1How many Arista switches may be a part of a single MLAG domain?
- Question 2How many Virtual Network Identifiers are supported by the VXLAN specification?
- Question 3What is the name of the Arista EOS feature that allows you to set triggers and perform ac…
- Question 4What is required in order for Multi-Switch CLI to be implemented?
- Question 5Which of the following best describes Arista’s MLAG feature?
- Question 6Which of the following statements are true?
