A small command was all I needed to add a Print Queue on Print Server 🙂
lpadmin -p printer_name -E -v beh:/1/0/30/socket://printer_name.fqdn:9100 -P /etc/cups/ppd/driver.ppd
Description of beh:/1/0/30 :- 1 means don’t disable print job, 0 means infinite tries if job fails & 30 means number of seconds between each retry.
lpstat -p printer_name -l shows if its correctly configured or not.
[root@server~]# lpstat -p printer_name -l
printer printer_name is idle. enabled since Thu 08 Jan 2015 03:30:09 PM CET
There’s a little caveat to it. BEH (Backend Error Handler) was not getting recognised 😦 Actually, beh file is a perl script & it needs executable rights. Also, its ownership was not with root. So I changed the permission & ownership. Restarting the cups service enabled BEH with CUPS 🙂
lpinfo -v shows beh in its output if BEH is successfully tied with CUPS.
[root@server ~]# lpinfo -v