Specifications

6-44
Guide to Printers and Printing
3. Create the file /usr/spool/lp/remote and add the following lines:
port: lp –dreal –oportrait
land: lp –dreal –olandscape
This specifies that when printing to printer land, the print system sends the print job to
printer real using the –olandscape option (to print in landscape mode) and when printing
to printer port, the print system sends the print job to printer real using the –oportrait
option (to print in portrait mode).
Note: The options listed after –dreal depend on the printer model. Check the
interface script in /usr/spool/lp/admins/lp/interface for your printer to determine the
printer– or class–dependent –o options.
To print a file in landscape mode, enter:
lp –dland filename
This procedure translates the –dland option to lp to the necessary options for the printer (in
this example, –dreal –ol).
Another way to accomplish this is to create a simple shell script to perform the type of
printing. For example:
:
# Land – shell script to print in landscape mode
#
# syntax: land <file> <file> ...
#
#
lp –dreal –ol $@
The reasons for choosing one method over the other depend on how your applications
access the print system. Many applications allow you to specify only the name of the printer,
so virtual printers are the only solution. Other applications might allow complete control over
the commands that submit the print job. In this case, you might use the shell script in the
preceding example.
Related Information
For more information, see the cancel command in the AIX 5L Version 5.3 Commands
Reference, Volume 1.
For more information, see the dslpaccept, dslpaccess, dslpadmin, dslpdisable,
dslpenable, dslpreject, and dslpsearch commands in the AIX 5L Version 5.3 Commands
Reference, Volume 2.
For more information, see the lp, lpstat, mkprtldap, and mksecldap commands in the AIX
5L Version 5.3 Commands Reference, Volume 3.
Configuring Directory–Enabled (LDAP) System V Print on AIX
Lightweight Directory Access Protocol (LDAP) is a distributed hierarchical directory–service
access protocol that is used to access repositories of user information and other
network–related entities. The IBM Directory is an LDAP directory server. The AIX System V
print subsystem’s use of IBM Directory allows for centralized storage of print information.
This functionality can be used to keep printers, print queues, and system information
common in a client–server environment. The mkprtldap command configures Directory as
a server containing System V print information, and one or more clients that use the
Directory (LDAP) for print information.
Beginning with AIX 5.2, the System V print subsystem is directory–enabled, allowing the
System V print subsystem to be managed using the information stored in the LDAP
directory. The System V print subsystem is one of the many AIX subsystems that provide an
option to store information in the directory. The information stored in the directory will be