Bitzu

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

Single choice

In which directory do Junos devices keep log and trace files by default?

  1. /tmp/trace
  2. /var/log
  3. /etc/logs
  4. /config/log
Show answer

Answer: B. /var/log

System log and trace output files are written under /var/log.

Select all that apply

Which are valid statements inside a traceoptions block?

  1. no-remote-trace
  2. severity
  3. facility
  4. file
  5. 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

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.

Download on the App StoreGet it on Google Play

More JN0-106 topics in this module