1 .\" This manpage has been automatically generated by docbook2man
2 .\" from a DocBook document. This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "TESTPRNS" "1" "04 March 2003" "" ""
8 testprns \- check printer name for validity with smbd
11 \fBtestprns\fR \fBprintername\fR [ \fBprintcapname\fR ]
15 This tool is part of the Samba suite.
17 \fBtestprns\fR is a very simple test program
18 to determine whether a given printer name is valid for use in
19 a service to be provided by \fB smbd(8)\fR
21 "Valid" in this context means "can be found in the
22 printcap specified". This program is very stupid - so stupid in
23 fact that it would be wisest to always specify the printcap file
28 The printer name to validate.
30 Printer names are taken from the first field in each
31 record in the printcap file, single printer names and sets
32 of aliases separated by vertical bars ("|") are recognized.
33 Note that no validation or checking of the printcap syntax is
34 done beyond that required to extract the printer name. It may
35 be that the print spooling system is more forgiving or less
36 forgiving than \fBtestprns\fR. However, if
37 \fBtestprns\fR finds the printer then
38 \fBsmbd\fR should do so as well.
41 This is the name of the printcap file within
42 which to search for the given printer name.
44 If no printcap name is specified \fBtestprns
45 \fR will attempt to scan the printcap file name
46 specified at compile time.
49 \fB\fI/etc/printcap\fB\fR
50 This is usually the default printcap
51 file to scan. See \fIprintcap (5)\fR.
54 If a printer is found to be valid, the message
55 "Printer name <printername> is valid" will be
58 If a printer is found to be invalid, the message
59 "Printer name <printername> is not valid" will be
62 All messages that would normally be logged during
63 operation of the Samba daemons are logged by this program to the
64 file \fItest.log\fR in the current directory. The
65 program runs at debuglevel 3, so quite extensive logging
66 information is written. The log should be checked carefully
67 for errors and warnings.
69 Other messages are self-explanatory.
72 This man page is correct for version 2.2 of
81 The original Samba software and related utilities
82 were created by Andrew Tridgell. Samba is now developed
83 by the Samba Team as an Open Source project similar
84 to the way the Linux kernel is developed.
86 The original Samba man pages were written by Karl Auer.
87 The man page sources were converted to YODL format (another
88 excellent piece of Open Source software, available at
89 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
90 release by Jeremy Allison. The conversion to DocBook for
91 Samba 2.2 was done by Gerald Carter