United States-English |
|
|
HP-UX Reference > Ppsmsgen(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEpsmsgen — model script configuration utility for psfontpf SYNOPSIS/usr/sbin/psmsgen [-o model-script-name] [ppd-file] /usr/sbin/psmsgen [-p printer-model] -m model-or-interface-script DESCRIPTIONThe psmsgen command is a terminal-based interactive model script configuration tool for configuring the PS.font model script that uses the psfontpf internationalized PostScript print filter. This command can only be run by a user with superuser privilege. The prerequisite for configuring a certain PostScript printer is the availability of an Adobe PostScript printer description file (PPD) for that printer. That PPD file can be searched and copied from a Microsoft Windows system with the corresponding PostScript print driver installed. The generic PS.font model script can still be used directly without any configuration, but many of the device specific capabilities of the PostScript printer will not be available for use. The psmsgen command is used to either create a new model script or modify an existing model script. However, the psmsgen command cannot be used to modify the generic PS.font model script. The psmsgen command also embeds a usage message into the created or modified model scripts. This usage message explains what command line options are available. This usage message will be displayed when the model script is run without any argument. OptionsThe psmsgen command recognizes the following options:
If no PPD file, ppd-file, is specified in the command line, or the interface script to be modified has no PPD file specified, or the printer model name does not match any of the existing PPD files, the command will display a list of PPD files for the user to choose from the /usr/lib/lp/psfontpf/ppd directory. The command display is a two-level selection menu and the user has to choose the printer manufacturer and color or black and white printer first, and then the list of PostScript printers in that category. If a PPD file is specified without a full pathname, the PPD file is assumed to be from the /usr/lib/lp/psfontpf/ppd directory also. Even though the command allows the use of PPD file in other non-system directories, HP recommends that the new PPD files should be copied to the default /usr/lib/lp/psfontpf/ppd directory for easier maintenance and better availability as the configured model script may not work correctly if the PPD file that it uses is missing. The psmsgen command provides an PPD import option to do just that. There are two ways to configure a model script. One way is to configure the interface script with the -m option after the LP spooling system for a printer is set up. The other way is to create a new configured model script for a particular type of printer in the /usr/lib/lp/model directory. The former way is preferred for configuring a single PostScript printer or several different PostScript printers. The latter way is more appropriate for configuring a group of similar printers at the same time. After the psmsgen command is entered, the user is allowed to configure any of the following settings (see the EXAMPLES section):
The "set output model script file name" setting is not available if the -m option is used to modify an existing script. For the first two or three configuration settings with non-numeric values within the square bracket, those values represent the currently selected values for those settings. For the remaining configuration settings with numeric values within the square bracket, those values can be one of the following:
If the -m option is used to modify an existing model or interface file, the third item for setting output model script name will not display. Only the first two settings will have their values shown directly in the square bracket. There are also three more options that the user can choose. They are:
Each selectable option shown by this command is prefixed by a number. You enter the number to select the corresponding option. The following paragraphs describe each of the configuration settings in more details:
Configuring Network PrintersThe smh system management homepage can be used for configuring local printers. For configuring network printers, you can use either the setnetlp configuration command or use the hppi command in the optional HP JetDirect Printer Installer for Unix software. The network printer setup capability of the smh command depends on the presence of the above HP JetDirect software. The setnetlp command is recommended because it comes with the HP-UX operating system, and it integrates well with the psmsgen command. This command sets up a network printer using the LPD or JetDirect printing protocol. The LPD print queue name is usually "AUTO" for HP printers. For other printers, you may need to consult the documentation or the configuration web page to find out what print queue name should be used. See the setnetlp(1M) manpage for details on how to use this command. EXAMPLESWhen the psmsgen command is invoked without any argument, the following printer selection menus may be displayed depending on what PPD files are available in the /usr/lib/lp/psfontpf/ppd directory: *** PostScript Printer Configuration *** Please select one of the following manufacturer and printer types 1) HP black & white printers 2) HP color printers i) Import an external PPD file Please select an item, or press <CR> to quit: 1 *** PostScript Printer Configuration *** Please select one of the following PPD files 1) HP LaserJet 1300 PS (hpc1300s.ppd) 2) HP LaserJet 2200 Series (hpb22007.ppd) 3) HP LaserJet 2300 PS (hpc2325s.ppd) 4) HP LaserJet 2300L PS (hpc2320s.ppd) 5) HP LaserJet 2410 PS (hpc2410s.ppd) 6) HP LaserJet 2420 PS (hpc2420s.ppd) 7) HP LaserJet 2430 PS (hpc2430s.ppd) 8) HP LaserJet 3015 PS (hpc3015s.ppd) 9) HP LaserJet 3020 PS (hpc3020s.ppd) 10) HP LaserJet 3030 PS (hpc3030s.ppd) 11) hp LaserJet 3050 PS (hpc3050s.ppd) 12) HP LaserJet 3380 PS (hpc3380s.ppd) 13) hp LaserJet 3390 PS (hpc3390s.ppd) 14) HP LaserJet 4100 PS (hpb41007.ppd) 15) HP LaserJet 4200 PS (hpc4200s.ppd) 16) HP LaserJet 4200L PS (hpc420xs.ppd) 17) HP LaserJet 4240 PS (hpc4240s.ppd) 18) HP LaserJet 4250 PS (hpc4250s.ppd) 19) HP LaserJet 4300 PS (hpc4300s.ppd) 20) HP LaserJet 4345 mfp PS (hpc4345s.ppd) 21) HP LaserJet 4350 PS (hpc4350s.ppd) 22) HP LaserJet 5000 Series (hp5000_7.ppd) 23) HP LaserJet 5100 (hp5100_7.ppd) 24) HP LaserJet 8150 PS (hpb81507.ppd) 25) HP LaserJet 9000 PS (hpb90007.ppd) 26) HP LaserJet 9040 mfp PS (hpc904ms.ppd) 27) HP LaserJet 9050 mfp PS (hpc905ms.ppd) 28) HP LaserJet 9050 PS (hpc9050s.ppd) 29) HP LaserJet 9055 MFP PS (hpc9055s.ppd) 30) HP LaserJet 9065 MFP PS (hpc9065s.ppd) Please select an item, or press <CR> to quit: After selecting the HP LaserJet 9000 printer (25), the following menu may be displayed: *** PostScript Printer Configuration *** Current printer model = HP LaserJet 9000 PS Please select one of the following actions 1) Set default locale [C] 2) Set user configuration file [None] 3) Set output model script file name [PS.hpb90007] 4) Set printer installable options [0] 5) Set default values for PPD features [0] 6) Set default user options [0] 7) Set paper size to input tray mapping [0] 8) Add/Remove alias for PPD main keywords [0] 9) Add/Remove alias for PPD option keywords [0] 10) Add/Remove locale name aliases [0] 11) Add/Remove setup macros [0] s) Show all current settings q) Quit x) Save changes and exit Please select an item: |
Printable version | ||
|