There is a script, I'm sure, I even printed it once, edited and used it. 
However, I cannot find it now. The idea of the script was to use smbclient to 
generate a directory with links to e.g. /smb/137.224.422.224-whatever/ which 
was then automounted with autofs. For this also a script was needed. For the 
last step I do have a script. It's at http://wesp.wau.nl/zoek/smbhelp.html. 
It's in dutch, but the script is in perl. You can use parts of this script to 
do what you want.

There you can also find a link to GPL perl scripts that periodically index 
all smb shares in a given ip-range. They only scan for shares without 
password however.

There's a sourceforge project that does the same. I have no experience with 
it, just saw their webpage: http://femfind.sourceforge.net/

Jos

On Monday 28 January 2002 21:18, you wrote:
> Is there a script that uses smbclient -L or something to
> figure out the available shares on a given windows smb host,
> similar to the auto.net script that uses showmount to figure
> out the available mountpoints for a given NFS host?
>
> The goal is to have a /smb directory that will function just
> like my NFS /net directory..
>
> currently I have auto.misc with the line
> *  -fstype=smbfs,username=guest,password= ://&/c
> But not all shares are called "C". I guess there is no
> catch-all solution for the password thing, but maybe someone
> has written the script for finding the shares?
>
> TIA,
> Christoph

-- 
ir. J. M. P. van den Oever, http://jos.vandenoever.info/
Laboratory of Physical Chemistry and Colloid Science, Wageningen University
Dreijenplein 6, Wageningen, The Netherlands
tel:    (31) 317 484776

Reply via email to