]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/ref-snmp-conf.html
Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / doc / help / ref-snmp-conf.html
CommitLineData
89d46774 1<HTML>
2<!-- SECTION: References -->
3<HEAD>
4 <TITLE>snmp.conf</TITLE>
5</HEAD>
6<BODY>
7
8<P>The <VAR>/etc/cups/snmp.conf</VAR> file contains several
9directives that determine how the SNMP printer discovery backend
10behaves. Each directive is listed on a line by itself followed
11by its value. Comments are introduced using the number sign ("#")
12character at the beginning of a line.</P>
13
14<P>The SNMP backend uses the SNMPv1 protocol to discover network
15printers, collecting information from the Host MIB along with
16intelligent port probes to determine the correct device URI and
17make and model for each printer. Future versions of CUPS will
18likely support the new Port Monitor MIB as well.</P>
19
20<H2 CLASS="title"><A NAME="Address">Address</A></H2>
21
22<H3>Examples</H3>
23
24<PRE CLASS="command">
25Address @LOCAL
26Address @IF(name)
27Address 255.255.255.255
28Address 192.168.2.255
29</PRE>
30
31<H3>Description</H3>
32
33<P>The <CODE>Address</CODE> directive specifies a broadcast
34address to use when discovering printers. Multiple
35<CODE>Address</CODE> lines can be provided to scan different
36subnets.</P>
37
38<P>The default address is <VAR>@LOCAL</VAR>, which broadcasts to
39all LANs.</P>
40
41
42<H2 CLASS="title"><A NAME="Community">Community</A></H2>
43
44<H3>Examples</H3>
45
46<PRE CLASS="command">
47Community public
48Community easysw
49Community BigCorp
50</PRE>
51
52<H3>Description</H3>
53
54<P>The <CODE>Community</CODE> directive specifies a community
55name to use when discovering printers. Multiple
56<CODE>Community</CODE> lines can be provided to scan different
57SNMP communities.</P>
58
59<P>The default community is "public".</P>
60
61
62<H2 CLASS="title"><A NAME="DebugLevel">DebugLevel</A></H2>
63
64<H3>Examples</H3>
65
66<PRE CLASS="command">
67DebugLevel 0
68DebugLevel 1
69DebugLevel 2
70DebugLevel 3
71</PRE>
72
73<H3>Description</H3>
74
75<P>The <CODE>DebugLevel</CODE> directive specifies the debugging
76level to use when searching for network printers. Level 0
77produces no debugging information. Level 1 produces basic
78debugging information. Level 2 adds printing of the SNMP
79messages. Level 3 adds a hex dump of the network data.</P>
80
81<P>The default setting is <VAR>0</VAR>.</P>
82
b94498cf 83<H2 CLASS="title"><A NAME="DeviceURI">DeviceURI</A></H2>
84
85<H3>Examples</H3>
86
87<PRE CLASS="command">
88DeviceURI "HP.*JetDirect.*" socket://%s:9100 socket://%s:9101 socket://%s:9102
89DeviceURI "HP.*" socket://%s
90DeviceURI "Acme.*Laser.*" lpd://%s/print
91DeviceURI "Xerox.*"
92</PRE>
93
94<H3>Description</H3>
95
96<P>The <CODE>DeviceURI</CODE> directive specifies a regular expression
97(enclosed in double quotes) that is matched against the SNMP device
98description OID returned by a printer. If the description matches the
99regular expression, each device URI that follows the regular expression
100is listed by the backend, with any occurrences of <CODE>%s</CODE>
101replaced by the device's hostname or IP address. If no URIs are listed,
102the device is ignored.</P>
103
104<P>The <CODE>DeviceURI</CODE> directives are processed serially in
105the order specified in the <VAR>snmp.conf</VAR> file until a match
106is found.</P>
107
108
89d46774 109<H2 CLASS="title"><A NAME="HostNameLookups">HostNameLookups</A></H2>
110
111<H3>Examples</H3>
112
113<PRE CLASS="command">
114HostNameLookups on
115HostNameLookups off
116</PRE>
117
118<H3>Description</H3>
119
120<P>The <CODE>HostNameLookups</CODE> directive specifies whether printer
121addresses are converted to hostnames or left as numeric IP addresses.</P>
122
123<P>The default setting is <VAR>off</VAR>.</P>
124
d09495fa 125<H2 CLASS="title"><A NAME="MaxRunTime">MaxRunTime</A></H2>
126
127<H3>Examples</H3>
128
129<PRE CLASS="command">
130MaxRunTime 10
131MaxRunTime 300
132</PRE>
133
134<H3>Description</H3>
135
136<P>The <CODE>MaxRunTime</CODE> directive specifies the maxium
137number of seconds that the SNMP backend will spend looking for
138printer devices on the network.</P>
139
140<P>The default setting is <VAR>10</VAR>.</P>
141
89d46774 142</BODY>
143</HTML>