Solved

Samba Computer Listing

Posted on 1998-05-10
3
290 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
  • 2
3 Comments
 

Accepted Solution

by:
joker1 earned 40 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

680 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