in reply to cleanest/most efficient way to do this

Well I think that setting up simple methods to grab the info from the pdc would be the best manner. As for doing the name lookups and pinging the host. Why not be simple and just
$ping = `ping $host`; $nslookup = `nslookup $host`;
Then you can printout the return, regex it, parse it, do whatever you want. No need to use Net::Ping or anything on a task as simple as this. Simple fill and array with all the hosts form the dumpfile, then
foreach my $host (@hosts) { $ping = `ping $host`; $nslookup = `nslookup $host'; print "Ping result is $ping \n"; print "Nslookup result is $nslookup for host $host \n"; }
Hopefully I helped some.
P.S. Make sure you are using ` and not ' around those system commands, to pipe it to the system and not just assing a var.
Tradez
"Never underestimate the power of stupidity"
- Bullet Tooth Tony, Snatch (2001)

Replies are listed 'Best First'.
Re: Re: cleanest/most efficient way to do this
by RayRay459 (Pilgrim) on Jan 26, 2002 at 01:10 UTC
    Tradez
    Thank you for taking the time to answer my posting. Your advice is very much appreciated. since i would consider myself an almost middle tier Perl hack, i want to try to stay away from using system calls. i too think that would be the quickest and easiest way to complete this, but i am trying to use this as a means to grow my Perl skills. hence possibly trying to create my own module with scripts i already have made... :-) (maybe).
    Thnx again though for the advice.
    Ray