ACE-A1.2 Exam QuestionsBrowse all questions from this exam

ACE-A1.2 Exam - Question 29


How might you filter the output from the show interfaces counters errors command to be more useful by removing lines containing all zeroes?

Show Answer
Correct Answer: D

To filter the output from the 'show interfaces counters errors' command and remove lines containing all zeroes, you can use the '| nz' filter. This filter is specifically designed to include only non-zero counters, effectively removing any lines where all values are zero.

Discussion

1 comment
Sign in to comment
Smoothey
Oct 26, 2024

EOS CLI supports the following “show” command redirections, by “|” (pipe): LINE Filter command by common Linux tools such as grep/awk/sed/wc append Append redirected output to URL begin Begin with the line that matches exclude Exclude lines that match include Include lines that match no-more Disable pagination for this command nz Include only non-zero counters ← Hides line with all 0 numbers redirect Redirect output to URL section Include sections that match ← Shows whole hierarchy rather than just the line (as with inc) tee Copy output to URL