Bernhard Rosenkraenzer
2003-Oct-18 10:26 UTC
[Samba] Getting a list of all possible smb mounts
Hi, I'm currently doing this to get a list of all possible SMB mounts: nmblookup -M -- - [grab list of master browsers] for every master browser: smbclient -L {MASTER BROWSER IP} -U user%pass * Parse everything after "Workgroup.*Master" to get list of workgroups and workgroup masters for every found workgroup master: smbclient -L {WORKGROUP MASTER IP} -U user%pass * Parse everything between "Server.*Comment" and "Workgroup.*Master" to get list of hosts for every found host: smbclient -L {HOST} -U user%pass * Parse everything between "Sharename.*Type.*Comment" and "Server.*Comment" to get available mounts This mostly works, but has a couple of problems, such as * smbclient -L some_ip -U user%pass apparently hangs for 10+ minutes if some_ip belongs to a Windoze box with a paranoid firewall [Tried with 2.2.8a, 3.0.0, 3.0.1pre1 and current CVS 3.0 branch] * smbclient -L {WORKGROUP MASTER IP} -U user%pass doesn't always find all machines in the workgroup, and sometimes finds machines that have been turned off ages ago (I know this isn't samba's fault). Is there a better way to get a list of available SMB mounts, or at least a workaround for the long hangs? LLaP bero -- Ark Linux - Linux for the masses http://www.arklinux.org/ Redistribution and processing of this message is subject to http://www.arklinux.org/terms.php
Possibly Parallel Threads
- Getting a list of all possible smb mounts (and bug report on smbtree)
- syslinux 3.07 fails on MSI Hermes 651 boxes
- [ANNOUNCE] xf86-video-ark 0.7.0
- [ANNOUNCE] xf86-video-ark 0.7.1
- [Bug 105916] New: "xset dpms force off" can't be undone on hp omen 17-an0xx laptop