Operating System - HP-UX
1844534 Members
3174 Online
110233 Solutions
New Discussion

Printing Issue. Print Duplicate

 
sujeet joshi
Frequent Advisor

Printing Issue. Print Duplicate

Hi,

When I have checked in printer log file I found Two entries i.e.
mfi_pa_06-9865 db1adm mfi_pa_06 Feb 28 08:03
Start: mfi_pa_06-9865 Wed Feb 28 08:03:16 EST 2007
End: mfi_pa_06-9865 Wed Feb 28 08:03:16 EST 2007
Start: mfi_pa_06-9865 Wed Feb 28 10:05:31 EST 2007
End: mfi_pa_06-9865 Wed Feb 28 10:05:31 EST 2007
/etc/lp/interface/model.orig/mfi_pa_06 nb r
/opt/hpnpl/bin/hpnpf -j mfi_pa_06-9865+db1adm -x mfi_pa_06

It is showing that First print at 8:03 with same Print ID and againg at 10:05 with same ID.

Why this was happened ?
Can anybody help me in this issue?
Job has fired single.

This is under HPUX 11i V1

Thanks & Regards,

Sujeet

18 REPLIES 18
A. Clay Stephenson
Acclaimed Contributor

Re: Printing Issue. Print Duplicate

Probably because true end of job was enabled in the interface file/model script and an error was detected. Edit the interface file and turn off true end of job.
If it ain't broke, I can fix that.
john xu_1
Advisor

Re: Printing Issue. Print Duplicate

Hi,

I meet the same isssue right now.

Could you please tell how to solve this issue finally?

Thanks,

John
Bill Hassell
Honored Contributor

Re: Printing Issue. Print Duplicate

TRUE-END-OF-JOB is an HP JetDirect feature that doesn't work very well. If (and only if) your printers use HP JetDirect network cards *AND* you used SAM to configure them as "network printers" or used hppi or the command line addqueue command, THEN you can turn off the option with modifyqueue:

modifyqueue -q myprn -t

Repeat for every JetDirect printer.


Bill Hassell, sysadmin
skt_skt
Honored Contributor

Re: Printing Issue. Print Duplicate

Looking at the log file , i understand this is configured as a n/w printer.

I would like to know
whihc model; are u testing/setting up the printer for the first(did that ever work well before?)

it can also casue if the print queue is not getting cleared and hence printing the same repeatedly.

Give a test print from UNIX and watch how does the queue behave.?

Also check if printer communication is Ok on port 9100(network printer port)

telnet 130.162.129.125 9100
Trying...
Connected to 130.162.129.125.
Escape character is '^]'.

telnet> close
Connection closed.
john xu_1
Advisor

Re: Printing Issue. Print Duplicate

Hi Bill,

Thanks and thanks you all again,

Could you please advice the modifyqueue? Is it a command from printer. And this command should be added into printer model scripts?

Thanks,

John
A. Clay Stephenson
Acclaimed Contributor

Re: Printing Issue. Print Duplicate

It's a command that alters the interface files so you don't add it to your existing interface files. The more general solution is to edit (using vi or sed) the file /var/spool/lp/interface/model.orig/your_printer_queue_name and change the line:
TEOJ="on"
to
TEOJ=""
If it ain't broke, I can fix that.
john xu_1
Advisor

Re: Printing Issue. Print Duplicate

Hi Bill,

Thanks, do I also need to change /etc/lp/interface/07acchp5si? Right now, TEOJ="-w" at this file.

And I have changed /var/spool/../model.org/07acchp5si from "TEOJ=on" to "TEOJ=""".

Thanks again,

John
Bill Hassell
Honored Contributor

Re: Printing Issue. Print Duplicate

The following commands (scripts) are standard with all JetDirect software:

modifyqueue
addqueue
removequeue
hpnpadmin

They all have a man page and are much more useful than the hppi you used to add the printers. No, don't bother modifying the interface scripts -- that's the job for modifyqueue.

Note that if the man pages aren't seen with the man command, edit the file /etc/MANPATH and add /opt/hpnpl/man to this file -- note: this is a single (long) line.

Note also that we are assuming you added these printers using hppi or with SAM choosing "network printers". If this is NOT true (the printers are connected to a non-HP NIC card in the printer or are accessed as remote printers connected to some other system, these instructions don't apply.


Bill Hassell, sysadmin
skt_skt
Honored Contributor

Re: Printing Issue. Print Duplicate

Remote printers normally does not have a model file associated.This case there is one etc/lp/interface/model.orig/mfi_pa_06
. Also it easy to confirm by telnet to port 515(remote) and 9100(network).

also you can do "whereis addqueue" to find the exact path.
skt_skt
Honored Contributor

Re: Printing Issue. Print Duplicate

is everything OK now?
john xu_1
Advisor

Re: Printing Issue. Print Duplicate

Hi Santhosh,

Our printer is Lexmark T640 which is a networking printer. When doing telnet, follwoing information is shown:

$ telnet 10.0.17.164 9100
Trying...
Connected to 10.0.17.164.
Escape character is '^]'.
Connection closed by foreign host.

Could you please advice if there is something wrong?

Thanks,

John
Bill Hassell
Honored Contributor

Re: Printing Issue. Print Duplicate

> Our printer is Lexmark T640 which is a networking printer. When doing telnet, follwoing information is shown:

> $ telnet 10.0.17.164 9100
> Trying...
> Connected to 10.0.17.164.
> Escape character is '^]'.
> Connection closed by foreign host.

Probably quite normal. The Lexmark probably does not have an HP JetDirect card or support the port 9100 protocol, but you can verify this with the command:

hpnpadmin -v 10.0.17.164

If you see: "not a network printer" then the Lexmark is nothing but a dumb remote printer using port 515 and all the above text describing the TRUE EOJ setting is meaningless.


Bill Hassell, sysadmin
skt_skt
Honored Contributor

Re: Printing Issue. Print Duplicate

that telnet output is a normal behaviour.

I do see my networkers whihc are wokring propely even though they have "-w". That is making me confused againt what we were discussing till now.

BTW, is that printer wokring properly from windows level to make sure the h/w is good.

I am not sure if this printer suports UNIX printing?
skt_skt
Honored Contributor

Re: Printing Issue. Print Duplicate

Check if you have any duplicate print queue with same IP.

/etc/lp/interface#grep ipaddress *
john xu_1
Advisor

Re: Printing Issue. Print Duplicate

Hi Santhosh,

Thanks a lot,

John
skt_skt
Honored Contributor

Re: Printing Issue. Print Duplicate

jhon,

did that fix you issue.I had a similar problem then i disabled the other print and everything OK after that.
skt_skt
Honored Contributor

Re: Printing Issue. Print Duplicate

jhon,

did that fix you issue.I had a similar problem then i disabled the other print queu and everything OK after that.
john xu_1
Advisor

Re: Printing Issue. Print Duplicate

Hi Santhosh,

It is fixed, thanks your helps again.

John