Syntax checker ?

Glenn Satchell Glenn.Satchell at uniq.com.au
Fri Feb 23 13:01:15 UTC 2007


>Date: Fri, 23 Feb 2007 12:45:28 +0000
>From: "Jóhann B. Guðmundsson" <johannbg at hi.is>
>To: dhcp-users at isc.org
>Subject: Syntax checker ?
>
>Is there any syntax checker to parse large DHCP files ?
>
>Best Regards
>                   Jóhann B.

Hi Jóhann

I think dhcpd -t and/or dhcpd -T may be what you're looking for.

man dhcpd
...
     The DHCP server reads two files on startup: a  configuration
     file,  and  a lease database.   If the -t flag is specified,
     the server will  simply  test  the  configuration  file  for
     correct  syntax, but will not attempt to perform any network
     operations.   This can be used to test the a new  configura-
     tion file automatically before installing it.

     The -T flag can be used to test the lease database file in a
     similar way.

regards,
-glenn


More information about the dhcp-users mailing list