DevOps

Wednesday, 2 October 2013

The LP Print Daemons


The /usr/lib/lpsched daemon is the unix utility that is responsible for scheduling and printing in Solaris Some times it is referred as a lp daemon
To configure the printer in command prompt
# lpadmin
-v to specify the printer port
-p to specify the printer name
-d for default printer
-x to delete the printer
-s to configure the remote printer
# lpadmin –v /dev/lpl –p tvs (on Intel)
# lpadmin –v /dev/ecpp0 –p tvs (onsparc)
# lpadmin –d (for default printer)
# lpstat
-r for checking the print service
-s to check the schedular
-v to display the connected port
-a since how long the printer is accepting the jobs
-d shows the default printer
-p shows what are the printers are configured
-t for total information
# enable
# accept
# lp –o nobanner /etc/passwd
To disable the banner page
# vi /etc/lp/interfaces/tvs
nobanner = no (change to yes)
To list the print jobs
# lpq
# reject
# accept
# disable
# lpmove tvs-24 hp
# lpmove tvs hp
#lpadmin –x (to delete the printer)
To cancel the printer jobs
# lpq
# cancel
The specified users are added to allow or deny file to use the printer service
# vi /etc/lp/printers/printer-name/users.allow
# vi /etc/lp/printers/printer-name/users.deny
To give only the users alice and nice access to the printer
# lpadmin –p epsl –u allow: alice, nice
# lpadmin –p epsl –u deny “alice nice”
To cancel the print job submitted by the user alice
# cancel –u alice
To cancel the print request submitted by the user alice on all the printers
# cancel –u alice
Changing the priority of a print request
# lp –I -H -q
Request –id specifies the print request that you want to change priority
There are three ways to change the priority of the print requests
Hold places the print request on hold until you cancel it
Resume places the print request that has been on hold in the print queue. It will printed according to the priority in the queue
If you put hold on the print job that is already running resume puts the print requests at the head of the queue so that it becomes nest
Immediate place a print reqwuest at the head of the queue. If a request is already running, you can put the request on hold to allow the next request to print immediately
# lp –I epsl-20 –q l
To stop the schedular that is already running
# /usr/lib/lp/lpshut
To restart the schedular
# /usr/lib/lp/lpsched
You can the script to reset the entire LP service
# /etc/init.d/lp stop
# /etc/init.d/lp start

No comments:

Post a Comment