JNCIA-Junos: Juniper Networks Certified Associate – Junos — Question 79
You have entered the command show log messages | match "error|kernel|panic".
Which statement is correct regarding the keywords error, kernel, and panic in the output?
Answer options
- A. The output will contain all messages from the file except the ones that contain at least one of the three defined keywords.
- B. The output will contain all messages from the file that contain at least one of the three defined keywords.
- C. The output will contain all messages from the file except the ones that contain all three defined keywords.
- D. The output will contain all messages from the file that contain all three defined keywords.
Correct answer: B
Explanation
The correct answer is B because the command uses a match with an OR condition, which means it will return messages containing any of the specified keywords: error, kernel, or panic. The other options incorrectly state exclusion criteria or require all keywords to be present.