2 <!-- SECTION: References -->
4 <TITLE>snmp.conf
</TITLE>
8 <P>The
<VAR>/etc/cups/snmp.conf
</VAR> file contains several
9 directives that determine how the SNMP printer discovery backend
10 behaves. Each directive is listed on a line by itself followed
11 by its value. Comments are introduced using the number sign (
"#")
12 character at the beginning of a line.
</P>
14 <P>The SNMP backend uses the SNMPv1 protocol to discover network
15 printers, collecting information from the Host MIB along with
16 intelligent port probes to determine the correct device URI and
17 make and model for each printer. Future versions of CUPS will
18 likely support the new Port Monitor MIB as well.
</P>
20 <H2 CLASS=
"title"><A NAME=
"Address">Address
</A></H2>
27 Address
255.255.255.255
33 <P>The
<CODE>Address
</CODE> directive specifies a broadcast
34 address to use when discovering printers. Multiple
35 <CODE>Address
</CODE> lines can be provided to scan different
38 <P>The default address is
<VAR>@LOCAL
</VAR>, which broadcasts to
42 <H2 CLASS=
"title"><A NAME=
"Community">Community
</A></H2>
54 <P>The
<CODE>Community
</CODE> directive specifies a community
55 name to use when discovering printers. Multiple
56 <CODE>Community
</CODE> lines can be provided to scan different
59 <P>The default community is
"public".
</P>
62 <H2 CLASS=
"title"><A NAME=
"DebugLevel">DebugLevel
</A></H2>
75 <P>The
<CODE>DebugLevel
</CODE> directive specifies the debugging
76 level to use when searching for network printers. Level
0
77 produces no debugging information. Level
1 produces basic
78 debugging information. Level
2 adds printing of the SNMP
79 messages. Level
3 adds a hex dump of the network data.
</P>
81 <P>The default setting is
<VAR>0</VAR>.
</P>
83 <H2 CLASS=
"title"><A NAME=
"DeviceURI">DeviceURI
</A></H2>
88 DeviceURI
"HP.*JetDirect.*" socket://%s:
9100 socket://%s:
9101 socket://%s:
9102
89 DeviceURI
"HP.*" socket://%s
90 DeviceURI
"Acme.*Laser.*" lpd://%s/print
96 <P>The
<CODE>DeviceURI
</CODE> directive specifies a regular expression
97 (enclosed in double quotes) that is matched against the SNMP device
98 description OID returned by a printer. If the description matches the
99 regular expression, each device URI that follows the regular expression
100 is listed by the backend, with any occurrences of
<CODE>%s
</CODE>
101 replaced by the device's hostname or IP address. If no URIs are listed,
102 the device is ignored.
</P>
104 <P>The
<CODE>DeviceURI
</CODE> directives are processed serially in
105 the order specified in the
<VAR>snmp.conf
</VAR> file until a match
109 <H2 CLASS=
"title"><A NAME=
"HostNameLookups">HostNameLookups
</A></H2>
113 <PRE CLASS=
"command">
120 <P>The
<CODE>HostNameLookups
</CODE> directive specifies whether printer
121 addresses are converted to hostnames or left as numeric IP addresses.
</P>
123 <P>The default setting is
<VAR>off
</VAR>.
</P>
125 <H2 CLASS=
"title"><A NAME=
"MaxRunTime">MaxRunTime
</A></H2>
129 <PRE CLASS=
"command">
136 <P>The
<CODE>MaxRunTime
</CODE> directive specifies the maxium
137 number of seconds that the SNMP backend will spend looking for
138 printer devices on the network.
</P>
140 <P>The default setting is
<VAR>10</VAR>.
</P>