Debu messages in ISC???

ameen.shajahan at wipro.com ameen.shajahan at wipro.com
Thu Mar 29 13:42:40 UTC 2012


Hi Edward,

                I have DHCP conf file(dhcpd.conf) in /etc/ path with log-facility local7;   option enabled.

                And i have run the dhcp server as mentioned below
./dhcpd -4 -cf /etc/dhcpd.conf -lf /var/db/dhcpd.leases eth0  (with no -d option).So it write all the debug messages to /var/log/messages.
But i need the debug messages tp print in  separate file called /var/log/dhcpd.log.
So i have done some change in /etc/syslog.conf file with  local7.*   /var/log/dhcpd.log
But  still dhcp server writing the debug messages to /var/log/messages.

So i would like to know how to redirect to our own file.
Please let me know.

Thanks,
Ameen S

From: dhcp-users-bounces+ameen.shajahan=wipro.com at lists.isc.org [mailto:dhcp-users-bounces+ameen.shajahan=wipro.com at lists.isc.org] On Behalf Of Edward DeLargy
Sent: 29 March 2012 17:30
To: Users of ISC DHCP
Subject: Re: Debu messages in ISC???

Hello,
       If I am not mistaken you can tell the conf file what file and where to put the debug info. By default it goes into messages.

*         -p <portnum> - Specify the udp port number on which dhcpd should listen. The default is port 67. The DHCP server transmits responses to the DHCP clients at a port number one greater than the udp port specified. For example, if the default port 67 is used, the server listens on port 67 for requests and responses to the client on port 68. If a port is specified here and the DHCP relay agent is used, the same port on which the DHCP relay agent should listen must be specified. Refer to Section 25.2.4 DHCP Relay Agent<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/3/html/System_Administration_Guide/s1-dhcp-configuring-server.html#DHCP-RELAY-AGENT> for details.

*         -f - Run the daemon as a foreground process. This is mostly used for debugging.

*         -d - Log the DHCP server daemon to the standard error descriptor. This is mostly used for debugging. If this is not specified, the log is written to /var/log/messages.

*         -cf <filename> - Specify the location of the configuration file. The default location is /etc/dhcpd.conf.

*         -lf <filename> - Specify the location of the lease database file. If a lease database file already exists, it is very important that the same file be used every time the DHCP server is started. It is strongly recommended that this option only be used for debugging purposes on non-production machines. The default location is /var/lib/dhcp/dhcpd.leases.

*         -q - Do not print the entire copyright message when starting the daemon.

hope this helps,

Ed DeLargy

On Thu, Mar 29, 2012 at 4:45 AM, <ameen.shajahan at wipro.com<mailto:ameen.shajahan at wipro.com>> wrote:
Hi all
                In ISC dhcp-4.2.3 code , while running server(ipv4/ipv6) or relay(ipv4/ipv6)  if we enable -d(debug option) where would be the debug messages will be printed.
                Is there any separate file for storing debug message in ISC code for both IPv4 and IPv6.
                Please let me know.

Thanks
Ameen S


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com<http://www.wipro.com>

_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>
https://lists.isc.org/mailman/listinfo/dhcp-users


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120329/23954081/attachment-0001.html>


More information about the dhcp-users mailing list