That assumes its Linux and is being logged to local /var/log/messages.   For 
other *nix the log location and name is apt to be different.






-----Original Message-----
From: bind-users-bounces+jlightner=water....@lists.isc.org 
[mailto:bind-users-bounces+jlightner=water....@lists.isc.org] On Behalf Of Carl 
Byington
Sent: Tuesday, July 10, 2012 3:47 PM
To: bind-users@lists.isc.org
Subject: Re: Loaded zone files query

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 2012-07-10 at 13:22 -0600, Kirk Hoganson wrote:
> Does anyone know of a simple way to discover how many zone files bind
> has successfully loaded after the daemon starts?

cd /var/log
rm -f named.temp*
grep 'named' messages | \
   csplit --prefix=named.temp - '/named.*starting BIND/' >/dev/null f=$(ls -1 
named.temp* | tail -1) grep 'zone.*loaded serial' $f | wc -l rm -f named.temp*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAk/8ho4ACgkQL6j7milTFsHHRQCdGJGLBpyPQkQYaQh6zxsd7zO1
qMkAnAvd76dFQM48foc6nJSunR3jMFnZ
=i2k4
-----END PGP SIGNATURE-----


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users




Athena(r), Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential 
information and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any disclosure, copying, distribution, or use of 
the contents of this information is prohibited and may be unlawful. If you have 
received this electronic transmission in error, please reply immediately to the 
sender that you have received the message in error, and delete it. Thank you.
----------------------------------

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to