NetReg: Problem with Admin.cgi

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

From: Michael King (mking@bridgew.edu)
Date: Sun Sep 16 2001 - 18:28:41 CDT


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


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