libsmbclient -I equivalent?

Mike Rosack rosack at
Mon Apr 8 18:52:02 GMT 2002

I'm trying to upgrade an smbclient-based share crawler I've written to
libsmbclient and Alain's perl Filesys::SmbClient package.  This is for the
Georgia Tech campus network, so the crawler will span multiple subnets.

The problem I'm having is that about half of the clients I query won't
recognize an IP based smb URL like this: smb://  The
campus WINS server is flaky, plus there are many duplicate hostnames over
the various subnets, so using it isn't really the answer in this scenario.

What I need is some way to write the URL with the hostname like this:
smb://hostname/share, and pass in the IP address to try to connect to.  Sort
of like doing this in smbclient:

smbclient //hostname/share -I

Is there some way to do this that I'm missing?

Thanks in advance,

Mike Rosack
rosack at

More information about the samba-technical mailing list