RE: NetReg: Problem with Admin.cgi

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

From: Nick Ciesinski (ciesinskna26@mail.uww.edu)
Date: Sun Sep 16 2001 - 17:44:05 CDT


The reason you are only getting the un-registered ip's to show up isn't
a problem with the code. It is supposed to do that. The problem is
that you are using a totally different IP's for non-registered and
registered users. When a student registers his/her IP it will record
the non-registered IP address and store it in the dhcpd.conf file. At
no time does netreg record the users new IP. This is why you only get
non-registered IP's to show up. Most people will have the
non-registered numbers in the same subnet as the registered IP's so it
works. Unfortunately, I don't know what you can do to fix this. My
only suggestion is to not dynamically assign IP's and when a person
registers you change it to physically give them a certain IP address,
then you could record it. I believe that Steve Hideg's modified code
for his school will do this (Sorry, Steve if I am wrong). I would try
and ask him, if he doesn't respond to this message.

-Nick

-----Original Message-----
From: owner-netreg@southwestern.edu
[mailto:owner-netreg@southwestern.edu] On Behalf Of Michael King
Sent: Sunday, September 16, 2001 6:29 PM
To: netreg@southwestern.edu
Subject: NetReg: Problem with Admin.cgi

(This didn't seem to go out the last time, please pardon if you recieve
twice.)

Here's the problem.

I hand out the Unregistered address of 192.168.130.x, 192.168.131.x,
192.168.132.x
I hand out the Registered address of 207.206.226.x - 207.206.223.x,
and
192.168.135.x

(the lines should matchup, assuming the Email stays formated, but the
192.168.130.x is for one campus and is registered as 207.206.226-229.x,
192.168.131.x is for another campus and is registered as
207.206.230-233.x,
and the 192.168.132.x is for wireless clients registered as
192.168.135.x)

When I view my Subnet Overview, this is what I get
http://www.mpking.com/images/netreg.jpg

This is after 120 registered clients.

If I add the unregistered subnet to the subnet.dat file, this is what I
get.

http://www.mpking.com/images/netreg1.jpg

This is if I click on one of the users from that screen
http://www.mpking.com/images/netreg2.jpg

This is what I believe the section of the code is that is causing the
problem

I had to remove the 161.13 section. I also removed the other two
numbers,
because of my cirmstances.
<<admin.cgi>>
   foreach $SUBNET(sort { $a <=> $b; } keys %LOCS) {
      @LOCS= split (":", $LOCS{$SUBNET});
      foreach $LOC(@LOCS) {
        $CNT=0;
        open(DHCPDCONF, "$DHCPDCONFPATH/dhcpd.conf");
        while (<DHCPDCONF>) {
          if (($_ =~/$SUBNET\./) && ($_ =~/host/)) {
            $CNT++;
          }
        }

This Subnet Dat file is such:
207.206.226:Upper Campus Range 1
207.206.227:Upper Campus Range 2
207.206.228:Upper Campus Range 3
207.206.230:Lower Campus Range 1
207.206.231:Lower Campus Range 2
207.206.232:Lower Campus Range 3
207.206.233:Lower Campus Range 4
192.168.135:Wireless
192.168.130:Unregistered Upper
192.168.131:Unregistered Lower

Idea's on how to get it to do what it should? (I know I shouldnt have
the
unregistered Ranges in there, but I need them to know how many clients I
have, and it works for right now.)

**********************************************************************
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