So we should use a command line based on Netbios names and not on IPs,
like this one

for i in `export LC_ALL=C; findsmb 2> /dev/null | egrep
'^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tr -s " " | cut -f2 -d ' ' | uniq |
sort`; do echo $i; echo ---------------; export LC_ALL=C; smbclient -N
-L $i 2> /dev/null | grep Printer; echo; done

to reliably find all printer shares?

Have you servers who require a password to list their shares? If so, are
these servers correctky skipped and is the search continued on the next
server?

-- 
adding smb printer difficult on large networks
https://launchpad.net/bugs/58403

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to