Operating System - HP-UX
1833707 Members
2369 Online
110063 Solutions
New Discussion

Seting up Network Printer in HP-UX 11

 
eric_270
New Member

Seting up Network Printer in HP-UX 11

I'm somewhat new to HP-UX admin and am having a problem setting up network printers. When I use SAM, and follow the route to add network printer via Jetdirect, Jetdirect can never connect to the printer I'm trying to connect to. Jetdirect will ping the device, but it can't do anything else.

My Question: is there any instructions that list [all] the stpes necessary to add a network printer, especially one that is not connected to a jetdirect device?

Any suggestions would be greatly appreciated.

Thanks,

Eric
8 REPLIES 8
Ted Ellis_2
Honored Contributor

Re: Seting up Network Printer in HP-UX 11

I think you will be much happier using a product called hppi... it is the follow on to jetadmin. No need to run SAM either. Go to HP and get the software and installation instructions.

http://www.hp.com/cposupport/networking/support_doc/bpj06745.html

swinstall it (no reboot required)
on the command line enter hppi and you will get a little menu. Fairly straight forward after that... we make our printer queues the same name as the printer host name.
Anil C. Sedha
Trusted Contributor

Re: Seting up Network Printer in HP-UX 11

Eric,

Jet direct printers which i am using have a browser based installation option on hp systems.

however, you may try using SAM, since you are new to this.

Other, option is use the lpadmin -pprintername

you may also specify the printer ipaddress.

Do this by stopping the print scheduler service running on the box

lpshut

Then add the printer

then give destination as
lpadmin -dprintername

try printing to the printer by

lp -dprintername filename

Let me know if this helps. If it doesn't let us know again. There are a lot more experience guys around who can help.

Regards,
Anil (It's nice to assign points if the answers are valubale to you)
If you need to learn, now is the best opportunity
Anil C. Sedha
Trusted Contributor

Re: Seting up Network Printer in HP-UX 11

Forgot to add this.

Before the last command

lp -dprintername filename

add this command to bring up the print scheduler

lpsched

Regards,
Anil
If you need to learn, now is the best opportunity
erics_1
Honored Contributor

Re: Seting up Network Printer in HP-UX 11

Eric,

A few more important points to be made here:

1. JetAdmin is no longer supported and HPPI (HP Printer Installer) is indeed the replacement product. HPPI can be accessed through SAM as you do with Jetadmin with a recent SAM cumulative patch installed on the system. Though executing hppi from the command line is much quicker.

2. Is your printer an HP printer with a JetDirect card or a third party printer with an external direct card attached? If not, you may need to try and configure the printer as a remote printer via sam.

Hope this helps!
Eric
Bill Hassell
Honored Contributor

Re: Seting up Network Printer in HP-UX 11

Since you mentioned that this is not an HP JetDirect device (ie, the network interface card is not HP) then you have a 'remote printer' so you can ignore all the comments about HPPI and JetAdmin or JetDirect. Non-HP network printers look like Unix print servers so in SAM, do not select Network printers, use the Remote printer menu.

You'll need to pick a local printqueue name, the IP address or hostname for the remote printere and the tough one: the internal name of the printer. This is stored insode the card and only the manufacturer can tell you what it is. It might be prn or text or raw or something similar. Check with the manufacturer of the card.

Also, be sure to check BSD printer option.


Bill Hassell, sysadmin
eric_270
New Member

Re: Seting up Network Printer in HP-UX 11

Thanks for the responses. I can et the printer(s) to work as remote printers. However, the printing is not right. Each line of text printed begins, horizontally, where the line above it ended. Thus, I only get about 3 or 4 lines before the lines are no longer on the page. I suspect that the rmodel file that HP uses for the interface is wrong. When I change the model to "laserjet4" (which my printer is), nothing prints at all.

Any suggestions?

Thanks again,

Eric
Brian K. Arnholt
Frequent Advisor

Re: Seting up Network Printer in HP-UX 11

Eric,

Since you are printing to a non-HP printer, you need to find the correct printer configuration files. We have all Xerox Printers where my systems print to, and it was a big pain to set up. However, if you do not need any fancy printing, the 'ux2dos' command piped to 'lp' will quickly meet your needs.

Simply use the command:

ux2dos | lp

If you need fancy printing, I would recommend downloading the GNU postscript conversion tool for Unix. Very easy to use and can be downloaded from the GNU website at: http://people.ssh.fi/~mtr/genscript
Some see things as they are and ask why, I dream of things that never were and ask why not?
Brian K. Arnholt
Frequent Advisor

Re: Seting up Network Printer in HP-UX 11

Oops, sorry, the previous link may not work, you can also try this:

http://www.iki.fi/~mtr/genscript

Best of luck,

Brian
Some see things as they are and ask why, I dream of things that never were and ask why not?