?
Solved

Samba Computer Listing

Posted on 1998-05-10
3
Medium Priority
?
303 Views
Last Modified: 2010-04-22
Is there a way to get Samba to show a list of all the computers on the current workgroup that are currently exporting directories?  I was looking for something kinda like the Win95 Network Neighborhood, except it doesn't have to be graphical.
0
Comment
Question by:Sylver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
joker1 earned 120 total points
ID: 1635854
First you use "nmblookup -M workgroup" to check for the master browser of your workgroup.
Then you use "smbclient -L masterbrowser". The output of smbclient are the shares of the master browser and a browse list.
The browse list contains all computers which are exporting directories.
Then you can use "smbclient -L computer" to find out which directories the computers are exporting.
0
 

Author Comment

by:Sylver
ID: 1635855
T did that and go the error below:

[root@gaea dragon]# smbclient -L 18.228.0.45
Added interface ip=18.228.0.155 bcast=18.228.255.255 nmask=255.255.0.0
Session request failed (131,130) with myname=GAEA destname=18.228.0.45
Called name not present
Try to connect to another name (instead of 18.228.0.45)
You may find the -I option useful for this
0
 

Expert Comment

by:joker1
ID: 1635856
With my configuration it works fine.

Sorry, that I couldn't help you, but perhaps have a look at the BROWSING.txt that comes with samba.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question