2 <!-- SECTION: References -->
4 <TITLE>snmp.conf
</TITLE>
5 <LINK REL=
"STYLESHEET" TYPE=
"text/css" HREF=
"../cups-printable.css">
9 <H1 CLASS=
"title">snmp.conf
</H1>
11 <P>The
<VAR>/etc/cups/snmp.conf
</VAR> file contains several
12 directives that determine how the SNMP printer discovery backend
13 behaves. Each directive is listed on a line by itself followed
14 by its value. Comments are introduced using the number sign (
"#")
15 character at the beginning of a line.
</P>
17 <P>The SNMP backend uses the SNMPv1 protocol to discover network
18 printers, collecting information from the Host MIB along with
19 intelligent port probes to determine the correct device URI and
20 make and model for each printer. Future versions of CUPS will
21 likely support the new Port Monitor MIB as well.
</P>
23 <H2 CLASS=
"title"><A NAME=
"Address">Address
</A></H2>
30 Address
255.255.255.255
36 <P>The
<CODE>Address
</CODE> directive specifies a broadcast
37 address to use when discovering printers. Multiple
38 <CODE>Address
</CODE> lines can be provided to scan different
41 <P>The default address is
<VAR>@LOCAL
</VAR>, which broadcasts to
45 <H2 CLASS=
"title"><A NAME=
"Community">Community
</A></H2>
57 <P>The
<CODE>Community
</CODE> directive specifies a community
58 name to use when discovering printers and reporting status and supply
59 levels for network printers.
</P>
61 <P>The default community is
"public".
</P>
64 <H2 CLASS=
"title"><A NAME=
"DebugLevel">DebugLevel
</A></H2>
77 <P>The
<CODE>DebugLevel
</CODE> directive specifies the debugging
78 level to use when searching for network printers. Level
0
79 produces no debugging information. Level
1 produces basic
80 debugging information. Level
2 adds printing of the SNMP
81 messages. Level
3 adds a hex dump of the network data.
</P>
83 <P>The default setting is
<VAR>0</VAR>.
</P>
85 <H2 CLASS=
"title"><A NAME=
"DeviceURI">DeviceURI
</A></H2>
90 DeviceURI
"HP.*JetDirect.*" socket://%s:
9100 socket://%s:
9101 socket://%s:
9102
91 DeviceURI
"HP.*" socket://%s
92 DeviceURI
"Acme.*Laser.*" lpd://%s/print
98 <P>The
<CODE>DeviceURI
</CODE> directive specifies a regular expression
99 (enclosed in double quotes) that is matched against the SNMP device
100 description OID returned by a printer. If the description matches the
101 regular expression, each device URI that follows the regular expression
102 is listed by the backend, with any occurrences of
<CODE>%s
</CODE>
103 replaced by the device's hostname or IP address. If no URIs are listed,
104 the device is ignored.
</P>
106 <P>The
<CODE>DeviceURI
</CODE> directives are processed serially in
107 the order specified in the
<VAR>snmp.conf
</VAR> file until a match
111 <H2 CLASS=
"title"><A NAME=
"HostNameLookups">HostNameLookups
</A></H2>
115 <PRE CLASS=
"command">
122 <P>The
<CODE>HostNameLookups
</CODE> directive specifies whether printer
123 addresses are converted to hostnames or left as numeric IP addresses.
</P>
125 <P>The default setting is
<VAR>off
</VAR>.
</P>
127 <H2 CLASS=
"title"><A NAME=
"MaxRunTime">MaxRunTime
</A></H2>
131 <PRE CLASS=
"command">
138 <P>The
<CODE>MaxRunTime
</CODE> directive specifies the maximum
139 number of seconds that the SNMP backend will spend looking for
140 printer devices on the network.
</P>
142 <P>The default setting is
<VAR>10</VAR>.
</P>