snmp.conf(5) OpenPrinting snmp.conf(5)

# [NAME](#NAME)

snmp.conf - snmp configuration file for cups (deprecated)

# [DESCRIPTION](#DESCRIPTION)

The **snmp.conf** file configures how the standard CUPS network backends (http, https, ipp, ipps, lpd, snmp, and socket) access printer information using SNMPv1 and is normally located in the */etc/cups* directory. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character.

The Community and DebugLevel directives are used by all backends. The remainder apply only to the SNMP backend - [**cups-snmp**(8)](/man/os/cups/cups-snmp.8).

# [DIRECTIVES](#DIRECTIVES)

The following directives are understood by the CUPS network backends:

[**Address @IF(name)**](#Address)

[**Address @LOCAL**](#Address~2)

[**Address address**](#Address~3)

Sends SNMP broadcast queries (for discovery) to the specified address(es). There is no default for the broadcast address.

[**Community name**](#Community)

Specifies the community name to use. Only a single community name may be specified. The default community name is "public". If no name is specified, all SNMP functions are disabled.

[**DebugLevel number**](#DebugLevel)

Specifies the logging level from 0 (none) to 3 (everything). Typically only used for debugging (thus the name). The default debug level is 0.

[**DeviceURI "regular expression" device-uri** \[... *device-uri*\]](#DeviceURI)

Specifies one or more device URIs that should be used for a given make and model string. The regular expression is used to match the detected make and model, and the device URI strings must be of the form "scheme://%s\[:port]/\[path]", where "%s" represents the detected address or hostname. There are no default device URI matching rules.

[**HostNameLookups on**](#HostNameLookups)

[**HostNameLookups off**](#HostNameLookups~2)

Specifies whether the addresses of printers should be converted to hostnames or left as numeric IP addresses. The default is "off".

[**MaxRunTime seconds**](#MaxRunTime)

Specifies the maximum number of seconds that the SNMP backend will scan the network for printers. The default is 120 seconds (2 minutes).

# [NOTES](#NOTES)

CUPS backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as [**ippeveprinter**(1)](/man/os/cups/ippeveprinter.1).

# [SEE ALSO](#SEE_ALSO)

[**cups-snmp**(8)](/man/os/cups/cups-snmp.8), CUPS Online Help (http://localhost:631/help)

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2020-2024 by OpenPrinting.

CUPS 2021-02-28

---

Document: cups-snmp.conf(5) from cups 2.4.20-r0 (Chainguard OS)
Source: https://github.com/OpenPrinting/cups
