Link to home
Start Free TrialLog in
Avatar of parsaali
parsaali

asked on

setup printer in HP, AIX and Sun Solari

I was trying to setup a printer on different Unix versions
can any body help me out.
Avatar of Unie
Unie

Is it a network printer or a local printer?
and what spooler in running ?
Avatar of parsaali

ASKER

its a network printer
about spooler I am not sure which one is
If the printer is a standard network printer, the port 515 on TCP is use,; this is the BDS based network printer; either the printer surveys this port, either an host has the nlpd daemon that survey this port, and manage a printer hardwired.

In this case, under AIX, you can use smit (adminstration tool) to declare easily the printer, under HP you do the same thoing thru sam.

if the printer is on priprietary protacol (such as hpjetdirect) generally you can install it easily on the same trade mark hosts

for SUN, rorry, i don't know

Do the following for Sun:

1.  Stop the print service:  /etc/init.d/lp  stop

2.  Identify the printer & its type:  lpsystem -t bsd -T 1 -R 1 -y "Description of printer" nps_hostname

-t  bsd - defines printer system as a berkeley spooler
-T 1 defines the timeout parameter
-R 1 defines the retry parameter
-y "ascii field for description of printer"  Must be in quotes.
printer_hostname  - the name that resolves to the IP address of the nps.

3.  Identify the virtual printer to use
#  lpadmin -p que_name -s nps_hostname\!virtual_printer_name
( \! is backslash bang.  It ties the client's que_name to the virtual printer name.  Typically que_name is same as virtual printer name, but can be different).

4.  Define this new printer to be default printer.
#  lpadmin -d que_name

5.  Allow the client to send print requests to the new  queue
#  accept que_name
#  enable que_name

6.  Start print service
#  /etc/init.d/lp start

This should work for Solaris 2.5.1.  If Solaris 2.6 & 7, you may be able to skip step 5.

You can man pages for lpadmin & lpsystem for more options and explanation.

Good luck!

Sincerely,
U.
Unie gave an excellent answer but its only for sun solaries I need also for AIX and HP. If some tell me for it.
Unie gave an excellent answer but its only for sun solaries I need also for AIX and HP. If some tell me more  for it.
ASKER CERTIFIED SOLUTION
Avatar of Unie
Unie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks  Unie
You're welcome!

U.