Added link to YODL url.
[ira/wip.git] / docs / manpages / testprns.1
1 .TH "testparm" "1" "23 Oct 1998" "Samba" "SAMBA" 
2 .PP 
3 .SH "NAME" 
4 testparm \- check printer name for validity with smbd 
5 .PP 
6 .SH "SYNOPSIS" 
7 .PP 
8 \fBtestprns\fP printername [printcapname]
9 .PP 
10 .SH "DESCRIPTION" 
11 .PP 
12 This program is part of the \fBSamba\fP suite\&.
13 .PP 
14 \fBtestprns\fP is a very simple test program to determine whether a
15 given printer name is valid for use in a service to be provided by
16 \fBsmbd\fP\&.
17 .PP 
18 "Valid" in this context means "can be found in the printcap
19 specified"\&. This program is very stupid - so stupid in fact that it
20 would be wisest to always specify the printcap file to use\&.
21 .PP 
22 .SH "OPTIONS" 
23 .PP 
24 .IP 
25 .IP "\fBprintername\fP" 
26 The printer name to validate\&.
27 .IP 
28 Printer names are taken from the first field in each record in the
29 printcap file, single printer names and sets of aliases separated by
30 vertical bars ("|") are recognised\&. Note that no validation or
31 checking of the printcap syntax is done beyond that required to
32 extract the printer name\&. It may be that the print spooling system is
33 more forgiving or less forgiving than \fBtestprns\fP\&. However, if
34 \fBtestprns\fP finds the printer then \fBsmbd\fP should
35 do so as well\&.
36 .IP 
37 .IP "\fBprintcapname\fP" 
38 This is the name of the printcap file within
39 which to search for the given printer name\&.
40 .IP 
41 If no printcap name is specified \fBtestprns\fP will attempt to scan the
42 printcap file name specified at compile time\&.
43 .IP 
44 .PP 
45 .SH "FILES" 
46 .PP 
47 \fB/etc/printcap\fP This is usually the default printcap file to
48 scan\&. See \fBprintcap (5)\fP\&.
49 .PP 
50 .SH "DIAGNOSTICS" 
51 .PP 
52 If a printer is found to be valid, the message "Printer name
53 <printername> is valid" will be displayed\&.
54 .PP 
55 If a printer is found to be invalid, the message "Printer name
56 <printername> is not valid" will be displayed\&.
57 .PP 
58 All messages that would normally be logged during operation of the
59 \fBSamba\fP daemons are logged by this program to the
60 file \f(CWtest\&.log\fP in the current directory\&. The program runs at
61 debuglevel 3, so quite extensive logging information is written\&. The
62 log should be checked carefully for errors and warnings\&.
63 .PP 
64 Other messages are self-explanatory\&.
65 .PP 
66 .SH "SEE ALSO" 
67 .PP 
68 \fBprintcap (5)\fP, \fBsmbd (8)\fP, \fBsmbclient
69 (1)\fP
70 .PP 
71 .SH "AUTHOR" 
72 .PP 
73 The original Samba software and related utilities were created by
74 Andrew Tridgell \fIsamba-bugs@samba\&.anu\&.edu\&.au\fP\&. Samba is now developed
75 by the Samba Team as an Open Source project similar to the way the
76 Linux kernel is developed\&.
77 .PP 
78 The original Samba man pages were written by Karl Auer\&. The man page
79 sources were converted to YODL format (another excellent piece of Open
80 Source software, available at
81 \fBftp://ftp\&.icce\&.rug\&.nl/pub/unix/\fP)
82 and updated for the Samba2\&.0 release by Jeremy Allison\&.
83 \fIsamba-bugs@samba\&.anu\&.edu\&.au\fP\&.
84 .PP 
85 See \fBsamba (7)\fP to find out how to get a full
86 list of contributors and details on how to submit bug reports,
87 comments etc\&.