JN0-106 ยท Interfaces and system services
Logging and tracing
Log files in /var/log, show log, traceoptions flags and files, and when to use tracing versus system logging.
Key points
- Log files: in /var/log; show log lists them, show log <filename> displays one (show log messages).
- Syslog: records ongoing events, meant to stay on.
- Tracing (traceoptions): detailed protocol-level activity for troubleshooting; enable temporarily, then remove.
- file <name> size <size> files <n>: output in /var/log with rotation (name.0, name.1, ...).
- flag: picks an operation to trace.
Practice questions
In which directory do Junos devices keep log and trace files by default?
- /tmp/trace
- /var/log
- /etc/logs
- /config/log
Show answer
Answer: B. /var/log
System log and trace output files are written under /var/log.
Which are valid statements inside a traceoptions block?
- no-remote-trace
- severity
- facility
- file
- flag
Show answer
Answer: A. no-remote-trace, D. file, E. flag
traceoptions uses file (with size and files), flag and no-remote-trace. severity and facility belong to syslog.
True or false: trace output goes to the file named in the traceoptions file statement, stored under /var/log, and not to the messages file.
Show answer
Answer: True
True. Tracing has its own output file; the messages file is the default syslog destination.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
