Operating System - HP-UX
1833832 Members
2018 Online
110063 Solutions
New Discussion

enable/disable a print queue in smb/cifs

 
enrico.nic
Regular Advisor

enable/disable a print queue in smb/cifs

Hi all
I have a small problem with a print queue in Samba. It is a normal lpd queue, that sometimes goes down in the same way as a
$ disable
command, but 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