smbclient...

Esh, Andrew Andrew_Esh at adaptec.com
Wed Jun 4 14:19:58 GMT 2003


Why not use nmblookup to translate the IP address into the netbios name?

[root at pluto bin]# nmblookup -U 10.105.102.26 -T '*'
querying * on 10.105.102.26
esh.tricord.com, 10.105.102.26 *<00>

My machine name is 'ESH'.

[root at pluto bin]# echo "Hi there" | smbclient -M ESH
added interface ip=10.105.102.25 bcast=10.105.103.255 nmask=255.255.252.0
Connected. Type your message, ending it with a Control-D
sent 10 bytes

-----Original Message-----
From: Eugen SAVIN [mailto:seugen at abc.ro]
Sent: Wednesday, June 04, 2003 5:58 AM
To: samba-technical at lists.samba.org
Subject: smbclient...


Dear Sirs,

I want to make the smbclient code work with some other application, so
that I can easily send winpopup messages to some windows machines. The
problem is that we have diffrent C-classes, and we would like to send
the message based on the IP address and not the NetBios name.

Can you help me with this?

Thanks in advance.
Eugen.

Here is some smbclient debugging output:

Connecting to 193.231.240.2 at port 139
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
write_socket(3,72)
write_socket(3,72) wrote 72
Sent session request
got smb length of 1
size=1
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
session request failed



More information about the samba-technical mailing list