DHCP web interface. New version.

DHCP web interface. New version.

am 29.07.2003 06:40:55 von Daevid Vincent

Heya. I've just put up a new version of the DHCP web front end if anyone =
is
using it or has a need for this type of thing.

Major feature of this version:

* a bug where if the arp table showed an "(incomplete)", I ignored the =
entry
since the MAC is the hash key, many machines wouldn't show up as they =
kept
over writing each other (of course, they were bunk anyways)
* ping & nmap tests (if ping fails, nmap is used as a backup)
this is useful for firewalls that may block ICMP
* tests can be disabled for radically faster page rendering (off by =
default)
* 10 minute refresh by default rather than 10 second.
* SORTING! by IP now, rather than arp entries
* many more icons (tivo, zaurus, replay, linux, notebook, servers, DAR, =
etc)
* complete/incomplete tally
* Name in config file is only used if dhcp doesn't show a name already

This is also IMHO an excellent way for a beginer or advanced coder alike =
to
see some very useful OOP/PHP coding as I use arrays of objects, sorting =
by
variables IN the object (custom sort algorithm with key integrity), =
hashing,
system calls, regex parsing, DHTML, etc.=20

If anyone knows how to force the arp table to be current, that would =
help.
Sometimes a machine is on the network, and I *know* for a fact it is, =
but it
doesn't show up in "arp -n" *grumble*.=20

Follow the link below.=20
http://daevid.com/examples/dhcp/

Check out my resume. Hire me. ;-)
http://resume.daevid.com/

N'joy.=20

Daevid.
=20


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: DHCP web interface. New version.

am 29.07.2003 07:55:51 von cparker

Daevid Vincent
on Monday, July 28, 2003 9:41 PM said:

> Heya. I've just put up a new version of the DHCP web front end if
> anyone is using it or has a need for this type of thing.

New version? I din't even know you HAD a version.

So for us people that have never heard of this, what exactly does it do?


thanks,
chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: DHCP web interface. New version.

am 29.07.2003 10:50:40 von Tom Rogers

Hi,

Tuesday, July 29, 2003, 2:40:55 PM, you wrote:


DV> If anyone knows how to force the arp table to be current, that would help.
DV> Sometimes a machine is on the network, and I *know* for a fact it is, but it
DV> doesn't show up in "arp -n" *grumble*.

DV> Follow the link below.
DV> http://daevid.com/examples/dhcp/

DV> Check out my resume. Hire me. ;-)
DV> http://resume.daevid.com/

DV> N'joy.

DV> Daevid.

You could loop through your ip adddresses that you are interested in
and send a couple of pings.
That should force the arp cache to be current for those ip's that
exist

--
regards,
Tom


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: DHCP web interface. New version.

am 29.07.2003 20:47:03 von Daevid Vincent

I already to that with ping and nmap. The problem lies BEFORE getting =
the
list. :)

"Arp -n" is my master IP generator/table. So if the IP isn't in there, I
don't know about it. I need a way to send a command line switch (which =
there
isn't) or another call to force "arp" to rebuild it's cache.

> -----Original Message-----
> From: Tom Rogers [mailto:trogers@kwikin.com]=20
> Sent: Tuesday, July 29, 2003 1:51 AM
> To: Daevid Vincent
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] DHCP web interface. New version.
>=20
>=20
> Hi,
>=20
> Tuesday, July 29, 2003, 2:40:55 PM, you wrote:
>=20
>=20
> DV> If anyone knows how to force the arp table to be current,=20
> that would help.
> DV> Sometimes a machine is on the network, and I *know* for a=20
> fact it is, but it
> DV> doesn't show up in "arp -n" *grumble*.=20
>=20
> DV> Follow the link below.=20
> DV> http://daevid.com/examples/dhcp/
>=20
> DV> Check out my resume. Hire me. ;-)
> DV> http://resume.daevid.com/
>=20
> DV> N'joy.=20
>=20
> DV> Daevid.
> =20
> You could loop through your ip adddresses that you are interested in
> and send a couple of pings.
> That should force the arp cache to be current for those ip's that
> exist
>=20
> --=20
> regards,
> Tom
>=20


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: DHCP web interface. New version.

am 29.07.2003 20:53:19 von Daevid Vincent

