[j-nsp] Is that possible to add a custom message in the log file?

Alexandre Snarskii snar at snar.spb.ru
Fri Apr 17 03:17:41 EDT 2009


On Fri, Apr 17, 2009 at 11:26:40AM +0800, wang yi wrote:
> Just wondering if it is possible to add custom log messages to the log file
> so that I can have something like:
> 
> Apr 15 01:30:00 [case1234] PIC for so-0/0/0 replaced, keep an keen eye on
> it.
> 
> when the duty engineer do a "show log messages | match case1234" knows when
> and what FRU's have been replaced.

snar at SW0001> start shell 
% logger -t case12345 MY TEST MESSAGE
% tail -1 /var/log/messages 
Apr 17 11:15:34.270  SW0001 case12345: MY TEST MESSAGE
% 




More information about the juniper-nsp mailing list