monitoring files in JUNOS

If you want to monitor a growing log file in JUNOS, there is a builtin command for this purpose. For example, if you want to monitor the log file /var/log/messages just run;

and any change in this file will be displayed on your screen. To stop monitoring simply run;

This is a very handy command indeed. You can also use “tail -f /var/log/messages” after dropping to freebsd shell though, builtin command has several advantages.  You can also monitor the file based on a pattern i.e if you want to look for error messages real time simply run;

This is the first post of my juniper notes. I would like to add more if I can get round to. Maybe I can add some useful stuff in run up to my juniper certification.

You have a feedback?