Hi, We have installed Samba on our unix box. I am trying to send messages using "winpopup" to our NT computer from our Unix server. I have added the IP addresses and names we are trying to send the messages to in the lmhosts file and I also included the DNS server IP address in the smb.conf file. The options for address resolution are lmhosts wins I am trying to send the message doing the following: echo "My message" | opt/samba/bin/smbclient -R lmhosts -M hostname Added interface ip=x.x.x.x bcast=x.x.x.x nmask=x.x.x.x error connecting to destIP:b (Invalid argument) Connection to destIP failed I also tried this using the IP address doing the following echo "My message" | opt/samba/bin/smbclient -I Ipaddress However, this did not work and it came back with the smbclient options. What is wrong with this method? Can you please give some information on how to make this work. It is really urgent since we need to send those message to the users asap. Thanks for your support. Mona Gourgy Network Analyst Stelco Inc. Phone: (905) 528-2511 ext. 2502 Fax: (905) 577- 4533 mailto:mona.gourgy@stelco.ca
Mona, I am able to make this work as you describe. It looks from the error that your lmhosts file entries might not be formatted properly; can you post the actual name you are using (hostname) and the entry in your lmhost file for that name? mine works simply if I do the following: lmhosts file entry: 15.44.48.50 captain command: echo "My message" | opt/samba/bin/smbclient -R lmhosts -M captain you might also want to post your smb.conf file, so the interfaces, bind interfaces only, etc. lines can be examined... Hope this helps, Don -----Original Message----- From: Gourgy, Mona [mailto:Mona.Gourgy@stelco.ca] Sent: Monday, December 11, 2000 2:05 PM To: 'samba@samba.org' Subject: smbclient question Hi, We have installed Samba on our unix box. I am trying to send messages using "winpopup" to our NT computer from our Unix server. I have added the IP addresses and names we are trying to send the messages to in the lmhosts file and I also included the DNS server IP address in the smb.conf file. The options for address resolution are lmhosts wins I am trying to send the message doing the following: echo "My message" | opt/samba/bin/smbclient -R lmhosts -M hostname Added interface ip=x.x.x.x bcast=x.x.x.x nmask=x.x.x.x error connecting to destIP:b (Invalid argument) Connection to destIP failed I also tried this using the IP address doing the following echo "My message" | opt/samba/bin/smbclient -I Ipaddress However, this did not work and it came back with the smbclient options. What is wrong with this method? Can you please give some information on how to make this work. It is really urgent since we need to send those message to the users asap. Thanks for your support. Mona Gourgy Network Analyst Stelco Inc. Phone: (905) 528-2511 ext. 2502 Fax: (905) 577- 4533 mailto:mona.gourgy@stelco.ca
Mona, On Mon, 11 Dec 2000 14:04:33 -0500, Gourgy, Mona wrote:>I am trying to send the message doing the following: > >echo "My message" | opt/samba/bin/smbclient -R lmhosts -M hostname > >Added interface ip=x.x.x.x bcast=x.x.x.x nmask=x.x.x.x >error connecting to destIP:b (Invalid argument) >Connection to destIP failedThis is definitely not what it tells you. Post the whole command and post the whole error message. The command echo "Hello World" | smbclient -M netbios_name works fine here. Why are you using -R ?>I also tried this using the IP address doing the following > >echo "My message" | opt/samba/bin/smbclient -I Ipaddress > >However, this did not work and it came back with the smbclient >options. What is wrong with this method?You should better say: echo "message" | smbclient -M netbios_name -I IPaddress This is only for the case where the netbios name cannot be resolved. This should not happen as long as you are in the same subnet.>Can you please give some information on how to make this work. It is >really urgent since we need to send those message to the users asap.I don't like this "asap". My managers like it. They pay me. Regards, Robert -- --------------------------------------------------------------- Robert.Dahlem@gmx.net Fax +49-69-432647 --------------------------------------------------------------- Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email software; far better than Outlook. Try it sometime.
When I type smbclient -L localhost it works, but when I type my win98 pc that is connectet to the lan this way smbclient -L win98pc I get connection refused. Why? ====Investigating the Norwegain 4.th Secret Service The multiheaded animal. http://hjem.sol.no/altiett/knut_ove_hauge_kuren.html ______________________________________________________ Sjekk sn?rapporter... fra 500 ski-destinasjoner i Europa p? http://no.snow.yahoo.com/