JunOS: Can I have a live console log

juniper-junos

On a Cisco IOS device the command logging buffered 51200 notifications logs most information to the routers memory (obviously you can change that to informational or debugging as required).

When connected to the router via telnet or SSH I can execute the command terminal monitor (term mon) to have these events displayed in my session live as they are happening. When connected via the console this happens automatically.

How can I achieve the same effect on JunOS; When I am adding IGP/EGB neighbors for example, I'd like to see the new adjacencies coming up rather than constantly looking through the logs.

Best Answer

'monitor start messages' is roughly equivalent to 'term mon. 'messages' is the name of the log file you want to monitor.

If you don't see the output you expect, you need to change what is logged to given file from 'set configuration system syslog file X ...'.