On campus I tried the last two command strings suggested.  The output is
posted below.  I needed to break the second one because it stopped
giving output after the first few lines


--- begin output

[EMAIL PROTECTED]:~$ 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
COLUMBIA
---------------

KSY
---------------

UNDERARMOUR
---------------
        print$          Disk      Printer Drivers
        Printer         Printer   Microsoft Office Document Image Writer

unknown
---------------

[EMAIL PROTECTED]:~$ for i in `export LC_ALL=C; findsmb 2> /dev/null | cut -f 1 
-d ' ' | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | uniq | sort`; do echo $i; 
echo ---------------; export LC_ALL=C; smbclient -N -L $i 2> /dev/null | grep 
Printer; echo; done
10.254.254.253
---------------

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to