[Bug 58403] Re: adding smb printer difficult on large networks
Ryan Rawdon
flieslikeabrick at gmail.com
Wed Oct 18 18:42:48 UTC 2006
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
ryan at ryanlc1:~$ 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
---------------
ryan at ryanlc1:~$ 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
More information about the desktop-bugs
mailing list