To display a log file stored on a single-chassis system, enter JUNOS CLI operational mode and issue either of the following commands:
- user@host> show loglog-filename
- user@host> file show log-file-pathname
By default, the commands display the file stored on the local Routing Engine. To display the file stored on a particular Routing Engine, prefix the file- or pathname with the string re0 or re1 and a colon. The following examples both display the /var/log/messages file stored on the Routing Engine in slot 1:
- user@host> show log re1:messages
- user@host> file show re1:/var/log/messages
For information about the fields in a log message, see Interpreting System Log Messages. For examples, see Examples: Displaying a Log File.