RSS


[ Pobierz całość w formacie PDF ]
.The window closes, and the newprinter name appears in the Printers window, shown in Figure 10-2.Using a Printer Not Listed on the Printer Types MenuPrinter types listed in the Print Manager window correspond to printers listed in the/usr/share/lib/terminfo directory.If a printer type is not available for the type of printer youare adding, you might need to add an entry in the /usr/share/lib/terminfo database.Eachprinter is identified in the terminfo database by a short name; for example, an HP LaserJetprinter is listed under the /usr/share/lib/terminfo/h directory as hplaserjet.The entries forPostScript printers are in /usr/share/lib/terminfo/P.The name found in the directory is theprinter type you specify when setting up a printer. 12 2496 Ch10 8/30/00 1:14 PM Page 234234 CHAPTER 10 THE LP PRINT SERVICEIf you cannot find a terminfo entry for your printer, you can try selecting a similar type ofprinter; however, you might have trouble keeping the printer set in the correct modes foreach print request.If there is no terminfo entry for your type of printer and you want tokeep the printer set in the correct modes, you can either customize the interface programused with the printer or add an entry to the terminfo database.You ll find the printer inter-face program located under the /etc/lp/interfaces directory.Editing an interface file oradding an entry to the terminfo database is beyond the scope of this training guide.Aprinter entry in the terminfo database contains and defines hundreds of items.Refer to theSolaris 7 System Administration Guide, Volume II in the Answerbook2 online manuals forinformation on performing this task.Administering PrintersManaging the print system involves monitoring the lp system and uncovering reasons whyit might not be working properly.Other routine tasks involve canceling print jobs andenabling or disabling a printer while it s being serviced.This section provides instructionsfor the daily tasks you will perform to manage printers and the print scheduler.All of thefollowing commands require superuser access.Deleting Printers and Managing Printer AccessUse the Admintool to delete a printer from the system.In the Print Manager window ofAdmintool, highlight the printer you want to delete and select Edit, Delete, as shown inFigure 10-6.The printer queue will be deleted from the system.Figure 10-6Deleting a printer.To delete a printer at the command line, issue the following command on the system wherethe printer is connected:lpadmin -x 12 2496 Ch10 8/30/00 1:14 PM Page 235ADMINISTERING PRINTERS 235The printer is deleted from the system.Maybe you do not want to remove the printer from the print server but you want to keep aparticular system from printing to the print server.Issue the following command on the printclient from which you want to delete the printer:lpsystem -rThe print server is deleted from the print client s /etc/lp/Systems file.Perhaps a printer will be going offline for repairs.To stop accepting print requests on a par-ticular printer, type the following command on the system where the printer is physicallyconnected:rejectThis step prevents any new requests from entering the printer s queue while you are in theprocess of removing the printer.To allow a printer to keep taking requests but to stop the printer from printing the requests,type the following command on the system where the printer is physically connected:disableWhen stopping or disabling a printer, you might need to move existing jobs that have beenqueued to that printer.To move print jobs from one printer to another, use the lpmove commandas follows:lpmoveThe arguments for the lpmove command are described in Table 10-5.Table 10-5 lpmove ArgumentsArgument DescriptionThe name of the printer from which all print requests will be moved.The name of the printer to which all print requests will be moved. 12 2496 Ch10 8/30/00 1:14 PM Page 236236 CHAPTER 10 THE LP PRINT SERVICEIf you move all the print requests to another printer, the lpmove command automaticallystops accepting print requests for printer1.This next step is necessary if you want to beginaccepting new print requests for the printer:accept printer1In the following example, the lpmove command moves print requests from the printer eps1to the printer eps2, and the accept command tells the original printer, eps1, to resumeaccepting print requests:lpmove eps1 eps2accept eps1Creating Printer ClassesYou can put several locally attached printers into a group called a printer class.This mightbe helpful if you have several printers sitting next to each other, and it doesn t matter whichprinter your job goes to.When you have set up a printer class, users can then specify theclass (rather than individual printers) as the destination for a print request.The first printerin the class that is free to print is used [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • wblaskucienia.xlx.pl