|
|||
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) 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) Administering PPD Files by Using the PPD File Management Utility (Task Map) Overview of the PPD File Management Utility 10. Setting Up and Administering Printers From the Desktop (Tasks) 11. Printing in the Solaris Operating System (Reference) 12. Troubleshooting Printing Problems (Tasks) |
Using the PPD File Manager (ppdmgr) UtilityHow to Add a PPD File to a System by Using the ppdmgr UtilityThis procedure describes how to use the ppdmgr utility to add a new PPD file to the system. You can also specify a PPD file label, PPD repository, or the source path of the PPD file, by using the appropriate arguments with the ppdmgr -a command. Note that when you add a PPD file to the system by using the ppdmgr command, the file is copied to the label and repository that you specify and then compressed.
Example 9-1 Adding a PPD File to a System by Using the ppdmgr utilityThis example shows how to add a PPD file, myHPprinter.ppd, to the system. Note that in this example and the examples that follow the path that is specified varies. # ppdmgr -a /net/somesystem/myHPprinter.ppd The path to where the copy of the PPD file can be found on the system is /var/lp/ppd/user/HP/myHPprinter.ppd.gz. Using this command, with the -a option, copies the file to the user label within the user repository. Example 9-2 Adding a PPD File to a System With a Specified Label by Using the ppdmgr utilityThis example shows how to add the PPD file myHPprinter.ppd, with the specified label, Photos, to the system. # ppdmgr -a /net/somesystem/myHPprinter.ppd -L Photos The path to where the copy of the PPD file can be found on the system is /var/lp/ppd/Photos/HP/myHPprinter.ppd.gz. Using this command, with the -a and the -L options, copies the PPD file to the Photos label within the user repository. Example 9-3 Adding a PPD File to a System to a Specified Repository by Using the ppdmgr UtilityThis example shows how to add a PPD file, myHPprinter.ppd, to the admin repository on a system. # ppdmgr -a /net/somesystem/myHPprinter.ppd -R admin The path to where the copy of the PPD file can be found on the system is /usr/local/share/ppd/user/HP/myHPprinter.ppd.gz. Using this command with the -a and -R options, copies the file to the user label directory within the admin repository. Example 9-4 Adding a PPD File to a System With a Specified Label to a Specified Repository by Using the ppdmgr UtilityThis example shows how to add a PPD file, myHPprinter.ppd, to a system, specifying the Photos label and the admin repository. # ppdmgr -a /net/somesystem/myHPprinter.ppd -L Photos -R admin The path to where the copy of the PPD file can be found on the system is /usr/local/share/ppd/Photos/HP/myHPprinter.ppd.gz. Using this command with the -a, -L and -R options copies the file to the Photos label within the admin repository. Example 9-5 Adding a PPD File to a System and Displaying the Full Path to Where the File Was Copied by Using the ppdmgr UtilityThis example shows how to add a PPD file, myHPprinter.ppd, to a system, displaying the destination path of the PPD file. Use the ppdmgr command with this option to determine where on the system the PPD file was copied. # ppdmgr -a /net/somesystem/myHPprinter.ppd -w The path to where the copy of the PPD file can be found on the system is /var/lp/ppd/user/HP/myHPprinter.ppd.gz. Using this command with the -a and -w options copies the specified file to the user label within the user repository. The -w option is only valid when used in combination with the -a option. Otherwise, this option is ignored. See AlsoFor a detailed description of the ppdmgr command-line options and for guidelines on adding PPD files, see Description of the Command-Line Options for the ppdmgr Utility. How to Add a PPD File to a System by Using the lpadmin -n CommandThis procedure shows how to use the lpadmin command to modify an existing print queue configuration to associate a specified PPD file with the print queue. If you use the lpadmin command with the -n option to add a PPD file to a system, you cannot specify a label or a repository. Instead, the user label is assigned to the file, and the file is then copied to the user repository. If you want to specify a user-defined label or repository, use the ppdmgr utility to add the PPD file. See How to Add a PPD File to a System by Using the ppdmgr Utility.
Example 9-6 Adding a PPD File to an Existing Print Queue by Using the lpadmin -n CommandThis example shows how to modify the print queue, printer1, to associate it with a copy of the specified PPD file. # lpadmin -p printer1 -n /path/mynewHPppdfile.ppd The specified PPD file is stored in /var/lp/ppd/user/HP/mynewHPppdfile.ppd.gz. Updating the PPD Cache FileAn update of the PPD cache file on a system updates the existing information in the PPD cache file. You might the request and update of the PPD cache file on a system in the following instances:
Any changes that you make are reflected in Solaris Print Manager after the update has completed. Rebuilding the PPD Cache FileA rebuild of the PPD cache file removes the existing cache and builds a completely new cache. This process can be time-consuming, especially if many PPD files are on the system. Therefore, only request a rebuild of the PPD cache file in troubleshooting situations. For guidelines that pertain to updating and rebuilding the PPD cache file, see Description of the Command-Line Options for the ppdmgr Utility. How to Update or Rebuild the PPD Cache File by Using the ppdmgr UtilityThis procedure describes how to update or rebuild the PPD cache file by using either the -u or the -r option of the ppdmgr utility.
Example 9-7 Updating the PPD Cache File by Using the ppdmgr UtilityThis example shows how to update the PPD cache file to reflect information from the PPD files that are assigned in all the labels within the user repository. # ppdmgr -u This example shows how to update the PPD cache file to reflect information from the PPD files that are assigned in the Photos label within the user repository. # ppdmgr -u -L Photos This example shows how to update the PPD cache file to reflect the information from the PPD files that are assigned in all the labels within the admin repository. # ppdmgr -u -R system This example shows how to update the PPD cache file to reflect information from the PPD files that are assigned in the Photos label within the admin repository. # ppdmgr -u -L Photos -R admin Managing the ppd-cache-update ServiceThe Service Management Facility (SMF) service for updating the PPD cache file, application/print/ppd-cache-update, is run once during system reboot to ensure that modifications made to any PPD file repositories on a system are reflected in the ppdcache file. The service instance is svc:/application/print/ppd-cache-update. This service is enabled by default when you install the Solaris software. To enable or disable the service, use the svcadm command. Note - During a software installation or an upgrade, the cache file entries are generated for all PPD files that are delivered to the system repository, /var/lp/ppd. As a result, when the system reboots, it might take longer for the service to make the transition to an online state. For instructions, see How to Enable or Disable the ppd-cache-update Service. For information about using SMF and the svcadm command, see the smf(5) and svcadm(1M) man pages. How to Enable or Disable the ppd-cache-update Service
See AlsoFor step-by-step instructions on using the ppdmgr utility with the -u option to update the PPD cache file, see How to Update or Rebuild the PPD Cache File by Using the ppdmgr Utility. |
||
|