1830387 Members
2682 Online
110001 Solutions
New Discussion

printer problem

 
Sunny Jaisinghani
Trusted Contributor

printer problem

I have a printer configured on a server

Printer Description:
--------------------
MANUFACTURER :Hewlett-Packard;
COMMAND SET :PJL,MLC,PCL,PCLXL,POSTSCRIPT;
MODEL :HP LaserJet 2100 Series;
CLASS :PRINTER;
DESCRIPTION :Hewlett-Packard LaserJet 2100 Series
Printer ID : 513

The printer works fine on this server (11.11)

When i transferred the printer queue from this server to another(11.11) using

/usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
tar -cf /var/sam/lp_spools.tar /var/sam/lp

transferred using scp to another server

On another server

chown -R lp:bin /var/sam/lp_spools.tar
tar -xfp /var/sam/lp_spools.tar
/usr/sbin/lpshut
/usr/sam/lbin/lpmgr –R –xsavedir=/var/sam/lp
/usr/sbin/lpsched

It does not work. The print jobs get stuck up in the queue.

The printer IP address is reachable from both server and telnet 515 works from both servers

Also when i give a test print i do not see the logs updated under /var/adm/lp/log

Instead the log file is getting updated with some old jobs.

I have tried restarting the lp scheduler on server 2

Nothing works

Please suggest

Thanks
Sunny

5 REPLIES 5
Sunny Jaisinghani
Trusted Contributor

Re: printer problem

Can somebody help

Thanks
Sunny
Bill Hassell
Honored Contributor

Re: printer problem

This is way too complicated. First, test the printer with hpnpadmin:

hpnpadmin -AaSs 12.34.56.78

or for everything:

hpnpadmn -v 12.34.56.78

So if all is well, then simply delete the printer at the second server (lpadmin -x myprinter). Then use this command:

addqueue -h 12.34.56.78 -q myprinter -b off -t off -r off

where: 12.34.56.78 is the printer's IP address.


Bill Hassell, sysadmin
Sunny Jaisinghani
Trusted Contributor

Re: printer problem

Hello Bill,

If it was only for 1 printer i would have just created the printer queue manually on another server.

That was just an example.

I have 750 servers to move to other server.
That is why i am using "lpmgr"

This is the post i had posted before but couldn't get a solution to my problrm

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1306455&admit=109447626+1233518653336+28353475



Thanks
Sunny
OldSchool
Honored Contributor

Re: printer problem

did you follow *all* the steps in the attachment in your other post, including the transferqueue step. Be aware that if the destination system has both jetdirect and jetadmin installed, you need to use the correct one, as they do different things
Sunny Jaisinghani
Trusted Contributor

Re: printer problem

Both servers have

# HPNPL E.10.34 Hewlett-Packard JetDirect Printer Installer for Unix
HPNPL.HPNPL-MAN E.10.34 Standard Man Pages for JetDirect Printer Installer for Unix


Initially i was not aware of the transferqueue step so i had not used it.

But since i am doing this on a production environment i will have to wait for another chance to try it.

What difference can it make. Now when i check on server 2 i can pass the test print through the print queue but i was not able to do it when i was performing the drill.

Sunny