|
|||||||||||||||||||
1. Introduction to Printing in the Solaris Operating System 2. Planning for Printing in the Solaris Operating System (Tasks) 3. Setting Up Printing Services (Tasks) 4. Setting Up Printers (Tasks) 5. Administering Printers by Using Solaris Print Manager and LP Print Commands (Tasks) Introduction to Administering Printers Administering Printers by Using Solaris Print Manager (Task Map) Setting Printer Definitions by Using LP Print Commands (Task Map) Administering Print Requests by Using the LP Print Commands (Task Map) Administering Printers That Are Associated With PPD Files (Task Map) 6. Administering Printers That Use Network Printing Protocols (Tasks) 7. Customizing Printing Services and Printers (Tasks) 8. Administering Character Sets, Filters, Forms, and Fonts (Tasks) 9. Administering Printers by Using the PPD File Management Utility (Tasks) 10. Setting Up and Administering Printers From the Desktop (Tasks) 11. Printing in the Solaris Operating System (Reference) 12. Troubleshooting Printing Problems (Tasks) |
Administering Printers and the Print Scheduler by Using LP Print Commands (Task Map)
How to Delete a Printer and Remove Printer Access by Using LP Print CommandsUse this procedure when you remove a printer from service, and you want to remove the printer access from the print clients. Then, remove the printer information from the print server.
Example 5-1 Deleting a Printer and Remote Printer AccessThe following example shows how to delete the printer luna from the print client terra and from the print server jupiter. This example also shows how to delete the print client terra from the print server. terra# lpadmin -x luna Removed “luna”. terra# lpstat -p luna -l jupiter# lpadmin -x luna Removed “terra”. jupiter# lpstat -p luna -l Checking Printer StatusMany routine printer administration tasks require information about the status of the LP print service or a specific printer. For example, you can determine which printers are available for use. You can also examine the characteristics of those printers. You can use the lpstat command to find status information about the LP print service or a specific printer. If a PPD file was used to create or modify a print queue, the specific PPD file is listed in the lpstat output. If a PPD file was not specified when the print queue was created, the PPD entry in the lpstat output is none. How to Check the Status of Printers
Example 5-2 Checking the Status of PrintersThe following example shows how to display the system's default printer. $ lpstat -d system default destination: luna The following example shows how to display the status of the printer luna. $ lpstat -p luna printer luna is idle. enabled since Jul 12 11:17 2001. available. The following example shows how to display the description of the printers asteroid and luna. $ lpstat -p "asteroid luna" -D printer asteroid faulted. enabled since Jan 5 11:35 2004. available. unable to print: paper misfeed jam Description: Printer by break room printer luna is idle. enabled since Jan 5 11:36 2004. available. Description: Printer by server room. The following example shows how to display the characteristics of the printer luna. $ lpstat -p luna -l printer luna is idle. enabled since Thu Jul 12 15:02:32 PM PDT Form mounted: Content types: postscript Printer types: PS Description: Connection: direct Interface: /usr/lib/lp/model/standard PPD: none After fault: continue Users allowed: (all) Forms allowed: (none) Banner not required Character sets: (none) Default pitch: Default page size: 80 wide 66 long Default port settings: Stopping and Restarting the Print SchedulerThe print scheduler, lpsched, handles print requests on print servers. However, the print scheduler might sometimes stop running on a system, so print requests stop being accepted or printed. The lpadmin command automatically enables the lpsched service when local printers are added to the system and disables it when the last local printer is removed. The following procedures describe how to stop and restart the print scheduler. If a print request was printing when the print scheduler stopped running, the print request will be printed in its entirety when you restart the print scheduler. How to Stop the Print Scheduler
How to Restart the Print Scheduler
Starting the Print Scheduler With OptionsThere are two ways to pass options to the print scheduler by using SMF:
How to Set Print Option Values Only for the Duration of a Call
Example 5-3 Setting Option Values Only for the Duration of a CallThis example shows how to set the number of filters to 2. The remaining options will use the defaults that are in the print scheduler. # /usr/lib/lpsched -f 2 To use the default options that are in the print scheduler, run the /usr/lib/lpsched command without any options. Note that starting the print scheduler by using the /usr/lib/lpsched command does not utilize the values that are set with the svccfg command. How to Set Printer Option Values That Remain Over a System Reboot
Example 5-4 Setting Printer Option Values That Remain Over a System RebootThis example shows how to set the number of filters to 1. This option will remain set over a system reboot, or if you restart the print scheduler. # svccfg svc:> select svc:/application/print/server svc:/application/print/server> setprop lpsched/num_filters = count: 1 svc:/application/print/server> quit This example shows how to set all options. # svccfg svc:> select svc:/application/print/server svc:/application/print/server> setprop lpsched/num_filters = count: 1 svc:/application/print/server> setprop lpsched/num_notifiers = count: 1 svc:/application/print/server> setprop lpsched/fd_limit = count: 4096 svc:/application/print/server> setprop lpsched/reserved_fds = count: 2 svc:/application/print/server> quit The following is a sample script that sets all options. #!/bin/ksh svccfg <<-EOF select svc:/application/print/server setprop lpsched/num_filters = count: 1 setprop lpsched/num_notifiers = count: 1 setprop lpsched/fd_limit = count: 4096 setprop lpsched/reserved_fds = count: 2 EOF |
||||||||||||||||||
|