System Administration Guide

How to Add Access on the Print Client using LP Commands

  1. Collect the required information.

    All that is required is the name of the printer and the name of the server for that printer.

  2. Define the printer by using the lpadmin command.

    # lpadmin -p printer_name -s server_name
    
  3. (Optional) Add a description to the printer.

    # lpadmin -p printer_name -D "description"
    
  4. Verify the printer is correctly configured by using the lpstat command.


    #	lpstat -p printer-name
     
    

Example--Adding Access on the Print Client using LP Commands

If you want to print to a remote printer, you must add access to the remote printer. This example shows how to configure access to a printer named luna, whose print server is saturn. The system saturn becomes a print client of the printer luna.


 [Identifies the printer and the print server.] # lpadmin -p luna -s saturn
 [Adds a description for the printer.] # lpadmin -p luna -D "Room 1954 ps"
 [Sets the printer as the system's default printer destination.] # lpadmin -d luna
 [Verifies that the printer is ready.] # lpstat -p luna
		printer luna is idle. enabled since Jun 24 18:30 1996. available.