testprns |
This is a very simple program that checks to see if a specified printer name exists in the system printer capabilities (printcap) file.
testprns printername [printcapname]
If printcapname isn't specified, Samba attempts to use the one specified in the Samba configuration file with the printcap name parameter. If none is specified there, Samba will try /etc/printcap .