More debug info on SAMBA 2.2 CVS and printer drivers...
Michael Sweet
mike at easysw.com
Thu Mar 14 08:06:46 GMT 2002
Current 2.2 CVS doesn't seem to have working printer driver code; I
know this has been reported before, but here are my $0.02:
I just started with a fresh install of 2.2 CVS, compiled with
CUPS support, on a Linux 2.4.x system (RH 7.2) with 7 printers
defined (running CUPS).
Before starting SAMBA:
# lpstat -p
printer CLJ4550 is idle. enabled since Jan 01 00:00
printer LJ2100TN is idle. enabled since Jan 01 00:00
printer LJ4000 is idle. enabled since Jan 01 00:00
printer N2025 is idle. enabled since Jan 01 00:00
printer SP5500 is idle. enabled since Jan 01 00:00
printer SP9000 is idle. enabled since Jan 01 00:00
printer test is idle. enabled since Jan 01 00:00
# ls -l /var/cache/samba
total 0
After starting SAMBA:
# ls -l /var/cache/samba
total 20
-rw-r--r-- 1 root root 8192 Mar 14 10:50 connections.tdb
-rw------- 1 root root 696 Mar 14 10:50 messages.tdb
-rw-r--r-- 1 root root 20 Mar 14 10:50 nmbd.pid
-rw-r--r-- 1 root root 20 Mar 14 10:50 smbd.pid
# rpcclient -U root localhost
INFO: Debug class all level = 4 (pid 12675 from pid 12675)
Enter Password:
session setup ok
Domain=[ESP] OS=[Unix] Server=[Samba 2.2.4-pre]
rpcclient $> enumprinters
flags:[0x800000]
name:[]
description:[]
comment:[]
flags:[0x800000]
name:[]
description:[]
comment:[]
flags:[0x800000]
name:[]
description:[]
comment:[]
flags:[0x800000]
name:[]
description:[]
comment:[]
flags:[0x800000]
name:[]
description:[]
comment:[]
flags:[0x800000]
name:[]
description:[]
comment:[]
flags:[0x800000]
name:[]
description:[]
comment:[]
rpcclient $> quit
This is curious - 7 blank printer entries, while smbclient shows:
# smbclient -L localhost
INFO: Debug class all level = 4 (pid 12680 from pid 12680)
added interface ip=65.120.94.159 bcast=65.120.94.255
nmask=255.255.255.0
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[ESP] OS=[Unix] Server=[Samba 2.2.4-pre]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba Server)
ADMIN$ Disk IPC Service (Samba Server)
CLJ4550 Printer HP Color LaserJet 4550 PS v3010.107
LJ2100TN Printer HP LaserJet 2100 Series PS
LJ4000 Printer HP LaserJet 4000 Series PS
N2025 Printer Xerox DocuPrint N2025 PS
SP5500 Printer EPSON Stylus Pro 5500, ESP Print Pro
v4.2.2
SP9000 Printer EPSON Stylus Pro 9000, ESP Print Pro
v4.2.1
test Printer HP LaserJet 2100 Series PS
Server Comment
--------- -------
BRAVO Samba 2.2.2 Test Server
DNS Samba Server
POPPA Samba Server
Workgroup Master
--------- -------
ESP BRAVO
This shows that SAMBA at least sees the printers and can get all of
the info from them, and the TDB files for the printers have been
created:
# ls -l /var/cache/samba
total 76
-rw-r--r-- 1 root root 696 Mar 14 10:55 brlock.tdb
-rw-r--r-- 1 root root 284 Mar 14 10:55 browse.dat
-rw-r--r-- 1 root root 8192 Mar 14 10:52 connections.tdb
-rw-r--r-- 1 root root 696 Mar 14 10:55 locking.tdb
-rw------- 1 root root 696 Mar 14 10:52 messages.tdb
-rw-r--r-- 1 root root 20 Mar 14 10:52 nmbd.pid
-rw------- 1 root root 8192 Mar 14 10:55 ntdrivers.tdb
-rw------- 1 root root 696 Mar 14 10:55 ntforms.tdb
-rw------- 1 root root 8192 Mar 14 10:55 ntprinters.tdb
-rw------- 1 root root 8192 Mar 14 10:55 printing.tdb
-rw------- 1 root root 8192 Mar 14 10:55 share_info.tdb
-rw-r--r-- 1 root root 20 Mar 14 10:52 smbd.pid
-rw-r--r-- 1 root root 8192 Mar 14 10:52 unexpected.tdb
However, it looks like the base printer information hasn't been
copied over to the ntprinters.tdb file (I see each printer listed in
the file, but most of the data is 0's up to the B's)
I can provide files as needed...
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw.com
Printing Software for UNIX http://www.easysw.com
More information about the samba-technical
mailing list