LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2003, 11:44 AM   #1
will_k
LQ Newbie
 
Registered: Aug 2003
Location: Seattle
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
Samba - nmblookup


After searching a few hours on google and looking at the man pages for nmblookup and smblcient, I cant seem to find a command to list smb workgoups and shares.

More:

I'm logged into my webserver (redhat9) remotely via ssh. The webserver is networked with other computers containing windows shares. I don't know their ip addresses, workgroup names, or netbios names. And, I don't really want to use nmap to scan and find them all. Is there a better way to discover workgroups and shares via command line?

Thanks in advance,

Will

Last edited by will_k; 08-22-2003 at 05:55 AM.
 
Old 08-22-2003, 12:39 AM   #2
Neo_the_one
LQ Newbie
 
Registered: Aug 2003
Location: Chennai
Distribution: RH 8
Posts: 8

Rep: Reputation: 0
in my system just doing
# smbclient -L localhost -N
does the magic.
 
Old 08-22-2003, 05:46 AM   #3
will_k
LQ Newbie
 
Registered: Aug 2003
Location: Seattle
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Right, well that shows great info for localhost. But I need to know the the shares and workgroups for the other machines on the network.
 
Old 08-25-2003, 01:48 AM   #4
Neo_the_one
LQ Newbie
 
Registered: Aug 2003
Location: Chennai
Distribution: RH 8
Posts: 8

Rep: Reputation: 0
do
#smbclient -L <<REMOTE MACHINE NAME>> -N

this is true for a particular n/w and a particular workgroup
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 4: Samba running but nmblookup doesn't work and can't see in windows lsgko Linux - Networking 3 09-14-2005 11:10 PM
nmblookup azeem81 Linux - Software 0 05-31-2004 02:33 PM
nmblookup ? Menestrel Linux - Networking 5 05-22-2004 03:55 AM
Samba problem, nmblookup not finding W2K box dwynter Linux - Networking 5 06-24-2003 02:44 PM
Samba Prob: nmblookup failure paulmann Linux - Networking 2 06-09-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration