I'm trying to do something that should be simple, but my current solution isn't working 100% All I need is a list of smb shares on the network. I'm doing this: /usr/bin/nmblookup -M -- - and then use this on each ip returned: /usr/bin/smbclient -g -p 139 -NL <ip addr> That works for most cases but it fails to find all the shares (compared to the mac Finder) -steve
smbtree may do what you are looking for. Jon 2008/9/12 Steve Gehrman <sgehrman@cocoatech.com>:> I'm trying to do something that should be simple, but my current solution > isn't working 100% > > All I need is a list of smb shares on the network. > > I'm doing this: > > /usr/bin/nmblookup -M -- - > > and then use this on each ip returned: > > /usr/bin/smbclient -g -p 139 -NL <ip addr> > > That works for most cases but it fails to find all the shares (compared to > the mac Finder) > > -steve > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
Reasonably Related Threads
- Trouble finding all smb shares on network
- hostnames resolve to wrong IPs - and sometimes shares become inaccessible
- samba - bind : program guideline suggestion
- query WINS for all registered machines in an workgroup or domain
- smbtree vs nmblookup while looking for servers list