Install both printers on CUPS (as root): (example below)
# lpadmin -p <printer1> -E -v socket://<printerIP>:9100 -P /path/to/PPD-file
# lpadmin -p <printer2> -E -v socket://<printerIP>:9100 -P /path/to/PPD-file
Create a CUPS class for the 2 printers:
# lpadmin -p <printer1> -c printer_class_name
# lpadmin -p <printer2> -c printer_class_name
Put a share for this class manually into smb.conf:
# [printer_class_name]
# comment = CUPS-"class" of printers
# browseable = yes
# printable = yes
# public = yes
# read only = yes
# create mode = 0700
# directory = /tmp
Restart smbd.
You should now be able to "see" the class now like a normal printer in the network neighbourhood. You can't directly download a driver for it from the CUPS server (as with normal printers). You need to install a driver through one of the other means. If you print to this printer class, the jobs get alternately printed by one of the members (round-robin) as long as they are both alive. If one is down, the other does the whole lot. Works also with bigger classes.
(excerpt from http://lists.samba.org/archive/samba/2002-February/037322.html )
|