System Administration

installing hp8150dn with hppi or addqueue

 
SOLVED
Go to solution
Bill Walter
Occasional Advisor

installing hp8150dn with hppi or addqueue

We have successfully installed an hp8150 laserjet on an HP-UX system via a combination of the hppi WEB page and the menu system accessed via the command line. We have been unable to install this printer, or one identical to it, on an identical HP-UX system. We can ping it and the test print from within the menu system produces the correct test page. When used for the install, the WEB based utility insists this is a local printer, unlike the first system which lists it as "network" and, while the enable process reports success, the printer does not get enabled. Independent of this, addqueue -h -q says it "cannot create queue", yet lpstat -t reports a printer with that is not enabled nor accepting requests, nor is it a default printer but is present. Any suggestions would be much appreciated.
16 REPLIES 16
Javed Khan_1
Valued Contributor

Re: installing hp8150dn with hppi or addqueue

Hi,

did you install http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=18922&prodTypeId=18964&prodSeriesId=27349&swLang=8&taskId=135&swEnvOID=7

go to sam select printers/plotters-spooler-printers and plotters-action-add network based printers-Spooler Administration-provide printer
ip address - make changes to queue name - and select proper printer model from list.

This should solve this problem


Javed
Never Give Up
Bill Walter
Occasional Advisor

Re: installing hp8150dn with hppi or addqueue

Thank you, Javed; however, I believe all this is in place but when we attempt to complete the install, as you have outlined, we get:

!! Cannot shut down the spooler with lpshut !!
Having tried for 5 times. Please shut down the spooler from
the command line, then re-run this configuration.

Then we executed lpshut at the command prompt where it says the scheduler has been shut down. Running sam again results in the same error.
Javed Khan_1
Valued Contributor

Re: installing hp8150dn with hppi or addqueue

Hi,

try by killing lpsched processes manually by kill -9 pid (lpsched)


Javed
Never Give Up
Bill Walter
Occasional Advisor

Re: installing hp8150dn with hppi or addqueue

Thanks again, Javed. We have killed the lpsched pid and it stayed dead while we used sam to install the printer again. The same lpshut error occurs. At the command line, we found that lpsched was still dead so guess this is not the issue.
Colmin Gajadar
Occasional Contributor

Re: installing hp8150dn with hppi or addqueue

If the spooler is stopped, look into /var/spool/lp and if there are files CLD_FIFO and SHEDLOCK, remove them then start the spooler with /usr/sbin/lpsched
Bill Hassell
Honored Contributor

Re: installing hp8150dn with hppi or addqueue

This is likely not a problem with the printer but the spooler system has been corrupted. Start with a validity check using swverify:

swverify PrinterMgmt

Fix any problems, especially permissions, ownership and missing files. You can ignore /usr/share/man permission errors if any. Then remove non-working or incorrectly configured printers with lpadmin -x. Now try the addqueue command.


Bill Hassell, sysadmin
Bill Walter
Occasional Advisor

Re: installing hp8150dn with hppi or addqueue

Bill H has pinpointed the problem(s). The group, mod and own errors can be corrected; however several errors occurred such as:
File "/usr/sbin/lpmove" should have mtime "1171575564" but the actual mtime is "1225394339".

File "/usr/bin/lpr" should have size "614" bytes but the actukal size is "68992" bytes.

Fileset "PrinterMgmt.LP2-SPOOL,1=/,r=B.11.31" had file errors.

[Running swverify/swjob on the identical box, where the printer installed properly, yielded zero errors.]

How did this come about? What can be done to fix errors like these?
Bill Hassell
Honored Contributor
Solution

Re: installing hp8150dn with hppi or addqueue

> several errors occurred such as:
File "/usr/sbin/lpmove" should have mtime "1171575564" but the actual mtime is "1225394339".

This is not quite as big a deal although it's not clear why it changed.

> File "/usr/bin/lpr" should have size "614" bytes but the actukal size is "68992" bytes.

Look at the same file on the other system. It should be a simple script. Just ftp it over to the problem system. Same for the /usr/sbin/lpmove

> Fileset "PrinterMgmt.LP2-SPOOL,1=/,r=B.11.31" had file errors.

This is just summarizing that there were a couple of errors.

> [Running swverify/swjob on the identical box, where the printer installed properly, yielded zero errors.]
>How did this come about? What can be done to fix errors like these?

It's hard to guess what made the changes. Another alternative is to use the HP-UX Install DVD to reinstall the PrinterMgmt package. Then follow that with the latest patches for lp. For 11.31, the latest patches are:

PHCO_37540 or the most recent PHCO_38682 which might be too new at this point. No reboot is necessary and current printer definitions will not be affected, although I would delete and reinstall any problem printers.


Bill Hassell, sysadmin
Bill Walter
Occasional Advisor

Re: installing hp8150dn with hppi or addqueue

Great, Bill, now swverify/swjob report zero errors.
Now I am trying to install the printer(queue) thus:
/opt/hpnpl/bin/addqueue -qhplj8150 -h -inet_lj8150 -LAUTO -ron -ton -Don -boff
(ip hidden for security)

although I can ping the printer, HP-UX reports:
Could not contact . We don't have the GUI, but using smh(sam) from the TUI results in the same contact problem. The same printer is available to the other box.