Operating System - HP-UX
1820707 Members
2901 Online
109627 Solutions
New Discussion

Enable/disable a print queue in samba

 
enrico.nic
Regular Advisor

Enable/disable a print queue in samba

Hi all
I have a small problem with a print queue in Samba. It is a normal lpd queue, that sometimes goes down (like with a "disable ") without notice. In samba, the "down state" isn't reported to the windows clients.
In the /etc/opt/samba/smb.conf file, I generally give these options for the print queues:
printable = Yes
printing = hpux
print command = /usr/bin/lp -c -d%p -s %s; rm %s
lpq command = /usr/bin/lpstat -o%p -p%p
lprm command = /usr/bin/cancel %p-%j
lppause command = /usr/bin/lpalt %p-%j -p0
lpresume command = /usr/bin/lpalt %p-%j -p2
printer name = name_of_printer

that function well to print/cancel/suspend/resume a job, but I don't know what to do to put the queue in up/down state or, possibly, to pass the clients this information.

Thank you in advance

Enrico