Operating System - HP-UX
1833705 Members
2489 Online
110063 Solutions
New Discussion

Trouble installing network printer on HP-UX 11.00

 
Bruce Baillie
Regular Advisor

Trouble installing network printer on HP-UX 11.00

I installed many printers on our server, HP-UX 11.00. Today I tried installing a network printer using sam. Sam then takes you to jetdirect and install from there. When I go back to sam the printer Type __ Enabled to Print no, Accepting Requests no Location __.
I cannot enable or delete it. I get a message that the printer does not exist.
What is going on?
Why can't we all get along?
11 REPLIES 11
Zygmunt Krawczyk
Honored Contributor

Re: Trouble installing network printer on HP-UX 11.00

Hi Bruce,
you should download and install software:

HP JD Printer Installer for HP-UX 11.x

http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?locale=en_US&pnameOID=18922&taskId=135&prodTypeId=18972&prodSeriesId=27349〈=en&cc=us&swEnvOID=7

Regards,
Zygmunt
Bruce Baillie
Regular Advisor

Re: Trouble installing network printer on HP-UX 11.00

Thanks, Zygmunt, I downloaded and installed HP JD Printer Installer for HP-UX 11 and used it to install a new HP printer and now I have 3 printers in SAM that I cannot use or remove. Something else is messed up.
Why can't we all get along?
Shahul
Esteemed Contributor

Re: Trouble installing network printer on HP-UX 11.00

Hi,

Please check whether your printer got installed properly. You can follow these steps.

Ping to ur printer and see whether communication between printer and HP box is Ok or not.
#ping AA.AA.AA.AA
#cancel -e
#cd /var/spool/lp
#rm SCHEDLOCK
#lpshut
#lpsched
#enable "myprinter"
#accept "myprinter"
#lpstat -t
#cancel -e
Check up whether ur sceduler is running or not, whether ur printer is enabled or not, whether any job is pending in queue or not..etc.

I hope Now every thing will be OK. Now print and see

#lp -d "myprinter" "myfile"

Best of luck

Shahul
Bruce Baillie
Regular Advisor

Re: Trouble installing network printer on HP-UX 11.00

Nothing yet.
The printer entries are not being created in
/etc/lp/sinterface
/etc/lp/member
/etc/interface
/usr/spool/lp/request
Directory permissions don't seem to be the problem.
Attached is what Sam looks like and I cannot delete the printers either.
Why can't we all get along?
Ermin Borovac
Honored Contributor

Re: Trouble installing network printer on HP-UX 11.00

It looks like you have some corrupt printer queues.

Check if the following files exist (last one should be directory).

/var/spool/lp/member/
/var/spool/lp/interface/
/var/spool/lp/request/

If they don't exist please create them.

# touch /var/spool/lp/member/
# touch /var/spool/lp/interface/
# mkdir /var/spool/lp/request/
# chown lp:lp /var/spool/lp/member/
# chown lp:lp /var/spool/lp/interface/
# chown lp:lp /var/spool/lp/request/
# chmod 644 /var/spool/lp/member/
# chmod 755 /var/spool/lp/interface/
# chmod 755 /var/spool/lp/request/

Then try to remove the queue.

# lpadmin -x
twang
Honored Contributor

Re: Trouble installing network printer on HP-UX 11.00

It seems strange, could you remove the problem printer as follows:
#lpshut
#lpadmin -x
#lpsched;
Zygmunt Krawczyk
Honored Contributor

Re: Trouble installing network printer on HP-UX 11.00

Hi Bruce,
what is the type, model number and product number of your JetDirect device? Not all JD cards are supported on HP-UX.

Zygmunt
Bruce Baillie
Regular Advisor

Re: Trouble installing network printer on HP-UX 11.00

Thanks, Ermin. I was able to delete the queues. I installed the latest patches for lpadmin. Still no luck. If I try to install from the command line, I might get an error I can work with. What would the command look like to install a LaserJet5Si network printer with an IP address of 193.1.1.30? Nothing fancy, just a basic install.

lpadmin -pljet5si ?
Why can't we all get along?
A. Clay Stephenson
Acclaimed Contributor

Re: Trouble installing network printer on HP-UX 11.00

addqueue -q myprinter -i net_lj5x -h 193.1.1.30

although I would prefer that you use a hostname rather than an IP address because if you later change the IP address all you have to do is a DNS/hosts change. It's rather dumb to use hard-coded IP addresses in this context.

Man addqueue for details. The addqueue -l command is a very good tool to list the printer choices for the -i option.
If it ain't broke, I can fix that.
Bruce Baillie
Regular Advisor

Re: Trouble installing network printer on HP-UX 11.00

Thanks Clay. I didn't get the error message I was looking for. The error message was:
Could not create the queue.

What I need is WHY the queue cannot be created so I can fix the problem.

I tried the addqueue on another system and it worked fine.
Why can't we all get along?
Bruce Baillie
Regular Advisor

Re: Trouble installing network printer on HP-UX 11.00

I finally solved the problem. I have another server with printers so I did a directory by directory comparison of /etc/lp and /var/spool/lp. What I found were 8 symbolic links in sub directories that were not supposed to be there. I have no idea how they were created. They all had the same date. I deleted them and all is well.
Why can't we all get along?