$ lpsched

To create a class with existing printers as members:

1.Choose a name for the class (called class in the examples below).

2.Run lpadmin to insert the desired printers into the class. The runstring is similar to:

CI> lpadmin -pprinter-cclass

3. Allow requests to be submitted for the class by running accept:

CI> accept class

4.If you wish the new class to be the system default destination, enter:

CI> lpadmin -dclass

To remove a printer from the system:

1. Disallow further submissions to the printer by running reject:

CI> reject -r‘”reason for removal”‘ printer

2. Verify that the printer is not busy by running lpstat:

CI> lpstat -oprinter

If the printer is busy, you may wish to terminate the request active on that printer, or you may wish to let it complete.

3.Disable the printer from printing any further requests by running disable. If a request is active on the printer, this will abort the printing. The runstring is:

CI> disable -r‘”reason for removal”‘ printer

4.When activity on the printer stops, the physical printer device may be disconnected.

5.If any requests remain queued for the printer, you may wish to move them to a new destination. To see if any requests are queued, enter:

CI> lpstat -oprinter

If any requests need to be moved, run the lpmove program:

CI> lpmove printer newprinter

6.If you wish to remove all traces of the printer from the spool system, run the lpadmin program to remove the printer name:

CI> lpadmin -xprinter

LP Spool System 243