Operating System - HP-UX
1832805 Members
3164 Online
110045 Solutions
New Discussion

Re: How do you add a printer in HP-UX

 
Janice_4
Occasional Contributor

How do you add a printer in HP-UX

Pleeeeeease help. Second question today. We are runninf Oracle Apps 11i and we need to define a printer. The first thing I need to do is to add a printer in Unix - don't know hope to do this. Please keep responses straight forward.
don't know
8 REPLIES 8
Roger Baptiste
Honored Contributor

Re: How do you add a printer in HP-UX


First make sure whether the printer is visible to the network and whether it has a name.

do
#ping

if this works, then you are set to use the printer by adding it to the system
Else
check the printer and make sure it is connected to the network and has a IP.

Next,

simple way is to use SAM and use the add printer menu.

otherwise, install jetadmin software from the CDrom application cd. and then run jetadmin. It is a menu and easy to use.

HTH
raj
Take it easy.
Mark Vollmers
Esteemed Contributor

Re: How do you add a printer in HP-UX

Janice-

It depends on if the printer is a local one or a network one. If local, I think a reboot might be needed to reconize the printer, and then you can add it in SAM as a local printer.

For a network, what I've done in the past is to first put the printer in /etc/hosts (for example, 192.168.1.111 laserjet4). Then, either in SAM or jetadmin, you can add the printer as a shared printer. You will need to know name and IP when asked for them.

You will probably need to be root to add the printer, but I won't swear to that.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Deshpande Prashant
Honored Contributor

Re: How do you add a printer in HP-UX

Hi
If you have hp jetadmin software installed on your system, the network printer can be added as
#/opt/hpnp/bin/addqueue -h -q

Thanks.
Prashant Deshpande.
Take it as it comes.
S.K. Chan
Honored Contributor

Re: How do you add a printer in HP-UX

I'm assuming you want to add a remote printer. Printer name is lj4m and remote server is planet.

# /usr/lib/lpshut
# /usr/lib/lpadmin -plj4m -mrmodel -v/dev/null -ocmrcmodel -osmrsmodel -ormplanet -orplj4m
# /usr/bin/enable lj4m
# /usr/lib/accept lj4m
# /usr/lib/lpsched
Sandip Ghosh
Honored Contributor

Re: How do you add a printer in HP-UX

If this is a network printer you can add it through hppi. Hope hppi is there in your Server, otherwise download it from HP site.

#hppi -> Spooler Admin --> Add Printer

Give printer IP Address
Give printer Model
Give Printer Queue Name
and confirm it by 0

Your printer is ready.

And if your printer is not a network printwer , let us know. We will post something different.

Sandip
Good Luck!!!
pap
Respected Contributor

Re: How do you add a printer in HP-UX

Hi,
Just go to sam-> printers and plotters -> spoolers and add the printer depending upon which type o printer you want to add ,I mean network printer , local printer or remote printer.

IF you are installing netork printer make sure jetadmin is loaded on your machine.

Simplest way is to use sam.

otherwise use command line and lpadmin command.
"Winners don't do different things , they do things differently"
CHRISTSHONDA CAMPBELL
Occasional Advisor

Re: How do you add a printer in HP-UX

if you can reach the printer by using ping. Then install jetadmin software.

To configure jetadmin
/opt/hpnp/bin/jetadmin
Configure printer as needed.


choose 0 to configure
q out of menu

To turn sheduler on
# lpsched

To see status of printer
# lpstat -t

to change default printer
# lpadmin -d