Re: NetReg: register.cgi and dhcp 3.0rc12

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

From: Allie M Tate (allie@lsu.edu)
Date: Thu Aug 30 2001 - 14:18:16 CDT


Hey Ed-

I'm not sure what else the problem could be if you already added the 3rd
$TRASH. As trouble shooting, add a print statment in the get_host_info
routine. It should look like the:

($TRASH, $TRASH, $TRASH, $MAC) = split / +|\;/;
$RECORDS{$LEASEIP} = uc($MAC);
open (ERROR_LOG, ">>$ERROR_LOG");
print ERROR_LOG "DEBUG";
print ERROR_LOG "\$MAC = $MAC";
print ERROR_LOG "\$RECORDS{\$IP} = $RECORDS{$IP}\n\n";

and see what you get in the error_log. If a valid MAC doesn't show up,
then you can work from there. I hate to ask this question, but you are
testing this from a machine that obtained an dhcp IP from that server
right? You're not just going to the webpage and testing it from a
statically configured machine, huh? I did this two or three times before
slapping my head and "DOH!!"

See what you get with the print statement.

Allie

                                                                                                                      
                    "Ed Hintz"
                    <ehintz@natus.com> To: netreg@southwestern.edu
                    Sent by: cc: (bcc: Allie M Tate/allie/LSU)
                    owner-netreg@southw Subject: NetReg: register.cgi and dhcp 3.0rc12
                    estern.edu
                                                                                                                      
                                                                                                                      
                    08/29/2001 08:48 PM
                    Please respond to
                    netreg
                                                                                                                      
                                                                                                                      

Howdy all,

     Can't seem to get the register.cgi script to find the proper lease.
Getting the user authenticated, but I get the "no lease found" error
message. Tried adding the 3rd $TRASH, to no avail. Here's what the logfile
says:

ehintz [20010829 18:17:30]: No Lease Found
$IP = 192.168.xxx.xxx
$RECORDS{$IP} =

     Been through the archives quite a bit, no luck. Shouldn't be a
permissions issue, I changed all the directories and the file itself to
world readable with the same results. My perl is extremely rusty, so if
anybody's already got this working or has suggestions I'd be most
grateful. TIA.

Regards,

Ed Hintz
Network Systems Administrator
Natus Medical, Inc.
ehintz@natus.com

**********************************************************************
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:36 CDT