1846622 Members
1707 Online
110256 Solutions
New Discussion

Re: Printer setup

 
SOLVED
Go to solution
system administrator_15
Frequent Advisor

Printer setup

hi guys
I need help!.
I have had an ongoing problem for about 6 months, just as i think i have solved the issue it seems to take another twist.
the final part of the problem involves printer setup, i currently have a network based printer that has decided to stop printing Duplex, this causes me major ear ache form business.
i have tried to set up a remote printer to a NT print server, but it keeps telling me that the printer already exists on this server( i presume its talking about my production server not nt print spooler) but it doesn't.
so my question is why an i getting this message when as far as i can see there are no reverences to the printer name on the system.
and secondly is there any way of telling the network printer currently set up to override the default duplex setting and print in duplex for anything going to this printer id.
i have tried to solve this for about a week and now an at the headbanging stage.
all i need is for jobs that are produced and that call that printer to print duplex and override the default duplex (off) on the actual printer.
thanks in anticipation.
andrew
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: Printer setup

Hi Andy

This may help:-

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x14bcc8ecad09d6118ff40090279cd0f9,00.html


Paula
If you can spell SysAdmin then you is one - anon
Steve Steel
Honored Contributor
Solution

Re: Printer setup

Hi


Sounds like you have a corruption somewhere


try lpadmin -xprintername

and then reinstall it.

cd /etc/lp/interface/model.orig

grep duplex printername

You will see something like


#[ Added by Devu to provide banner tray and duplex print options
##[ Added by Devu to handle duplex print sept 23 1999
duplex="vduplex"
duplex="simplex"
##end of duplex Devu]
echo "dpi#, simplex, duplex, hduplex, topaz, yb, nb, job, nojob"
echo "dpi#, simplex, duplex, hduplex, topaz, yb, nb, job, nojob"
echo "dpi#, fuser simplex, duplex, hduplex"
duplex="def" # CHANGE DEFAULT DUPLEX MODE
# duplex
duplex="simplex";;
vd | duplex | double | d) # vertical binding
duplex="vduplex";;
hd | hduplex) # double side, horizontal binding
duplex="hduplex";;
md | mduplex) # duplexing manually
manuald="" # invalidate manual duplex
if [ "$duplex" != "simplex" -a "$duplex" != "def" ]
case "$duplex" in
simplex) echo "false setduplexmode";; # Simplex
vduplex) echo "true setduplexmode" # Long Edge
hduplex) echo "true setduplexmode" # Short Edge
case "$duplex" in
vduplex) echo "/Duplex true" # Long Edge
hduplex) echo "/Duplex true"
case "$duplex" in
vduplex) echo "\033&l1S\c";; # long edge
hduplex) echo "\033&l2S\c";; # short edge
case "$duplex" in
vduplex) echo "@PJL COMMENT ** duplex-vertical binding";;
hduplex) echo "@PJL COMMENT ** duplex-horizontal binding";;



There you see the value and see

duplex="def" # CHANGE DEFAULT DUPLEX MODE

use vi to set vduplex instead of def on this line

Then it will always print duplex

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bill Hassell
Honored Contributor

Re: Printer setup

It isn't clear that the printer is an HP JetDirect network printer. If it is, then just use the lp command to print a simple text file as in:

lp -dprinter_name -oduplex /etc/profile

This will only work if the printer has been created on the HP-UX system as a network printer. Setting up a remote printer on NT will make a real mess...none of the -o options for lp will work and simple ASCII files will require ux2dos conversion.

Most likely, the printer had duplex turned on in the printer's front panel settings and that was the default. The HP-UX spooler (actually, the printer script) does not explicitly set the duplex value unless it appears on the command line. So with no options given, the only way duplex would show up would be through the printer's front panel settings.

And it should be noted that setting a shared printer to ANYTHING other than default settings will always cause problems. That's why newer HP LaserJet printers have a configuration lock to prevent users from changing the settings for everyone. A shared printer should always have cold reset defaults, and the computer should control all changes to those settings for the duration of a sngle print job.


Bill Hassell, sysadmin
system administrator_15
Frequent Advisor

Re: Printer setup

Thanks steve, bill & paula
i have tried your sugestion steve but that failed i changed the entry suggested but it still prints in simplex, i had one slight brainwave! should the spooler be stopped and started before this will take effect or is it dymanic.
also once changed do you then need to use the -o option or does it as i think mean that it will allways print duplex.

Bill
the printer is set up network in jetadmin
does this help and in beleive that the printer is set to print simplex by default hence me trying to get it to print duplex for these jobs.
thanks for your help so far guys
Steve Steel
Honored Contributor

Re: Printer setup

Hi

You have 3 choices

1)The simplex is a default on the printer and can be changed via the menus

2)The print command is launched with simplex as default.Normal

3)The file to print contains an escape sequence to set to simplex.

What are you printing.

If the line
DUPPRINT="def" is in your printer script
change def to yes

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)