smbclient...

Christopher R. Hertel crh at ubiqx.mn.org
Wed Jun 4 18:39:51 GMT 2003


On Wed, Jun 04, 2003 at 09:03:28PM +0300, Eugen SAVIN wrote:
> Dear Sir, 
> Thank you for answering me.
> Also thanka to Andrew.
> 
> I have one more question, nmblookup works fine, I could use some code
> from there.
> 
> What happens when the remote host, that one I want to send a winpopup
> message is located onto a diffrent C class?

What the heck do you mean by a "C class"?  Are you talking about the 
old-fashioned IP address boundaries?  Ignore those.  It all depends upon 
the configuration of your local subnet.

> I will query the remote host with nmblookup and I will obtain a NetBios
> name. After that I will use smbclient -M {hostname}.
> 
> The smbclient will send a broadcast message to the local C class. Am I
> mistaking? 

smbclient will do a name lookup.  How the name lookup is done depends upon 
your smb.conf settings.  Some namelookups require broadcasts.

You can bypass that step using the -I option.  Just use
smbclient -I {IP} -M {hostname}

> The point is: How can I send winpopup messages to a remote windows host
> that does not reside into the same C class the sender is?

First, learn about classless subnets.  We don't use "class C" or "class B"
any more.

Good luck.

Chris -)-----

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org



More information about the samba-technical mailing list