Step 7: Display a Log File
Action
To look at a log or trace file, use the following JUNOS CLI operational mode command:
user@host>show logfilenameSample Output
user@host>show log messagesSep 10 07:00:00 host newsyslog[7249]: logfile turned overSep 10 07:01:49 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1348Sep 10 07:04:17 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1349Sep 10 07:06:45 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1350Sep 10 07:07:53 host login: 2 LOGIN FAILURES FROM 172.24.16.21Sep 10 07:07:53 host login: 2 LOGIN FAILURES FROM 172.24.16.21, show configuration | no-moreSep 10 07:08:25 host inetd[2785]: /usr/libexec/telnetd[7251]: exit status 0x100Sep 10 07:09:13 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1351Sep 10 07:11:41 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1352Sep 10 07:14:09 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1353Sep 10 07:16:37 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1354Sep 10 07:19:05 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor: 10.0.8.1+1355Sep 10 07:21:33 host rpd[6451]: bgp_listen_accept: Connection attempt from unconfigured neighbor:What It Means
The sample output shows the
rpdlog messages in themessagesfile for September 10 from 7:00 to 7:21 AM.