The Printer Database Directory Hierarchy on System V
10.2.2 System V Printer Configuration and the Printer Capability Database
We have already mentioned that the System V printing subsystem includes the versatile and powerful administrative command lpadmin, which can be used to manage many printing configuration issues. The lpadmin command configures LP spooling systems to describe printers, classes, and devices. It is used to add and remove printing destinations, change membership in classes, change devices for printers, change printer interface programs, and change the system default destination. However, this does not mean the lpadmin command is a magic solution for any printing need or problem. It is very helpful in defining and setting the printing resources, but the printing configuration must be saved after the initial setting to be available to the system when needed. It is important to understand the lpadmin background — what happens behind the scenes, hidden from users, and even hidden from the system administrators, for successful administration of the System V printing subsystem.10.2.2.1 The Printer Database Directory Hierarchy on System V
The System V printer capability database is organized differently from BSDs. Instead of a huge single database file the BSD etcprintcap file, in System V there is a printing−related directory hierarchy, or even hierarchies. The core of this hierarchy is the usrspoollp directory or varspoollp, for some flavors and the etclp regardless of the name of the directory, the 234 Let us examine the directory hierarchy. The lpadmin command helps the system administrator handle the printer capability database for different printer models types. Model interface programs are supplied, and installed, with the LP software. These are shell procedures, C programs, or other executable programs that interface between the lpsched daemon and printing devices; using the BSD terminology, they are filters for printing on different printers. The standard LP software should include model programs for existing standard printers; the printer vendors should supply less−common models files. All printer model files reside in the directory usrspoollpmodel. Models should have 644 permission set if owned by lp and bin, or 664 permission if owned by bin and bin. Model file names must not exceed 14 characters. Model programs are important when a new printer is added to the system; the lpadmin command relies on model programs the lpadmin −m option to establish an appropriate interface program for proper future printing on the new printer. Adding new printers could be quite painful without these programs, and could require advanced system administration skills. If only minor modifications are needed, one way around this quandary could be the creation of a new model program by modifying a copy of an existing model. In general, though, it is not easy to deal with model programs this way. Model programs are scripts, i.e., readable ASCII files. Unfortunately, this is not the case with all printing related files; there are a number of binary files that can only be handled with the available LP front−end commands. A brief trip through the usrspoollp hierarchy can provide a better understanding of the System V printing subsystem. Here is an example from the HP−UX platform: ls −F usrspoollp FIFO cmodel interface model qstatus sinterface SCHEDLOCK default log oldlog receive smodel cinterface fonts lpd.log outputq request class info member pstatus seqfile ls −C usrspoollpmodel HPGL1 dumb hp2560 hp2934a laserjet HPGL2 dumbplot hp2563a h p33440a laserjetIIISi HPGL2.cent fonts hp2564b hp33447a paintjet PCL1 hp2225a hp2565a hp3630a postscript PCL2 hp2225d hp2566b hp7440a quietjet PCL3 hp2227a hp2567b hp7475a rmodel PCL4 hp2228a hp256x.cent hp7550a ruggedwriter clustermodel hp2235a hp2631g hp7570a thinkjet colorpro hp2276a hp2684a hp7595a deskjet hp2300–1100L hp2686a hp7596a draftpro hp2300–840L hp2932a hpC1208a Model programs correspond to all printer models that can be attached and used on the system. This does not mean that they all are active. Only certain model files take part in creating other active files named interface files that reside in the directory usrspoollp interface. Interface files are directly involved in the printing process and are important for printers currently in use. In most cases, but not all, these files are direct copies of the corresponding model files. For example: ls −l usrspoollpinterface total 36 −rwxr−xr−x 1 lp lp 18416 Mar 30 14:31 panlaser 235 On Solaris 2.x a majority of the LP related files reside in the varspoollp and etclp directories: ls −l varspoollp total 18 −rw−rw−r−− 1 lp lp 0 Sep 28 09:25 SCHEDLOCK drwxrwxr−x 2 lp lp 512 Apr 4 1995 admins lrwxrwxrwx 1 root root 23 Apr 4 1995 bin − ...... usrliblpbin drwxrwxr−x 4 lp lp 512 Sep 21 15:24 fifos lrwxrwxrwx 1 root root 13 Apr 4 1995 logs − .... lplogs lrwxrwxrwx 1 root root 25 Apr 4 1995 model − ...... usrliblpmodel drwxrwxr−x 3 lp lp 512 Apr 4 1995 requests drwxrwxr−x 2 lp lp 512 May 9 12:20 system lrwxrwxrwx 1 root root 23 Apr 4 1995 temp − varspoollptmpatlas drwx−−x−−x 4 lp lp 512 Apr 4 1995 tmp ls −l etclp total 24 −rw−rw−r−− 1 lp lp 2141 Apr 4 1995 Systems drwxrwxr−x 2 lp lp 512 Apr 4 1995 alerts drwxrwxr−x 2 lp lp 512 Apr 4 1995 classes drwxr−xr−x 2 lp lp 512 Apr 4 1995 fd drwxrwxr−x 2 lp lp 512 Apr 4 1995 forms drwxrwxr−x 2 lp lp 512 May 9 13:09 interfaces lrwxrwxrwx 1 root root 17 Apr 4 1995 logs − .... varlplogs lrwxrwxrwx 1 root root 17 Apr 4 1995 model − usrliblpmodel drwxrwxr−x 2 lp lp 512 May 9 13:09 printers drwxrwxr−x 2 lp lp 512 Apr 4 1995 pwheels 10.2.2.2 Setting the System V Default Printer We should again use the mighty lpadmin command to set a systemwide default printer. The command: lpadmin −d hplj6dp will set the printer named hplj6dp as the default one. Any previously set default printer will no longer be the default, and the new default printer become active. To check a system for the default printer, use the command: lpstat −d The default printer data is stored in the file usrspoollpdefault.10.2.3 AIX Printing Facilities
Parts
» Unix Administration. 7485KB Mar 29 2010 05:04:17 AM
» UNIX Operating System UNIX — Introductory Notes
» Berkeley Standard Distribution — BSD UNIX System V or ATT UNIX
» System Administrators Job UNIX System and Network Administration
» Computing Policies UNIX System and Network Administration
» Legal Acts Administration Guidelines
» Code of Ethics Administration Guidelines
» USENIX System Administrators Guild — SAGE
» In This Book UNIX System and Network Administration
» Introduction The Unix Model — Selected Topics
» Access Classes File ProtectionFile Access
» Default File Mode File ProtectionFile Access
» Plain Regular File Socket Named Pipe
» Special File Names Special File Creation
» Process Types Process Attributes
» Process Life Cycles Processes
» System V ATT Flavored ps Command
» Destroying Processes The UNIX kill command will eliminate a process entirely:
» Becoming a Superuser Communicating with Other Users
» The man Command UNIX Online Documentation
» The uptime Command The uptime command displays:
» Personal Documentation UNIX Administration Starters
» Shell Script Execution UNIX Shell Scripts
» Shell Variables UNIX Shell Scripts
» Double Command−Line Scanning
» Introductory Notes System Startup and Shutdown
» The Bootstrap Program System Startup
» The Kernel Execution System Startup
» System States System Startup
» The Outlook of a Startup Procedure
» Initialization Scripts System Startup
» The BSD rc Scripts BSD Initialization Sequence
» BSD−Like Initialization System V Initialization
» An Example Shutdown Procedures
» Introduction to the UNIX Filesystem
» System V Filesystem Directory Organization
» Mounting a Filesystem home, users
» Dismounting a Filesystem home, users
» Automatic Filesystem Mounting Removable Media Management
» BSD Filesystem Configuration File
» Filesystem Types A Few Other Filesystem Issues
» Swap Space — Paging and Swapping
» Loopback Virtual Filesystem A Few Other Filesystem Issues
» Display Filesystem Statistics: The df Command
» Checking Filesystems: The fsck Command
» Introduction UNIX Filesystem Layout
» Disk Partitions Physical Filesystem Layout
» Filesystem Structures Physical Filesystem Layout
» The mkfs Command Filesystem Creation
» File Identification and Allocation
» File Storage vs. File Transfer
» Reserved Free Space Filesystem Performance Issues
» Logical Volume Manager — AIX Flavor
» Logical Volume Manager — Solaris Flavor
» Redundant Array of Inexpensive Disks RAID
» The Volume Snapshot Snapshot
» The Filesystem Snapshot Snapshot
» Virtual UNIX Filesystem Logical Filesystem Layout
» Disk Space Upgrade UNIX Filesystem Layout
» User Database — File etcpasswd
» Initialization Template Files UNIX Login Initialization
» User Login Initialization Files
» Systemwide Login Initialization Files
» Restricted User Accounts Users and Secondary Groups
» Assigning User Passwords Standard UNIX Users and Groups
» Managing Disk Usage by Users
» System V Accounting Accounting
» AIX−Flavored Accounting Accounting
» Physical Security Passwords UNIX Lines of Defense
» File Permissions UNIX Lines of Defense
» Backups Password Encryption UNIX Lines of Defense
» Setting Password Restrictions UNIX Lines of Defense
» The Wheel Group Secure Terminals — Other Approaches
» History of the Root Account Tracking User Activities
» The syslogd Daemon The Concept of System Logging
» The Configuration File etcsyslog.conf
» Linux Logging Enhancements The logger Command
» Testing System Logging System Logging Configuration
» The last Command Limiting the Growth of Log Files
» BSD Printing Subsystem UNIX Printing Subsystem
» The lp, lpstat, and cancel Commands
» The etcprintcap File BSD Printer Configuration and the Printer Capability Database
» Filters BSD Printer Configuration and the Printer Capability Database
» The Printer Database Directory Hierarchy on System V
» Setting a Remote Printer on HP−UX
» BSD and AIX Cross−Printing Solaris and BSD Cross−Printing
» Third−Party Printer Spooling Systems
» The tput Command The tset, tput, and stty Commands
» The stty Command The tset, tput, and stty Commands
» The tar Command Tape−Related Commands
» The cpio Command Tape−Related Commands
» The dd Command Tape−Related Commands
» The mt Command Magnetic Tape Devices and Special Device Files
» The SVR3 and SVR4 backup Commands
» The fbackup Command Backup and Dump Commands
» The dumpufsdump Command Backup and Dump Commands
» Interactive Restore The restore Commands
» The frecover Command Restoring Files from a Backup
» Tape Control UNIX Backup and Restore
» The NTP Daemon Network Time Distribution
» The crontab Files Network Time Distribution
» The crontab Command Network Time Distribution
» Linux Approach Network Time Distribution
» Programs Scheduled for a Specific Time
» UNIX and Networking Network Fundamentals
» TCPIP and the Internet ISO OSI Reference Model
» TCPIP Protocol Architecture Computer Networks
» Internet Protocol IP Internet Layer and IP Protocol
» Network Access Layer Transport Layer and TCP and UDP Protocols
» Application Layer TCPIP Layers and Protocols
» IP Address Classes Data Delivery
» Dynamic Routing Internet Routing
» Protocols, Ports, and Sockets
» UNIX Database Files Multiplexing
» The arp Command Address Resolution ARP
» The portmapper Daemon The etcrpc File
» The ifconfig Command Configuring the Network Interface
» The netstat Command Configuring the Network Interface
» The inetd Daemon Super Internet Server
» Further Improvements and Development
» Host Names and Addresses Domain Name Service DNS
» The Local Host Table — etchosts
» Handling the NIC Host Table — A Journey into the Past
» Other Resolver Parameters BIND Configuration
» Name Servers UNIX Name Service — BIND
» The Configuration File etcnamed.boot
» The named.local File The named.cache file
» Subdomains and Parenting BIND Version 8.X.X
» The nslookup Interactive Mode
» A Few Examples of nslookup Usage
» Purpose and Concepts Network Information Service NIS
» To Create an NIS Client NIS Domain Name
» The etcnetgroup File DatabasesNIS Maps
» Security Issues NIS Management
» The showmount Command Mounting Remote Filesystems
» An Example The Automount Maps
» The rlogin Command The rcp Command
» The HOME.rhosts File Using UNIX r−Commands — An Example
» SSH Configuration Secure Shell SSH
» Root Access SSH Installation and User Access Setup
» SSH — Version 2 Secure Shell SSH
» Simple Mail Transport Protocol SMTP
» Rewriting an E−mail Address Pattern Matching
» Address Transformation The Parsing of E−mail Addresses
» Testing Rewrite Rules The sendmail −bt Command
» The Debugging Level Checking the Mail Queue
» Mail Subcommands The Mail Program and .mailrc File
» POP Transactions Post Office Protocol POP
» Internet Message Access Protocol IMAP
» Finger Common UNIX Network Applications
» The ping Command Host Connectivity
» The traceroute Command Host Connectivity
» The X Administration Philosophy
» Window Managers An Introduction to the X Window System
» xdm Configuration Files The X Display Managers
» Vendor−Specific X Flavors — a Configuration Example
» XDMCP Queries The Xaccess File
» Other Access Control Mechanisms
» Components of the xdm−Based User X Environment
» Other Startup Methods The User X Environment
» A Permanent X11 Installation
» Introduction to Kernel Reconfiguration
» Kernel Configuration Database Kernel Reconfiguration
» The config Command BSD−Like Kernel Configuration Approach
» HP−UX 10.x Kernel Configuration
» UNIX and Modems Introduction to Modems
» Terminal Lines and Modem Control
» C−Kermit Third−Party Communication Software
» UUCP Versions UUCP Chat−Transfer Session
» The UUCP Daemons UUCP Commands, Daemons, and Related Issues
» The UUCP Spool Directories and Files
» Additional Security in BNU UUCP
» Additional Security in Version 2 UUCP
» Intranet vs. Internet Introduction to Intranet
» Intranet Design Approach Introduction to Intranet
» Life Cycle of a Virus Virus Types
» The Viruswall Implementation Viruswalls
» Application Proxies SOCKS Proxies
» Web Services Intranet Front−End Services
» Other External Services Intranet Front−End Services
» Network Infrastructure and Desktops
» Dynamic Host Configuration Protocol DHCP
» UNIX and Not−UNIX Platform Integration
» HP−UX Installation UNIX Installation Procedures
» Linux Installation UNIX Installation Procedures
» Solaris Patch Installation HP−UX Patch Installation
» Solaris and Lost Root Password HP−UX and Lost Root Password
» Solaris Procedure to Create an Alternate Boot Partition
» Solaris Recovery of the Failed Mirrored Boot Disk
Show more