Well, a quick click on the URL I gave (http://daevid.com/examples/dhcp/)
would immediately show you what it was (live on my server), but in a
nutshell. I have a home LAN with many computers and other IP enabled =
devices
-- two TiVos, replayTV, Dell Audio Reciever, Zaurus, 8 computers!, three
notebooks, etc. (it's a big house!) and I'm an open wifi node. I wanted =
to
know what was on my network easily and in real time, complete with the
windows names for the computers. Then I kinda went buck-wild and added
icons, custom names, ping/nmap tests, sorting by IP, etc.... Amazingly I
couldn't find a tool -- command line or otherwise that did this =
seemingly
simple task. I mean, windows has 'network neighborhood', but that's only
good for windows machines or other conforming types.

This comes in very handy for any LAN, but you have to put it on the =
machine
that has the most 'arp' info. This is usually your DHCP server as it =
also
reads the dhcp.leases file to harvest names and lease times.

Pretty straight forward setup. Almost none in fact. Edit the .ini file =
with
your mac addresses and icons you want to use (if any).

Anyways, it's free and there for you if you want to see/play/use it.

d

> -----Original Message-----
> From: Chris W. Parker [mailto:cparker@swatgear.com]=20
> Sent: Monday, July 28, 2003 10:56 PM
> To: Daevid Vincent; php-general@lists.php.net
> Subject: RE: [PHP] DHCP web interface. New version.
>=20
>=20
> Daevid Vincent
> on Monday, July 28, 2003 9:41 PM said:
>=20
> > Heya. I've just put up a new version of the DHCP web front end if
> > anyone is using it or has a need for this type of thing.
>=20
> New version? I din't even know you HAD a version.
>=20
> So for us people that have never heard of this, what exactly=20
> does it do?
>=20
>=20
> thanks,
> chris.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: DHCP web interface. New version.

am 29.07.2003 21:04:55 von cparker

Daevid Vincent
on Tuesday, July 29, 2003 11:53 AM said:

> Well, a quick click on the URL I gave
> (http://daevid.com/examples/dhcp/) would immediately show you what it
> was (live on my server)

Actually, no, it doesn't "immediately show you what it was". That's why
I asked my question. I first clicked on the url, then tried to figure
out what was going on and what it was used for, that is, what purpose it
served.

You could probably do with putting the description you gave me on the
page itself.

> Pretty straight forward setup. Almost none in fact. Edit the .ini
> file with your mac addresses and icons you want to use (if any).

Does this mean it doesn't go out, search your network, and then report
back with everything it's found? Do you mean that I have to manually
specify each device I want to list? Am I misunderstanding you?


Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: DHCP web interface. New version.

am 29.07.2003 22:18:25 von Daevid Vincent

> > Pretty straight forward setup. Almost none in fact. Edit the .ini
> > file with your mac addresses and icons you want to use (if any).
>=20
> Does this mean it doesn't go out, search your network, and then report
> back with everything it's found? Do you mean that I have to manually
> specify each device I want to list? Am I misunderstanding you?

No. it *does* an 'arp -n' to find all the nodes on your network
automatically. It also uses that info to determine your active =
interfaces
(eth0, eth1, wlan0, etc...). So if your arp cache is up to date, then so =
is
this.

It shows if they are "(inactive)" by the ban circle.

It shows ping and nmap results. (only namps if ping fails. Assumes nmap =
will
pass if ping passes).

The dhcp_map.ini is used ONLY for custom icons and for custom names if =
the
MAC doesn't already have a name associated with it in =
/var/lib/dhcp.leases
file. This is useful for machines that have static IP's on your network =
for
example, or linux boxes that don't send that info (only windows boxes
send/set names automatically).


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: DHCP web interface. New version.

am 03.12.2003 08:06:12 von Daevid Vincent

Once again, I have a new version of my DHCP web page. The major fix in this
one is that it does an "nmap -v -p 80 192.168.1.0/24" (thanks to Mike Klinke
for the idea) to re-populate the "arp -n". The old version of my program
would not always show ALL devices on the network. Some would also show up as
"incomplete". I have removed all incomplete ones for this version, but you
could simply comment out the line to put them back if you want them. You can
specify the server's IP manually (as in the case of dual NIC cards), or let
the script figure it out for you.

http://daevid.com/examples/dhcp/

Daevid.


> -----Original Message-----
> From: Daevid Vincent [mailto:daevid@daevid.com]
> Sent: Monday, July 28, 2003 9:41 PM
> To: php-general@lists.php.net
> Subject: [PHP] DHCP web interface. New version.
>
> Heya. I've just put up a new version of the DHCP web front
> end if anyone is
> using it or has a need for this type of thing.
>
> Major feature of this version:
>
> * a bug where if the arp table showed an "(incomplete)", I
> ignored the entry
> since the MAC is the hash key, many machines wouldn't show
> up as they kept
> over writing each other (of course, they were bunk anyways)
> * ping & nmap tests (if ping fails, nmap is used as a backup)
> this is useful for firewalls that may block ICMP
> * tests can be disabled for radically faster page rendering
> (off by default)
> * 10 minute refresh by default rather than 10 second.
> * SORTING! by IP now, rather than arp entries
> * many more icons (tivo, zaurus, replay, linux, notebook,
> servers, DAR, etc)
> * complete/incomplete tally
> * Name in config file is only used if dhcp doesn't show a name already
>
> This is also IMHO an excellent way for a beginer or advanced
> coder alike to
> see some very useful OOP/PHP coding as I use arrays of
> objects, sorting by
> variables IN the object (custom sort algorithm with key
> integrity), hashing,
> system calls, regex parsing, DHTML, etc.
>
> If anyone knows how to force the arp table to be current,
> that would help.
> Sometimes a machine is on the network, and I *know* for a
> fact it is, but it
> doesn't show up in "arp -n" *grumble*.
>
> Follow the link below.
> http://daevid.com/examples/dhcp/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: DHCP web interface. New version.

am 18.07.2009 01:08:04 von Daevid Vincent

Once again I've updated this web tool.

The big difference is that now you don't need to be running DHCP on your Web
server. It works 'stand alone'. Perfect for those using a router box (as
most are I'm sure).

A while ago I switched from having my Gentoo box be my firewall, router,
wifi, dhcp, mail, web, svn, etc... (basically everything) to an Ubuntu box
that does web/mail/etc. and a DIR-655 router which does firewall and wifi
too. This broke the script.

http://daevid.com/examples/dhcp/

The next version when I get around to it, will be even more clean as right
now it uses 'arp' and 'nmap' to get the results. Turns out, I don't really
need 'arp' (which is also not reliable) and nmap (has XML output too) will
be perfect. Not sure when that will be, but I've got myself a Trac ticket to
rewrite this.

> -----Original Message-----
> From: Daevid Vincent [mailto:daevid@daevid.com]
> Sent: Tuesday, December 02, 2003 11:06 PM
> To: php-general@lists.php.net
> Cc: 'MKlinke'
> Subject: RE: [PHP] DHCP web interface. New version.
>
> Once again, I have a new version of my DHCP web page. The
> major fix in this
> one is that it does an "nmap -v -p 80 192.168.1.0/24" (thanks
> to Mike Klinke
> for the idea) to re-populate the "arp -n". The old version of
> my program
> would not always show ALL devices on the network. Some would
> also show up as
> "incomplete". I have removed all incomplete ones for this
> version, but you
> could simply comment out the line to put them back if you
> want them. You can
> specify the server's IP manually (as in the case of dual NIC
> cards), or let
> the script figure it out for you.
>
> http://daevid.com/examples/dhcp/
>
> Daevid.
>
>
> > -----Original Message-----
> > From: Daevid Vincent [mailto:daevid@daevid.com]
> > Sent: Monday, July 28, 2003 9:41 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] DHCP web interface. New version.
> >
> > Heya. I've just put up a new version of the DHCP web front
> > end if anyone is
> > using it or has a need for this type of thing.
> >
> > Major feature of this version:
> >
> > * a bug where if the arp table showed an "(incomplete)", I
> > ignored the entry
> > since the MAC is the hash key, many machines wouldn't show
> > up as they kept
> > over writing each other (of course, they were bunk anyways)
> > * ping & nmap tests (if ping fails, nmap is used as a backup)
> > this is useful for firewalls that may block ICMP
> > * tests can be disabled for radically faster page rendering
> > (off by default)
> > * 10 minute refresh by default rather than 10 second.
> > * SORTING! by IP now, rather than arp entries
> > * many more icons (tivo, zaurus, replay, linux, notebook,
> > servers, DAR, etc)
> > * complete/incomplete tally
> > * Name in config file is only used if dhcp doesn't show a
> name already
> >
> > This is also IMHO an excellent way for a beginer or advanced
> > coder alike to
> > see some very useful OOP/PHP coding as I use arrays of
> > objects, sorting by
> > variables IN the object (custom sort algorithm with key
> > integrity), hashing,
> > system calls, regex parsing, DHTML, etc.
> >
> > If anyone knows how to force the arp table to be current,
> > that would help.
> > Sometimes a machine is on the network, and I *know* for a
> > fact it is, but it
> > doesn't show up in "arp -n" *grumble*.
> >
> > Follow the link below.
> > http://daevid.com/examples/dhcp/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php