Problems with printing=plp

Rudolf Kollien Rudolf.Kollien at kollien.de
Sun Jun 20 18:29:06 GMT 1999


Hello,

i've some problems with the plp printer spooler on linux:
I changed from bsd printing to plp printing.
Previously (with bsd style printing) i was able to browse and delete active
printjobs, stop and activate printers from within the win9x/winnt boxes.
After changing to plp this is no longer possible. The printjobs themself are
still printed.

Some output in the log.smb (with debug level = 50)
On starting up:
  ...
  doing parameter printing = plp
  doing parameter printcap name = /etc/printcap
  doing parameter print command = lpr -P %p -l %s
  doing parameter lppause command = lpc stop %p
  doing parameter lpresume command = lpc start %p
  doing parameter lpq command = lpq -P %p
  doing parameter lprm command = lprm -P %p %j
  ...
  Processing section "[HPLJ3]"
  doing parameter comment = HP LaserJet 3P
  doing parameter public = yes
  doing parameter printable = yes
  doing parameter writeable = no
  doing parameter printer = HPLJ3
[1999/06/20 20:14:25, 3] param/loadparm.c:lp_load(2542)
  pm_process() returned Yes
[1999/06/20 20:14:25, 0] param/loadparm.c:service_ok(1747)
  No path in service HPLJ3 - using /tmp
[1999/06/20 20:14:25, 3] param/loadparm.c:lp_add_ipc(1516)
  adding IPC service
[1999/06/20 20:14:25, 7] param/loadparm.c:lp_servicenumber(2634)
  lp_servicenumber: couldn't find faxprint
[1999/06/20 20:14:25, 3] param/loadparm.c:lp_add_printer(1551)
  adding printer service faxprint
[1999/06/20 20:14:25, 6] param/loadparm.c:lp_file_list_changed(1805)
  lp_file_list_changed()
  ...
---------------------------------------------------------------------------
When accessing the printer status from a winXX bos:
  ...
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(475)
  smb_bcc=135
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2832)
  [000] 02 50 43 20 4E 45 54 57  4F 52 4B 20 50 52 4F 47  .PC NETW ORK PROG
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [010] 52 41 4D 20 31 2E 30 00  02 58 45 4E 49 58 20 43  RAM 1.0. .XENIX C
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [020] 4F 52 45 00 02 4D 49 43  52 4F 53 4F 46 54 20 4E  ORE..MIC ROSOFT N
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [030] 45 54 57 4F 52 4B 53 20  31 2E 30 33 00 02 4C 41  ETWORKS  1.03..LA
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [040] 4E 4D 41 4E 31 2E 30 00  02 57 69 6E 64 6F 77 73  NMAN1.0. .Windows
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [050] 20 66 6F 72 20 57 6F 72  6B 67 72 6F 75 70 73 20   for Wor kgroups
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [060] 33 2E 31 61 00 02 4C 4D  31 2E 32 58 30 30 32 00  3.1a..LM 1.2X002.
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [070] 02 4C 41 4E 4D 41 4E 32  2E 31 00 02 4E 54 20 4C  .LANMAN2 .1..NT L
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [080] 4D 20 30 2E 31 32 00                              M 0.12.
[1999/06/20 20:14:34, 3] smbd/process.c:switch_message(448)
  switch message SMBnegprot (pid 24468)
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [XENIX CORE]
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [MICROSOFT NETWORKS 1.03]
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [LANMAN1.0]
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [Windows for Workgroups 3.1a]
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [LM1.2X002]
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [LANMAN2.1]
[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [NT LM 0.12]
[1999/06/20 20:14:34, 6] param/loadparm.c:lp_file_list_changed(1805)
  lp_file_list_changed()
  file /etc/smb.conf -> /etc/smb.conf  last mod_time: Sun Jun 20 20:00:46
1999

[1999/06/20 20:14:34, 6] param/loadparm.c:lp_file_list_changed(1805)
  lp_file_list_changed()
  file /etc/smb.conf -> /etc/smb.conf  last mod_time: Sun Jun 20 20:00:46
1999

[1999/06/20 20:14:34, 3] smbd/negprot.c:reply_negprot(409)
  Selected protocol NT LM 0.12
[1999/06/20 20:14:34, 5] smbd/negprot.c:reply_negprot(416)
  negprot index=7
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(459)
  size=84
  smb_com=0x72
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=1
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(465)
  smb_tid=0
  smb_pid=51966
  smb_uid=100
  smb_mid=0
  smt_wct=17
  ...
[1999/06/20 20:14:34, 3] smbd/process.c:switch_message(448)
  switch message SMBtrans (pid 24468)
[1999/06/20 20:14:34, 4] smbd/uid.c:become_user(209)
  Skipping become_user - already user
[1999/06/20 20:14:34, 3] smbd/ipc.c:reply_trans(3612)
  trans <\PIPE\LANMAN> data=0 params=33 setup=0
[1999/06/20 20:14:34, 5] smbd/ipc.c:reply_trans(3623)
  calling named_pipe
[1999/06/20 20:14:34, 3] smbd/ipc.c:named_pipe(3469)
  named pipe command on <LANMAN> name
[1999/06/20 20:14:34, 3] smbd/ipc.c:api_reply(3414)
  Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=33,mdrcnt=1024,mprcnt=6)
