Display File Contents
Action
To display the contents of a file on the local router, use the following CLI operational mode command:
user@host>file showfilenameSample Output
user@host>file show /var/log/messagesApr 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 timesApr 13 21:07:04 romney last message repeated 8 timesApr 13 21:07:13 romney /kernel: so-1/1/0: Clearing SONET alarm(s) RDI-PApr 13 21:07:29 romney /kernel: so-1/1/0: Asserting SONET alarm(s) RDI-PApr 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...What It Means
The sample output shows the contents of the
/var/log/messagesfile.