Ad Widget

Collapse

generic template for printers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • larieu
    Junior Member
    • Nov 2023
    • 2

    #1

    generic template for printers

    It might be useful for someone out there

    https://github.com/zabbix/community-...iscussions/310

    When I started I have found no useful information where to start and how to modify something for my needs.

    From my previous experience with printers I know that a huge amount of printers have the same structure on SNMP ( not only HP )
    At the end of the day it is only a matter to match the proper SNMP OID to the template and have some ON/OFF switches for what is available on that particular printer ( for advanced features )

    if your printer is responding well to this

    Code:
    snmpwalk -v 2c -On -c your_community aaa.bbb.ccc.ddd .1.3.6.1.2.1.43 | grep "1.3.6.1.2.1.43.11.1.1.6\|1.3.6.1.2.1.43.11.1.1.8\|1.3.6.1.2.1.43.11.1.1.9"

    as per:

    .1.3.6.1.2.1.43.11.1.1.6​

    - prtMarkerSuppliesDescription

    1.3.6.1.2.1.43.11.1.1.8

    - prtMarkerSuppliesMaxCapacity

    1.3.6.1.2.1.43.11.1.1.9

    - prtMarkerSuppliesLevel

    it should be easy to have a "generic printer template" with few variables ( $printername, $black, $cyan, $yellow, $magenta ) to generate a template for that particular printer​
  • Mitchpeter
    Junior Member
    • Nov 2022
    • 8

    #2
    I though about trying to develop a discovery template for some of this sort of thing. I am at a school where we have Lexmark printers and Fuji copiers, and a lot of the marker supplies OIDs have different meanings between different companies. There is even a Fuji copier with two black toner cartridges; the two cartridge levels have different OIDs from the black level in copiers with a single cartridge.
    However I finished up with about 6 templates that adequately cover the printers we have.

    Comment

    • larieu
      Junior Member
      • Nov 2023
      • 2

      #3
      From my knowledge this should be the starting point

      A printer is the physical device that takes media from an input source, produces marks on that media according to some page description or page control language and puts the result in some output destination, possibly with finishing applied. The information needed in the management of the physical printer and the management of a printing job overlap highly and many of the tasks in each management area require the same or similar information. [STANDARDS-TRACK]

      replaced by
      This document provides definitions of models and manageable objects for printing environments. The objects included in this MIB apply to physical, as well as logical entities within a printing device. This document obsoletes RFC 1759. [STANDARDS-TRACK]


      and probably this
      https://www.iana.org/assignments/ian...anaprinter-mib

      There are a lot of things common on all printers
      Unfortunately even the same producer did not stick to a "standard" way to number the cartridges ( it will be nice to have a 1 = black , 2=...)
      This is why it should be a "standard" printer template with several things which are the same
      From my "nice to have list"
      • # This should be on all of the printers

        name: 'Printer model'
        snmp_oid: 1.3.6.1.2.1.25.3.2.1.3.1
        name: 'Printer Serial Number'
        snmp_oid: 1.3.6.1.2.1.43.5.1.1.17.1
        name: 'Page Counter'
        snmp_oid: 1.3.6.1.2.1.43.10.2.1.4.1.1
      • # all color ones should have them - problem is that even the same producer interchange them -

        name: 'Cartridge 1'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.1
        name: 'Cartridge 2'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.2
        name: 'Cartridge 3'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.3
        name: 'Level Cartridge 4 in %'
        name: 'Cartridge 4'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.4

      • # this should be the norm to monitor levels

        name: 'Max cartridge ink level - Cartridge 1'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.8.1.1
        name: 'Current cartridge ink level - Cartridge 1'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.9.1.1
        name: 'Max cartridge ink level - Cartridge 2'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.8.1.2
        name: 'Current cartridge ink level - Cartridge 2'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.9.1.2
        name: 'Max cartridge ink level - Cartridge 3'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.8.1.3
        name: 'Current cartridge ink level - Cartridge 3'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.9.1.3
        name: 'Max cartridge ink level - Cartridge 4'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.8.1.4
        name: 'Current cartridge ink level - Cartridge 4'
        snmp_oid: 1.3.6.1.2.1.43.11.1.1.9.1.4
      • ## also nice to have
        • name: 'DevStatus'
          snmp_oid: 1.3.6.1.2.1.25.3.2.1.5.1
          ##### Printer Operational status like Up, Down or Warning (named device status)
        • name: 'PrnStatus'
          snmp_oid: 1.3.6.1.2.1.25.3.5.1.1.1

          ##### Printer Current status like idle, printing, or warmup
        • name: 'PrnErrState'
          snmp_oid: 1.3.6.1.2.1.25.3.5.1.2.1

          ##### something like lowPaper, noPaper, noToner, doorOpen, jammed, offline
        • name: 'PrnConsoleDisplayBufferText'
          snmp_oid: 1.3.6.1.2.1.43.16.5.1.2.1.1

          ##### The content of a line in the logical display buffer of the operator's console of the printer like "Sleep mode on"​​


      plus a lot of things for the consumables



      Last edited by larieu; 15-12-2023, 11:47.

      Comment

      Working...