Operating System - HP-UX
1837896 Members
3513 Online
110122 Solutions
New Discussion

problrm - add local printer

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

problrm - add local printer

Dear All
i have a real problem in printer configuration,
first i want your help in defining the local printer that i define it from sam->printer and plotter->lp spooler->printer and plotter
then action ,add local printer and plotter
,with parallel interface then
when adding the printer it give me the folowing error "Lp destination "df" does not exist on PalEC1"and i continue and it appers on the system and then when i try to delete the printer it give me the same error.
i ty to add another printer with the same name but ut give me the same error
what should i do
fadia.marei
17 REPLIES 17
Steve Steel
Honored Contributor

Re: problrm - add local printer

Hi


Use
lpadmin -xname

Then try to eadd it


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Mobeen_1
Esteemed Contributor

Re: problrm - add local printer

Fadia,
I would suggest that you follow the steps listed in the url below in achieving this

http://docs.hp.com/en/B2355-90053/ch07s01.html

regards
Mobeen
Fadia Almarei
Super Advisor

Re: problrm - add local printer

i add a new printer it give the following error
"PalEC1:/:>>lpadmin -xlp1
lpadmin: destination "lp1" non-existent"

and when i use the command to an excessting printer it give me the following error
"PalEC1:/:>>lpadmin -xlp0
lpadmin: can't proceed - scheduler running"
fadia.marei
Mobeen_1
Esteemed Contributor

Re: problrm - add local printer

Fadia,
I will try to address both your questions/issues

add a new printer it give the following error
"PalEC1:/:>>lpadmin -xlp1
lpadmin: destination "lp1" non-existent"

and when i use the command to an excessting printer it give me the following error
"PalEC1:/:>>lpadmin -xlp0
lpadmin: can't proceed - scheduler running"

Issue#1 - Adding a printer
--------------------------
"lpadmin: destination "lp1" non-existent"
The destination printer you specified i.e lp1 as an argument to lpadmin command is not a valid destination name
Make sure you specify a valid destination name in your lpadmin command

Issue#2 - Deleting/Removing printer
------------------------------------
"lpadmin: can't proceed - scheduler running" "
Many of the lpadmin command options cannot be executed while the scheduler is running. Stop the scheduler using the lpshut command and then try again

regards
Mobeen
Fadia Almarei
Super Advisor

Re: problrm - add local printer

how can i specify the correct destination ,the name i give is a random name,i reboot the server but nothing change in the execting one,
fadia.marei
Mobeen_1
Esteemed Contributor

Re: problrm - add local printer

Fadia,
Whats the printer that you are trying to add ? Does it have a DNS ?

rgds
Mobeen
Fadia Almarei
Super Advisor

Re: problrm - add local printer

no ,it is a local printer connected to the parallel interface
fadia.marei
Mobeen_1
Esteemed Contributor

Re: problrm - add local printer

Fadia,
Could you please follow the setup of the printer exactly as mentioned in the steps below and let us know what you see

http://docs.hp.com/en/B2355-90053/ch07s03.html

Note:- Looks like you would need to shutdown the scheduler as mentioned in my previous post. But before doing that, pls try to follow the steps listed in the url above and let me know.

regards
Mobeen
Fadia Almarei
Super Advisor

Re: problrm - add local printer

i follow these steps and every thing is ok the driver is IN and the parallel interface is CLAIMED,what should i do
fadia.marei
Mobeen_1
Esteemed Contributor

Re: problrm - add local printer

Fadia,
Now please look at this

http://docs.hp.com/en/B2355-90053/ch07s02.html#d0e19613

Also take note of the printer type you are trying to connect

rgds
Mobeen
Fadia Almarei
Super Advisor

Re: problrm - add local printer

Mobeen, i see it and every thing is OK,what should i do else
fadia.marei
Mobeen_1
Esteemed Contributor
Solution

Re: problrm - add local printer

Fadia,
The following are the steps i typically follow, these are from my archives

