[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Samba Computer Listing

Posted on 1998-05-10
3
Medium Priority
?
308 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses

656 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