I use FreeBSD 10.0 release. For reviewing sysctl settings I typically use: sysctl -a It always showed the presence of ``kern.msgbuf'', but it never listed its content. I verified with 9.1-STABLE. In FreeBSD 10 kern.msgbuf's content is shown. As a result of showing some garbage from prior invocations of ncurses-based programs sysctl -a causes my console to get stuck. I must do 'reset' to unstuck it. I think kern.msgbuf should be hidden from sysctl -a.
sysctl -a always shows both variable names and values. It might or might not show garbage depending on many factors and it might or might not affect the console depending on many factors too. The value can be omitted using -N when doing sysctl -a