Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I want to make a spider that collects information about files that are shared on Windows machines in my network.Would you tell me is there some module that will help me do this.I am searching for module with functionallity like smbclient.I would run this spider on Linux machine.. greetings

Replies are listed 'Best First'.
Re: Netbios question
by waswas-fng (Curate) on Jun 18, 2003 at 20:32 UTC
    checkout Filesys::SmbClientParser for the smbclient usage, and you can use a range of IP addresses for your internal network and ping to test if they are active before you try to list their shares to save some timeout time.

    -Waswas
      a pretty easy method is to loop through the IP's calling
      open ( COMMAND, "nmblookup -A $IPAddress |" ); my @DATA = <COMMAND>; close COMMAND; parse (@DATA); #using regex