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 questions

Domain Arista EOS

Answer options
A: show version | show json
B: show version | json Correct answer
C: show json | show version
D: show version json
Correct Answer:
B. show version | json
Explanation

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).

Why Incorrect

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.

References

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.

Scroll to Top