[VPM] network discovery

Jeremy Stashewsky jhs at uvic.ca
Wed Jun 9 13:36:04 CDT 2004


Try fping: http://www.fping.com  It's not Perl, but you can definitely call
it from there.

    fping 192.168.1.1 192.168.1.2 ... 192.168.1.254
or
    fping -g 192.168.1.0/24

The "24" corresponds to a 24-bit subnet mask, which is 2**(32-24) = 2^8 =
256 hosts.
If you read the man page, you can adjust the timing and parallelism to speed
things up.

~jeremy

----- Original Message ----- 
From: "Jeremy Aiyadurai" <jeremygwa at hotmail.com>
To: <victoria-pm at pm.org>
Sent: Wednesday, June 09, 2004 12:05 AM
Subject: [VPM] network discovery


> hi all,
>
> how do i discover all hosts (ip's and hostnames) on a lan, using perl.
>
> my reason is that i am working on a client/server app. my ip's change from
> time to time on my network, depending on when and which machines are
> shutdown/restarted, and it is hard for me to find any pattern, if there is
> such a thing.
>
>
> thanks in advance for any help.
>
> Jeremy A.
>
> _________________________________________________________________
> Free yourself from those irritating pop-up ads with MSn Premium. Get
2months
> FREE*
>
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
>
> _______________________________________________
> Victoria-pm mailing list
> Victoria-pm at pm.org
> http://www.pm.org/mailman/listinfo/victoria-pm
>




More information about the Victoria-pm mailing list