Adding a Local Printer
----------------------
1. Physically connect the printer(s) to your system. Refer to the instructions shipped with your printer. You should always shut down your system and turn off the power when you are changing the hardware configuration of your system.
2. Gather the following information:
. The name you are giving to this printer or plotter. Printer names can be up to 14 characters in length, and the characters must be alphanumeric (A-Z, a-z, 0-9) or an underscore (_).
. The name of the device file that the printer or plotter will use. SAM creates the device file for you. SAM uses the default device file named lp_printer-name. You can override the default device file name by specifying your device file name when filling in the printer information.
. The model script from the /usr/spool/lp/model directory, for example, laserjetIIISi for an HP LaserJet IIISi.
3. The print request priority for this printer. The default is zero (0).
4. The class to which the printer or plotter will be added (optional). Printer class names can be up to 14 characters in length, and the characters must be from the set (A-Z, a-z, 0-9). The underscore (_) character is allowed in printer class names.
5. In addition, decide whether to make this device your system's default printer.
6. Run SAM.
Highlight Peripheral Devices and activate the Open control button.
Highlight Printers and Plotters and activate the Open control button.
Highlight Printers/Plotters and activate the Open control button.
Choose Add a Local Printer/Plotter > and the menu item associated with the printer interface type from the Actions menu.
NOTE: The printer driver must be part of the kernel to add the printer to the lp spooler. If the printer driver is not currently configured into the kernel, SAM prompts you to add the driver(s) and reboot the system.

7. Highlight the interface to which you connected the printer and fill in and additional information (port number or bus address) and activate the OK control button. If an interface entry is not listed, activate the Diagnose Missing Card control button.
8. Fill in the printer interface dialog box fields, choose from the menu button values, and turn on and off check box values.
9. Activate the OK control button.

As for the question you posed...what next ... if i am not using SAM, i will use the following HP-UX commands
1. Ensure that a device file exists for the printer
2. Stop the spooler using /usr/lib/lpshut command
3. Now add the printer to the spooler using lpadmin command as follows
/usr/lib/lpadmin -ppname -vdevfile -mmodel
where pname = printer name
devfile = device file
model = script file you would like to
use to model your printer
after
4. Allow prin requests to enter the request
directory using
/usr/lib/accept pname
5. Enable the newly added printer to process
print requests using
/usr/bin/enable pname
6. Finally start the line printer scheduler
/usr/lib/lpsched

Note:- Since you have been having problems, i would suggest that you check after everything to make sure that the scheduler is running using the command
/usr/bin/lpstat -r

I am sorry for the long post

regards
Mobeen
Fadia Almarei
Super Advisor

Re: problrm - add local printer

it seems to be working using the command line,but another thing please how to set this printer as a default priter.
fadia.marei
Steve Steel
Honored Contributor

Re: problrm - add local printer

Hi

lpadmin -dprintername


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Fadia Almarei
Super Advisor

Re: problrm - add local printer

should i shutdown the schedular first
fadia.marei
Mobeen_1
Esteemed Contributor

Re: problrm - add local printer

Fadia,
You can do this by specifying in your spooler
Please see below

System Default Printer (Destination)
You can appoint one of the print destinations in your lp spooler to be the system default printer. It is not necessary to have a system default printer, but it is recommended. A system default printer receives any print requests that are not sent to a specific print destination. You can have only one system default printer.

In addition to, or instead of, a system default printer, you can assign each user a default printer to use. To do this, simply set the user's LPDEST shell environment variable to the name of the system default printer. If LPDEST is set and a user does not specify a different printer to use, the printer referenced by LPDEST will be used. If LPDEST is not set for a user, and the user does not specify a printer, the system default printer (if one is set) will be used. If neither LPDEST or the system default printer is set, a user must specify a printer (or printer class).


regards
Mobeen
Fadia Almarei
Super Advisor

Re: problrm - add local printer

moben as you are expert in this issue i want to ask you anothe thing about the printers ,i want the procedure ,using the command line
fadia.marei