snmp.conf(5)

πŸ“¦
version 2.4.19 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ snmp.conf β€” the snmp configuration file for cups (deprecated, bestie 😭) ✨

okay so this is snmp.conf, from section 5 of the manual (that's the "file formats" girlies πŸ’…), and it's the snmp configuration file for cups. heads up tho β€” she's deprecated, so read the NOTES before you fall in love πŸ₯²


πŸ’– NAME πŸ’–

snmp.conf β€” snmp configuration file for cups (deprecated, no cap)


🌸 DESCRIPTION 🌸

So the snmp.conf file is literally the vibe-setter for how the standard CUPS network backends β€” that's http, https, ipp, ipps, lpd, snmp, and socket β€” go get printer information using SNMPv1 πŸ–¨οΈβœ¨

She normally lives in the /etc/cups directory. that's her home. her address. 🏠

Every single line in the file can be one of three things:

  1. a configuration directive (the main character πŸ‘‘)
  2. a blank line (resting, as she deserves 😌)
  3. a comment (and comment lines start with the # character β€” # is the "not me talking rn" symbol)

Now, here's the tea β˜•: the Community and DebugLevel directives are used by all the backends, they're everybody's bestie. The remainder? They apply only to the SNMP backend β€” cups-snmp(8). exclusive. private. iykyk 🀫


πŸŽ€ DIRECTIVES πŸŽ€

The following directives are understood by the CUPS network backends:

  • Address @IF(name)
  • Address @LOCAL
  • Address address β€” Sends SNMP broadcast queries (for discovery πŸ”) to the specified address(es). There is no default for the broadcast address. so if you want her to yell into the void, you gotta tell her where the void is πŸ“’
  • Community name β€” Specifies the community name to use. Only a single community name may be specified β€” she's monogamous, one and done πŸ’œ The default community name is "public". And if no name is specified at all? then all SNMP functions are disabled. ghosted. blocked. unavailable. πŸ’€
  • DebugLevel number β€” Specifies the logging level from 0 (none) to 3 (everything). Typically only used for debugging (thus the name, so clever πŸ™ˆ). The default debug level is 0.
  • DeviceURI "regular expression" device-uri [... device-uri] β€” 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 β€” you're building this from scratch, bestie, and that's iconic πŸ› οΈβœ¨
  • HostNameLookups on
  • HostNameLookups off β€” Specifies whether the addresses of printers should be converted to hostnames or left as numeric IP addresses. The default is "off".
  • MaxRunTime seconds β€” Specifies the maximum number of seconds that the SNMP backend will scan the network for printers. The default is 120 seconds (2 minutes ⏱️). girl has a curfew.

πŸ‘‘ NOTES πŸ‘‘

CUPS backends are deprecated and will no longer be supported in a future feature release of CUPS. 😭 this is not a drill, this is a real warning.

Printers that do not support IPP can be supported using applications such as ippeveprinter(1) β€” so there's a glow-up path, don't panic 🫢


πŸ¦‹ SEE ALSO πŸ¦‹


Copyright Β© 2020-2024 by OpenPrinting.


and that's the whole page, bestie 🌈 this was snmp.conf(5) from OpenPrinting, dated 2021-02-28, and it's filed under CUPS β€” stay hydrated, stay deprecated-aware, and go read those NOTES one more time fr fr πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from