[1999/06/20 20:14:34, 3] smbd/ipc.c:api_reply(3418)
  Doing DosPrintQGetInfo
[1999/06/20 20:14:34, 3] smbd/ipc.c:api_DosPrintQGetInfo(823)
  PrintQueue uLevel=3 name=HPLJ3
[1999/06/20 20:14:34, 3] printing/printing.c:get_printqueue(1004)
  Using cached lpq output
[1999/06/20 20:14:34, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2: Local  printer 'HPLJ3' on sigur.kollien.de:

[1999/06/20 20:14:34, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2:   Printing (started at Jun 20 20:06:21, attempt 1).

[1999/06/20 20:14:34, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2:   Rank Owner    Pr  Job Host        Files                   % Form
Size Time

[1999/06/20 20:14:34, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2: active kolli    X     2 sigur       Testseite               0    -
19.0K 19:43

[1999/06/20 20:14:34, 4] smbd/ipc.c:api_DosPrintQGetInfo(896)
  printqgetinfo: errorcode 0
[1999/06/20 20:14:34, 5] smbd/ipc.c:copy_trans_params_and_data(156)
  copy_trans_params_and_data: params[0..6] data[0..127]
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(459)
  size=191
  smb_com=0x25
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=1
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(465)
  smb_tid=1
  smb_pid=43136
  smb_uid=100
  smb_mid=128
  smt_wct=10
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[0]=6 (0x6)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[1]=127 (0x7F)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[2]=0 (0x0)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[3]=6 (0x6)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[4]=56 (0x38)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[5]=0 (0x0)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[6]=127 (0x7F)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[7]=64 (0x40)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[8]=0 (0x0)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(470)
  smb_vwv[9]=0 (0x0)
[1999/06/20 20:14:34, 5] lib/util.c:show_msg(475)
  smb_bcc=136
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2832)
  [000] 00 00 00 00 00 7F 00 00  00 2C 00 00 00 05 00 00  ........ .,......
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [010] 00 00 00 05 00 32 00 00  00 33 00 00 00 3C 00 00  .....2.. .3...<..
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [020] 00 3D 00 00 00 00 00 00  00 4C 00 00 00 52 00 00  .=...... .L...R..
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [030] 00 57 00 00 00 48 50 4C  4A 33 00 00 57 69 6E 50  .W...HPL J3..WinP
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [040] 72 69 6E 74 00 00 48 50  20 4C 61 73 65 72 4A 65  rint..HP  LaserJe
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [050] 74 20 33 50 00 48 50 4C  4A 33 00 4E 55 4C 4C 00  t 3P.HPL J3.NULL.
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [060] 28 00 00 00 E8 03 00 00  4E 55 4C 4C 00 00 00 00  (....... NULL....
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [070] 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
[1999/06/20 20:14:34, 10] lib/util.c:dump_data(2840)
  [080] 00 00 00 00 00 00 00 00                           ........
[1999/06/20 20:14:34, 6] lib/util_sock.c:write_socket(185)
  write_socket(7,195)
[1999/06/20 20:14:34, 6] lib/util_sock.c:write_socket(188)
  write_socket(7,195) wrote 195
[1999/06/20 20:14:44, 10]
lib/util_sock.c:read_smb_length_return_keepalive(457)
  got smb length of 132
[1999/06/20 20:14:44, 6] smbd/process.c:process_smb(614)
  got message type 0x0 of len 0x84
[1999/06/20 20:14:44, 3] smbd/process.c:process_smb(615)
  Transaction 5 of length 136
[1999/06/20 20:14:44, 5] lib/util.c:show_msg(459)
  size=132
  smb_com=0x25
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=3
[1999/06/20 20:14:44, 5] lib/util.c:show_msg(465)
  smb_tid=1
  smb_pid=43136
  smb_uid=100
  smb_mid=192
  ...


Has anyone a solution? Many thanks..
Rudolf

Email: kollien at kollien.de
Our home on the net: http://www.kollien.de
***************************************************************************
Never trust a operating system you have no sources for
***************************************************************************
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
***************************************************************************



More information about the samba mailing list