1834619 Members
3212 Online
110069 Solutions
New Discussion

Dummy printer

 
Geert Slaats
Occasional Advisor

Dummy printer

Hi,

Have a new HP-UX RP5430 with HP-UX 11.00 and Jetdirect software.

I want to create a dummy printer, e.g. test_1 to /dev/nulll ??
(because some log prints come now at my default printer)

Does someone know how ?

Regards,
Geert
6 REPLIES 6
twang
Honored Contributor

Re: Dummy printer

The method I used:
sam > Printers and Plotters > LP Spooler > Printers and Plotters > Action (from menu) > Add Remote Printer/Plotter......(menu item) >
and fill in the required details, for example,
Name pt_eng_501
Type remote
Enabled To Print yes, idle
Accepting Requests yes
Location LPT1 on ps-eng-501
Fence Priority 0
Class

(pt_eng_501: dump print queue name;
ps-eng-501: hostname or ip is ok)
Stefan Farrelly
Honored Contributor

Re: Dummy printer

Youre going to have to modify the printer driver script to do this.

Setup a printer as a remote printer (to an ip or another server/queue). Then modify the driver in /var/spool/lp/interface/
Change the rlp line almost at the bottom, comment it out, and it wont get to the print queue.

I think its much easier to create a print queue, disable it, then print to it (but it wont print), then cancel the print job.

Im from Palmerston North, New Zealand, but somehow ended up in London...
twang
Honored Contributor

Re: Dummy printer

In addition, you may use the command as follows:
# /usr/lib/lpadmin -p -v/dev/null -i
Ian Lochray
Respected Contributor

Re: Dummy printer

SAM
Printers and Plotters
LP Spooler
Printers and Plotters
Action Bar : Add Local Printer
Add Printer with Non Standard Device File
Use /dev/null for Printer Device File Name and fill in the other fields as appropriate.
Chris Wilshaw
Honored Contributor

Re: Dummy printer

A simple dummy printer can be added using

lpshut
lpadmin -pdummy_printer -v/dev/null -mdumb
lpsched

Chris
K.Vijayaragavan.
Respected Contributor

Re: Dummy printer

#lpshut
#lpadmin -p -mmodel_script -v /dev/null.
#lpsched
# accept printer_name
# enable printer_name

are the steps to configure a dummy printer.
"Let us fine tune our knowledge together"