Re: subnet.dat

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

From: Peter Valian (valianp@southwestern.edu)
Date: Fri Aug 11 2000 - 11:45:18 CDT


Greg,

I assume you mean "Search Leases".

It basically does a grep for leases containing the IP you want.

Does seraching for a MAC work? Did you try partial IPs...like a search
for 10.11.50 should return all machines in your lab.

Also see if "Search Registration" works...same concept, different file.

WooHoo! T-shirts! Those just make it all worth it!

-peter

Which version of ISC's DHCPD are you running (the patchlevel
specifically).

Greg wrote:
>
> one more thing... :)
> the lease manager "search by ip" function is not working...
> it just returns whatever i put in as a search parameter.
>
> btw, your t-shirts are wrapped and ready for the mailman :)
>
> greg
>
> Peter Valian wrote:
> >
> > :p you doubt'ed NetReg? for shame...actually, that's about what I said
> > a year ago :)
> >
> > I'd like to know how many are using it too. K...everyone that is using
> > it or planning to use it or trying to get it to work, could you please
> > drop me a private email.
> >
> > I currently know of only a handful. also include in that email if it's
> > okay to mention that your school uses it.
> >
> > Thanks,
> > -peter
> >
> > Greg wrote:
> > >
> > > hey it actually worked :)
> > >
> > > how many sites are out there using this?
> > >
> > > thanks.
> > > greg
> > >
> > > Peter Valian wrote:
> > > >
> > > > Greg,
> > > >
> > > > you're going to have to modify the subnet_overview subroutine in
> > > > admin.cgi to work on your network.
> > > >
> > > > this chuck is what does the count:
> > > >
> > > > foreach $LOC(@LOCS) {
> > > > $CNT=0;
> > > > open(DHCPDCONF, "$DHCPDCONFPATH/dhcpd.conf");
> > > > while (<DHCPDCONF>) {
> > > > if (($_ =~ /161\.13\.$SUBNET\./) && ($_ =~ /host/)) {
> > > > $CNT++;
> > > > }
> > > > }
> > > >
> > > > in the subnet.dat provided, I simply have stuff like:
> > > >
> > > > 20:some building
> > > > 30:another building
> > > >
> > > > so when dhcpd.conf gets parsed for the $CNT, it's grep'ing for hosts
> > > > that have IP's starting with 161.13.20. and then 161.13.30. and so on
> > > > until it works its way through subnet.dat.
> > > >
> > > > so for yours you will so something like:
> > > > subnet.dat:
> > > > 10.11.50:Student Labs
> > > >
> > > > admin.cgi:
> > > >
> > > > foreach $LOC(@LOCS) {
> > > > $CNT=0;
> > > > open(DHCPDCONF, "$DHCPDCONFPATH/dhcpd.conf");
> > > > while (<DHCPDCONF>) {
> > > > if (($_ =~ /$SUBNET\./) && ($_ =~ /host/)) {
> > > > $CNT++;
> > > > }
> > > > }
> > > >
> > > > this is probably something that should be made simpler to modify...I
> > > > think it was overlooked when I was generalizing the code.
> > > >
> > > > Hope this helps.
> > > >
> > > > -peter
> > > >
> > > > Greg Lawler wrote:
> > > > >
> > > > > hi, i just got netreg 1.2 up and runnning on a test network and it looks
> > > > > awesome.
> > > > >
> > > > > the only issue i am having is that when i pull up the admin.cgi, my
> > > > > subnet with lease count is not correct.
> > > > > my subnet is 10.11.50.0, i have tried the following in the subnet.dat
> > > > > file but just get a count of 0 for all...
> > > > >
> > > > > 10.11.50:Student Labs
> > > > > 11.50:Student Labs
> > > > > 11:Student Labs
> > > > >
> > > > > what am i missing?
> > > > >
> > > > > thanks a lot.
> > > > > greg
> > > > >
> > > > > --
> > > > > ____________________________________
> > > > > greg@zinkwazi.com 805.565.7249
> > > > > http://www.zinkwazi.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
> > > > > **********************************************************************
> > > >
> > > > --
> > > > Peter Valian
> > > > Network & Systems Administrator
> > > > Southwestern University
> > > > Georgetown, Texas
> > > > 512.863.1586
> > > > --
> > > > **********************************************************************
> > > > 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
> > > > **********************************************************************
> > >
> > > --
> > > ____________________________________
> > > Greg Lawler
> > > Network Administrator
> > > grinch@westmont.edu 805.565.7249
> > > http://zulu.westmont.edu/routers
> > > ____________________________________
> > > **********************************************************************
> > > 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
> > > **********************************************************************
> >
> > --
> > Peter Valian
> > Network & Systems Administrator
> > Southwestern University
> > Georgetown, Texas
> > 512.863.1586
> > --
> > **********************************************************************
> > 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
> > **********************************************************************
>
> --
> ____________________________________
> Greg Lawler
> Network Administrator
> grinch@westmont.edu 805.565.7249
> http://zulu.westmont.edu/routers
> ____________________________________
> **********************************************************************
> 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
> **********************************************************************

--
Peter Valian
Network & Systems Administator
Southwestern University
Georgetown, Texas
512.863.1586
--
**********************************************************************
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:33 CDT