To display the contents of a file on the local router.
To display the contents of a file on the local router, use the following CLI operational mode command:
user@host> file show /var/log/messages Apr 13 21:00:08 romney /kernel: so-1/1/2: loopback suspected; going to standby. Apr 13 21:00:40 romney /kernel: so-1/1/2: loopback suspected; going to standby. Apr 13 21:02:48 romney last message repeated 4 times Apr 13 21:07:04 romney last message repeated 8 times Apr 13 21:07:13 romney /kernel: so-1/1/0: Clearing SONET alarm(s) RDI-P Apr 13 21:07:29 romney /kernel: so-1/1/0: Asserting SONET alarm(s) RDI-P Apr 13 21:07:36 romney /kernel: so-1/1/2: loopback suspected; going to standby. Apr 13 21:08:08 romney /kernel: so-1/1/2: loopback suspected; going to standby. ...Output truncated...
The sample output shows the contents of the /var/log/messages file.