LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-15-2003, 05:52 AM   #1
amaze
LQ Newbie
 
Registered: Aug 2003
Location: UK
Posts: 19

Rep: Reputation: 0
Question Why does smbclient require NetBIOS name when windows doesn't?


Hi,

As I send a "net send" (using smbclient) message to various machines within the company WAN the only way of me finding out the NETBIOS name is to run a NETBIOS scan on that IP alone. Then parse the text and gather the NETBIOS information that way, so I can use it with the smbclient -M flag.

The command would look like this

echo blah | smbclient -M <netbios name destination> -I <IP address of destination>

Under windows you can send a NET SEND message just using the machines IP address, do you feel this is possible under Linux?

I'm slightly confused why smbclient requires the NETBIOS name.

Any thoughts?

Thanks

Last edited by amaze; 08-15-2003 at 05:54 AM.
 
Old 08-15-2003, 06:08 AM   #2
tefal
Member
 
Registered: Jul 2003
Location: S. Wales
Distribution: Fedora Core 5, SuSE 9.1 Pro
Posts: 30

Rep: Reputation: 15
Linux does not do a scan using NetBIOS as it should have a list of machine names in the /etc/hosts file.

I may be wrong, but I think NetBIOS only gets names of machines in the local network IP range, which is where either DNS or WINS comes into play. If these aren't used, then that's when a problem arises.

If I'm wrong at all, anyone, please let me know.

-Tefal
 
Old 08-15-2003, 06:19 AM   #3
amaze
LQ Newbie
 
Registered: Aug 2003
Location: UK
Posts: 19

Original Poster
Rep: Reputation: 0
Well what IF you don't have all the hosts in /etc/hosts? I don't want ot make my script rigid and non-scalable by HAVING to add hosts to /etc/hosts everytime I need to "net send" to a different machine on the WAN.

If WINDOWS can just send to a IP address (even if there are no entries into any local host file) why can't linux's implementation, i.e. smbclient.

Was this an oversight or a feature? Or am I missing something?

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smbclient copy from Linux to windows depam Linux - Software 4 01-02-2010 04:01 PM
Smbclient and Windows 2003 Server scostopoulos Linux - Networking 1 09-02-2004 02:36 AM
Does Wine require the installation of windows? SuSE_User Linux - Software 1 02-25-2004 06:27 PM
Netbios settins in windows 2000 elynum Linux - Networking 1 02-06-2004 10:09 PM
xsmbrowser netbios networking with windows warpig Linux - Networking 2 05-23-2003 07:42 AM


All times are GMT -5. The time now is 12:00 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration