"/var/log/messages" logs appear in the output of "sysctl -a"

Mateusz Guzik mjguzik at gmail.com
Wed Jan 7 04:54:54 PST 2009


On Wed, Jan 07, 2009 at 01:30:20PM +0200, Eitan Shefi wrote:
> I am testing a NIC driver.
> I found it's logs and "/var/log/messages" logs in the output of "sysctl
> -a":
> I run "sysctl -a | less", and there I find:
>  
[..]
> kern.msgbuf: ound file system checks in 60 seconds.
> <118>
> mtnic0: FW version:2.6.0
> mtnic0: Board ID:
> mtnic0: Using 1 tx rings for port:1 [4096]
> mtnic0: Using 4 rx rings for port:1 [1024]
> mtnic0: Using 1 tx rings for port:2 [4096]
> mtnic0: Using 4 rx rings for port:2 [1024]
[..] 
>  
> Any idea how can such logs apear in "sysctl -a" ?
>  

kern.msgbuf dumps so called 'message buf' containing messages printed by
the kernel (for example by a NIC driver). It's accessible also via
/dev/klog and syslogd uses it as a source for /var/log/messages.

-- 
Mateusz Guzik <mjguzik at gmail.com>


More information about the freebsd-questions mailing list