System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to view priniter is installed or not installed

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to view priniter is installed or not installed

Hi

In my environment we have HP-UX, Redhat linux and suse linux.

I want answer for following questions:

1) How to view whether printer is installed in HP-UX, Redhat linux and suse linux.

2) how to view the configuration of printer installed for all three.
7 REPLIES
Ganesan R
Honored Contributor
Solution

Re: How to view priniter is installed or not installed

Hi,

LP commands are almost same for all the unix..

To know the status of the scheduler and printers
#lpstat -t
To check the status of the printer
#lpstat -p
or
#lpstat

To stop the scheduler
#lpshut
To start the scheduler
#lpsched
Best wishes,

Ganesh.
Kranti Mahmud
Honored Contributor

Re: How to view priniter is installed or not installed

Hi Senthil,

Where the network printer is connected?

Is the printer connected in Windows Domain print server or it is connected in Network hub?

If not connected in domain printer server then, you can use HetDirect software of HP
if it is HP printer. For this, steps are:

1. Install JetDirect Software
2. excute the command hppi or goto sam->printes and plotters -> printes and plotters -> actions ->aAdd Network-Based Printer/Plotter
3. Choose Spooler Administration
4. Add printer to local spooler
5. give the priter ip or name (do the /etc/hosts configuraion for the printer name resolv)
6. choose the model script name from the list if available or choose the 56) To Select dumbplot model script for printer
7. configure the print queue and etc..
8. lpstat -a ( printer stat)otherwise you need to

If the printer is connected in Network hub, then

Use SAM:

'sam' -> Printers and Plotters > LP Spooler > Printers and Plotters > Actions Menu > Add Network-Based Printer/Plotter.

Before that define the printer in your /etc/hosts with his ip-address.

You also can check this link:
http://docs.hp.com/en/B2355-90675/ch07s03.html


LP commands are almost same for HP-UX, Linux & SUSE Linux.

To check printer status & schedular:

#lpstat -p
or
#lpstat

To stop the scheduler
#lpshut
To start the scheduler
#lpsched


Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
Taifur
Respected Contributor

Re: How to view priniter is installed or not installed

R.K. #
Honored Contributor

Re: How to view priniter is installed or not installed

Hi Senthil,

This is for HPUX:

One easy way to check for the printer on a servers is through SAM.

# sam
then select the following one by one:
-printers and plotters
-LP spoolers
-Prinetrs and Plotters

Here you will see all the printer information eg their names, type, enabled to print, location etc.

Printer config options are also here.

Regds,
R.K.

Don't fix what ain't broke
UVK
Trusted Contributor

Re: How to view priniter is installed or not installed

Hi,

Irrespective of unix flavour you can use "lpstat" command to see the printer configured for your unix machine

lpstat -p -- lists configured printers with status

With my experience in most of the big corporates I have seen them using tools like Jetadmin(for HP printers) and Xadmin(for xerox printers).

You can invoke jetadmin using hppi or hpnp varies with flavour of unix. Its always adviced and safe to use the tools if you have them installed in your system. Do not try to administrator the printer using SAM or lp commands if they are configured using these tools.

In HPUX to view you can use SAM choose Printers and Plotters.

Hope that helps

-uvk

-------------------------------------------
Like it or worked !! Click kudos !!
Bijeesh
Respected Contributor

Re: How to view priniter is installed or not installed

hi
lpstat command will give the status in all flavours.Go through the man page of lpstat.
also check this link

http://en.opensuse.org/SDB:Installing_a_Printer
Suraj K Sankari
Honored Contributor

Re: How to view priniter is installed or not installed

Hi,

lpstat -t is the command for HPUNIX for others go to the below link

http://www.unixguide.net/unixguide.shtml

or Download the below pdf file.

http://www.unixguide.net/unixguide.pdf

Suraj