RE: NetReg: DHCP refresh problems

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Dieudonne, Jose (dieudonj@arcadia.edu)
Date: Mon Dec 22 2003 - 14:36:22 CST


Patrick,
I just finished the netreg installation. I reveived the following when
trying to start the DHCP service:
Env: /etc/init.d/dhcpd

I have all the files in the exact location. What do you think happen?
Any help will be greatly appreciated.

Thanks,
Jsoe

-----Original Message-----
From: Patrick Jaques [mailto:pjaques@comcast.net]
Sent: Friday, December 19, 2003 12:03 AM
To: netreg@southwestern.edu
Subject: RE: NetReg: DHCP refresh problems

Calissa,

You need to start /usr/sbin/dhcpd with the "-cf" to be able to specify a
different path for the dhcpd.conf file. The default is /etc. Example:

     /usr/sbin/dhcpd -cf /etc/dhcpd/dhcpd.conf -lf
/var/state/dhcp/dhcpd.leases

You should create a startup script for dhcpd and place it in your
/etc/rc.d/init.d directory, then create symlinks to the start script in
each
runlevel directory (rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d). See the
NetReg-HowTo guide on how to create symlinks (Chapter 5.3). Attached is
a
startup script for dhcpd on a Red Hat 9.0 Linux system. It will work as
long
as the following are true:

1. dhcpd.conf is in /etc/dhcpd
2. dhcpd.leases is in /var/state/dhcp/dhcpd.leases

If any of these files are in different locations then your will need to
edit
this script and change the following lines:

  # Check that ISC DHCPD files exist
  [ -f /usr/sbin/dhcpd ] || exit 0
  [ -f /etc/dhcpd/dhcpd.conf ] || exit 0
  [ -f /var/state/dhcp/dhcpd.leases ] || exit 0

  OPTIONS="-cf /etc/dhcpd/dhcpd.conf -lf /var/state/dhcp/dhcpd.leases"

--Patrick

-----Original Message-----
From: owner-netreg@southwestern.edu
[mailto:owner-netreg@southwestern.edu]
On Behalf Of Calissa J Lazowicki
Sent: Thursday, December 18, 2003 4:12 PM
To: netreg@southwestern.edu
Subject: RE: NetReg: DHCP refresh problems

Patrick,

The fix below worked for me as well :) the files are refreshing every
minute
like they are supposed to :) thank you once again for your help... you
really are awesome!!

netreg is running great for me, except when i try to start dhcpd it
wants to
read the conf file from /etc/dhcpd.conf instead of
/etc/dhcpd/dhcpd.conf, if
i manually make a copy of the /etc/dhcpd/dhcpd.conf file in the /etc
directory everything is wonderful, but i shouldn't have to do this...
the
path in variables.pl is correct it states:

$DHCPDCONFPATH = "/etc/dhcpd";
$DHCPDCONFFILE = "dhcpd.conf';

File permissions may be an issue... is there somewhere else i need to
change
the path?

is there something that i am missing?

Thanks again for all of your help!

Calissa

On Wed, 2003-12-17 at 20:12, Patrick Jaques wrote:
> Hi Mike,
>
> I have encountered this same problem with Red Hat 9.0 Linux. The
> problem is that the process id returned from the 'ps aux' command does

> not matching the process id in /var/run/dhcpd.pid. The 'ps aux'
> command returns two process ids, which causes it not to match the
> process id in dhcpd.pid. I never encountered this problem until I
> upgraded to Red Hat version 9.0. The attached script fixes the
> problem.
>
> Add 'grep -v refresh-dhcpdconf|' to the two 'ps aux' command lines in
> the refresh-dhcpdconf script. This will resolve the problem. See the
> below
> example:
>
> if [ "`ps aux|grep dhcpd|grep -v grep|grep -v refresh-dhcpdconf|awk
> '{print $2}'`" != "`cat /var/run/dhcpd.pid`" ]; then
>
> -- Patrick
>
>
> -----Original Message-----
> From: owner-netreg@southwestern.edu
> [mailto:owner-netreg@southwestern.edu]
> On Behalf Of Michael Stella
> Sent: Wednesday, December 17, 2003 7:15 PM
> To: netreg@southwestern.edu
> Subject: RE: NetReg: DHCP refresh problems
>
>
> Hello!
>
> I seem to be having this same issue. I tried the change below but
> there seemed to be no effect. I've been able to determine that the
> clients are registering OK - the refresh script swaps in the
> dhcp.conf.new to dhcp.conf
> - then restarts the server just fine. Then I assume I am seeing the
problem
> below as the script then copies dhcpd.conf to dhcpd.conf.bad and the
> dhcpd.conf.bak file into dhcp.conf and tries to start the server
without
> stopping it first. (If I run the script by hand I can see this
happening).
> Then it even complains that it has a fatal error and can't start
anything
> even though DHCP is up and working fine.
>
> I made the changes below but that didn't seem to help. I am running
> Netreg on Redhat 9.
>
> Any ideas?
>
> Thanks in advance!
> -Mike
>
> ****************************
> Michael Stella
> Network Services Administrator michael.stella@regiscollege.edu
> Voice: 781-768-7176
> Fax: 781-768-7344
>
> -----Original Message-----
> From: owner-netreg@southwestern.edu
> [mailto:owner-netreg@southwestern.edu]
> On Behalf Of Brad Pinkston
> Sent: Thursday, December 04, 2003 11:42 AM
> To: netreg@southwestern.edu
> Subject: NetReg: DHCP refresh problems
>
> It seems as though people are having trouble using the
> refresh-dhcpdconf script with other packages. There are a couple of
> tweaks to the script that may help solve these problems.
>
> Edit the file and change your paths to all dhcpd.conf files. Then
> change the line:
>
> if [ "`ps aux|grep dhcpd|grep -v grep|awk '{print $2}'`" != "`cat
> /var/run/dhcpd.pid`" ]; then
>
> to
>
> if [ "`ps axc|grep dhcpd|grep -v grep|awk '{print $1}'`" != "`cat
> /var/run/dhcpd.pid`" ]; then
>
> It seems this pid file and current running pid aren't matching up
> correctly. I experienced this with Redhat Enterprise v3.
>
> This has not been tested on any other platforms and should not be
> considered failsafe until you test all possible scenarios yourself.
>
> Hope it helps.
>
> Brad Pinkston
> Firewall/Network Administrator
> Checkpoint CCSA
> Centenary College of LA
> (318) 869-5721
> bpinksto@centenary.edu
>
>
>
> --------------------------------------------------------------------
> This email has been scanned for viruses by Centenary College of LA
>
> **********************************************************************
> To unsubscribe from this list, send an e-mail message to
> majordomo@southwestern.edu containing a single line with the words:
> unsubscribe netreg Send requests for assistance to:
> owner-netreg@southwestern.edu
> **********************************************************************
>
> **********************************************************************
> To unsubscribe from this list, send an e-mail message to
> majordomo@southwestern.edu containing a single line with the words:
> unsubscribe netreg Send requests for assistance to:
> owner-netreg@southwestern.edu
> **********************************************************************

**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg Send requests for assistance to:
owner-netreg@southwestern.edu
**********************************************************************
**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:43 CDT