1823158 Members
3538 Online
109647 Solutions
New Discussion юеВ

Re: canceling print jobs

 
SOLVED
Go to solution
George Doller
Frequent Advisor

canceling print jobs

I just upgraded HPUX to 11.23 from 11.11 this past weekend and it appears that something has changed in relation to canceling print jobs. My users, use to be able to cancel there print jobs at the printer by pushing the "cancel" button and the file would stop printing and be removed from the queue. Now what appears to be happening is every time they push the "cancel" button on the printer the print job restarts itself. The only way we can now cancel print jobs is in HPUX. If anyone knows how to change that I would appreciate it. This is the process of canceling jobs that my users have grown accustom to.
8 REPLIES 8
F Verschuren
Esteemed Contributor

Re: canceling print jobs

that tool do you use on the hp server there are tools where you can configer to check is the jop was ended ok, this has to turned of to make the cancel working, please post the tool?
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: canceling print jobs

I'll bet that this never actually worked under HP-UX. It only appeared to work. What has probably changed is that True-End-Of-Job is now enabled so that whenever a printer operation fails to complete, (e.g. cancelling from the printer) the job is restarted.

Do this:

modifyqueue -t off myprinter

or manually edit the interface file for each queue and set TEOJ="off".

Man modifyqueue for details.
If it ain't broke, I can fix that.
George Doller
Frequent Advisor

Re: canceling print jobs

In response to reply 1 - I am running LP Spooler

Reply 2 - I tried doing a man on modifyqueue and I get No manual entry for modifyqueue.
Am I missing something?
George Doller
Frequent Advisor

Re: canceling print jobs

In /etc/lp/interface for all my printers I have:
TEOJ="-w"

Not sure what that means.
F Verschuren
Esteemed Contributor

Re: canceling print jobs

-w meens it is on
modifyqueue -t off -q [queue name]
will set it to TEOJ=""

kind regards

Freek
F Verschuren
Esteemed Contributor

Re: canceling print jobs

here is the man page:
man modifyqueue

modifyqueue(1) modifyqueue(1)

NAME
modifyqueue offers an alternate method of modifing queues for printers
connected with HP JetDirect interface cards.

SYNOPSIS
modifyqueue -q queuename [-d on/off] [-s] [-r on/off] [-t on/off]
[-b on/off] [-L PS/PCL/HPGL/HPGL2/AUTO] [-P pslevel] [-T banner
tray] [-m banner papersize] [-D Duplex print]

modifyqueue allows the user to modify lp printer queue based on
arguments entered on the UNIX command line, and provides a non-GUI
alternative to the method provided by the hppi Utility.

Options and Arguments
The modifyqueue command recognizes the following options and
arguments:

-q queuename
The name of the queue. It should exist in the system.

-d on/off
Specifies that the queue will be set to the default queue or
switches off the default queue.

-s On a HP-UX system status message will be logged into the
/opt/hpnpl/tmp/ file. In solaris the file
will be created in /var/tmp/ file.

-r on/off
Turn on/off the job recovery for the queue.

-t on/off
Turn on/off the True end of job for the queue.

-b on/off
Turn on/off the banner page.

-L PS/PCL/HPGL/HPGL2/AUTO
Sets the default printer language. The Language specified
should be supported by the printer.

-P pslevel
Sets the post script level to specified number, it may be 1,
2 or 3.

-T tray number
Sets the banner tray to specified one, but tray should be
present.

- 1 - Formatted: December 6, 2007

modifyqueue(1) modifyqueue(1)

-m banner papersize
Sets the Paper to specified one. Paper may be one of legal,
letter, A4, exec, A3, JISB4, JISB5, JISEXEC or 11x17. The
specified paper should be supported by the printer.

-D on/off/def
Sets the duplex print to on/off/default.

Returns 0 on successful completion.

DIAGNOSTICS
1 Succesfully modified the queue

2 Could not able to modify

AUTHOR
modifyqueue was created by Hewlett Packard Company

SEE ALSO
lpadmin(1M), lpsched(1M), accept(1M), lpshut(1M), enable(1),
removequeue(1).

ADMINISTRATION
You must be logged on as a super-user to have access to this command.

- 2 - Formatted: December 6, 2007
F Verschuren
Esteemed Contributor

Re: canceling print jobs

I thout is wat the
JRECOV="yes"
JRECOV="no"
modifyqueue -r on -q [queue name]
default it is on no...


see manpage....
-r on/off
Turn on/off the job recovery for the queue.

-t on/off
Turn on/off the True end of job for the queue.


Bill Hassell
Honored Contributor

Re: canceling print jobs

The man page for modifyqueue is in /opt/hpnpl/man and if hppi was properly installed (not copied from another system), then /etc/MANPATH will have /opt/hpnpl/man shown.

You will find all the JetDirect support tool man pages very useful:

ishpnp
hpnpadmin
addqueue
modifyqueue
removequeue

Was this a cold install, or an upgrade with a copy of selected directories from another system? You will find using addqueue is much easire than SAM or hppi. And addqueue can specify no trueEOJ and noBanner as command line options.


Bill Hassell, sysadmin