File: snmp_printer_status.conf

package info (click to toggle)
ifhp 3.5.20-14
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 7,636 kB
  • ctags: 2,183
  • sloc: ansic: 15,006; sh: 12,037; perl: 1,461; makefile: 640; sed: 16
file content (284 lines) | stat: -rw-r--r-- 13,671 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
[snmp_params]
    community="public"
    timeout="2" 
    retries="2"

[comments]

HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: HP LaserJet 2200
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceDescr.1 = STRING: HP LaserJet 2200
.1.3.6.1.2.1.25.3.2.1.3.1 = STRING: HP LaserJet 2200
    A textual description of this device, including the device's
    manufacturer and revision, and optionally, its serial number.

    DEVICEDESCR=HP LaserJet 2200
    

Printer-MIB::prtGeneralPrinterName.1 = STRING: "HP LaserJet 2200"
.iso.org.dod.internet.mgmt.mib-2.printmib.prtGeneral.prtGeneralTable.prtGeneralEntry.prtGeneralPrinterName.1 = STRING: "HP LaserJet 2200"
.1.3.6.1.2.1.43.5.1.1.16.1 = STRING: "HP LaserJet 2200"
    An administrator-specified name for this printer. Depending
    upon implementation of this printer, the value of this
    object may or may not be same as the value for the MIB-II
    'SysName' object.

    PRINTERNAME=HP LaserJet 2200


HOST-RESOURCES-MIB::hrDeviceStatus.1 = INTEGER:
   unknown(1), running(2), warning(3), testing(4), down(5)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.1 = INTEGER: running(2)
.1.3.6.1.2.1.25.3.2.1.5.1 = INTEGER: running(2)

    The current operational state of the device described by
    this row of the table.  A value unknown(1) indicates that
    the current state of the device is unknown.  running(2)
    indicates that the device is up and running and that no
    unusual error conditions are known.  The warning(3) state
    indicates that agent has been informed of an unusual error
    condition by the operational software (e.g., a disk device
    driver) but that the device is still 'operational'.  An
    example would be a high number of soft errors on a disk.
    A value of testing(4), indicates that the device is not
    available for use because it is in the testing state.  The
    state of down(5) is used only when the agent has been
    informed that the device is not available for any use.

    DEVICESTATUS=running

HOST-RESOURCES-MIB::hrPrinterStatus.1 = INTEGER:
   other(1), unknown(2), idle(3), printing(4), warmup(5)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrPrinterTable.hrPrinterEntry.hrPrinterStatus.1 = INTEGER: idle(3)
.1.3.6.1.2.1.25.3.5.1.1.1 = INTEGER: idle(3)
    The current status of this printer device.

    PRINTERSTATUS=idle

Printer-MIB::prtMarkerLifeCount.1.1 = Counter32: 93118
.iso.org.dod.internet.mgmt.mib-2.printmib.prtMarker.prtMarkerTable.prtMarkerEntry.prtMarkerLifeCount.1.1 = Counter32: 93118
.1.3.6.1.2.1.43.10.2.1.4.1.1 = Counter32: 93118
    prtmarkerlifecount OBJECT-TYPE
    SYNTAX  INTEGER
    ACCESS  read-only
    STATUS  optional
    DESCRIPTION
                "The count of the number of units of measure counted during
        the life of printer using units of measure as specified by
        prtMarkerCounterUnit.
        Refer to ftp://ftp.pwg.org/pub/pwg/pmp/drafts/pmib_031698.txt,
                for more details in the Standard Printer MIB.
                Additional information:
                Replaces PML TOTAL-ENGINE-PAGE-COUNT.
                The total engine page count is kept in NVRAM however
                the NVRAM value is only updated every 10 impressions.
                NOTE: The value returned by this OID will be incremented
                every page but if power is lost between NVRAM updates,
                up to 9 impressions of the page count may be lost.  The
                counter will be reset to zero after 999999 pages.
                The page count is incremented when a sheet of media is
                pulled from an input tray. A duplex printed sheet will
                cause this counter to be incremented by two."

    PAGECOUNT=93118

Printer-MIB::prtConsoleDisplayBufferText.1.1 = STRING: "READY               "
.iso.org.dod.internet.mgmt.mib-2.printmib.prtConsoleDisplayBuffer.prtConsoleDisplayBufferTable.prtConsoleDisplayBufferEntry.prtConsoleDisplayBufferText.1.1 = STRING: "READY               "
.1.3.6.1.2.1.43.16.5.1.2.1.1 = STRING: "READY               "
    The content of a line in the logical display buffer of the
    operator's console of the printer.  When a write operation
    occurs, normally a critical message, to one of the LineText
    strings, the agent should make that line displayable if a
    physical display is present.  Writing a zero length string
    clears the line.  It is an implementation-specific matter
    as to whether the agent allows a line to be overwritten
    before it has been cleared. Printer generated strings shall
    be in the localization specified by prtConsoleLocalization.
    Management Application generated strings should be localized
    by the Management Application.

    STATUS=READY

Printer-MIB::prtAlertSeverityLevel.1.1 = INTEGER: warning(4)
.iso.org.dod.internet.mgmt.mib-2.printmib.prtAlert.prtAlertTable.prtAlertEntry.prtAlertSeverityLevel.1.1 = INTEGER: warning(4)
.1.3.6.1.2.1.43.18.1.1.2.1.1 = INTEGER: warning(4)
          other(1), critical(3), warning(4), warningBinaryChangeEvent(5)
    The level of severity of this alert table entry.  The printer
    determines the severity level assigned to each entry in the
    table. A critical alert is binary by nature and definition. A
    warning is defined to be a non-critical alert. The original and
    most common warning is unary. The binary warning was added later
    and given a more distinguished name.

Printer-MIB::prtAlertGroup.1.3 = INTEGER: mediaPath(13)
.iso.org.dod.internet.mgmt.mib-2.printmib.prtAlert.prtAlertTable.prtAlertEntry.prtAlertGroup.1.3 = INTEGER: mediaPath(13)
.1.3.6.1.2.1.43.18.1.1.4.1.3 = INTEGER: mediaPath(13)
    other(1), hostResourcesMIBStorageTable(3), hostResourcesMIBDeviceTable(4), generalPrinter(5), cover(6),
    localization(7), input(8), output(9), marker(10), markerSupplies(11), markerColorant(12), mediaPath(13),
    channel(14), interpreter(15), consoleDisplayBuffer(16), consoleLights(17), alert(18), finDevice(30),
    finSupply(31), finSupplyMediaInput(32), finAttributeTable(33)

    The type of sub-unit within the printer model that this alert
    is related.  Input, output, and markers are examples of printer
    model groups, i.e., examples of types of sub-units. Wherever
    possible, these enumerations match the sub-identifier that
    identifies the relevant table in the printer MIB.

Printer-MIB::prtAlertDescription.1.3 = STRING: "Power Saver"
.iso.org.dod.internet.mgmt.mib-2.printmib.prtAlert.prtAlertTable.prtAlertEntry.prtAlertDescription.1.3 = STRING: "Power Saver"
.1.3.6.1.2.1.43.18.1.1.8.1.3 = STRING: "Power Saver"

        NOTE: Alert type codes have been added for the host resources
        MIB storage table and device table. These additional types are
        for situations in which the printer's storage and device objects
        must generate alerts (and possibly traps for critical alerts)."

    STATUS=alert SeverityLevel (AlertGroup) AlertDescription
     - if the alert status level is critical

Printer-MIB::prtMarkerPowerOnCount.1.1 = Counter32: 1
.iso.org.dod.internet.mgmt.mib-2.printmib.prtMarker.prtMarkerTable.prtMarkerEntry.prtMarkerPowerOnCount.1.1 = Counter32: 1
.1.3.6.1.2.1.43.10.2.1.5.1.1 = Counter32: 1

    The count of the number of units of measure counted since the
    equipment was most recently powered on using units of measure as
    specified by prtMarkerCounterUnit.

      POWERONCOUNT=1


PCL-TOTAL-PAGE-COUNT        .1.3.6.1.4.1.11.2.3.9.4.2.1.3.3.3.5.0
pcl-total-page-count OBJECT-TYPE
    SYNTAX  INTEGER
    ACCESS  read-only
    STATUS  optional
    DESCRIPTION
                "Total number of PCL pages printed by the device.
                Additional information:
                The PCL page count is kept in
                NVRAM, and the NVRAM value is updated at least every
                10 pages.  NOTE: The value returned by this object will
                be incremented every page but if power is lost between
                NVRAM updates, up to 9 pages of the page count may be
                lost.  The page count counter will be reset to zero
                after 16,777,215 (2^24-1) pages.
                The page count is incremented when a sheet of media is pulled from an input
                tray. A duplex printed sheet will cause this counter to be incremented by
                two."

POSTSCRIPT-TOTAL-PAGE-COUNT .1.3.6.1.4.1.11.2.3.9.4.2.1.3.3.4.5.0 
postscript-total-page-count OBJECT-TYPE
    SYNTAX  INTEGER
    ACCESS  read-only
    STATUS  optional
    DESCRIPTION
                "Total number of PostScript pages printed by the device.
                Additional information:
                This object is only supported if the PostScript
                option is installed.
                In The LJ Series 4000 the count is kept in NVRAM, and the
                NVRAM value is updated at least every 10
                sheets.  NOTE: The value returned by this object will
                be incremented every sheet but if power is lost between
                NVRAM updates up to 9 sheets of the count may be
                lost.  The counter will be reset to zero
                after 16,777,215 (2^24-1) pages. "


DUPLEX-PAGE-COUNT           .1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.22.0 
duplex-page-count OBJECT-TYPE
    SYNTAX  INTEGER
    ACCESS  read-only
    STATUS  optional
    DESCRIPTION
                "Total number of sheets of media that have been duplex
                printed.  A sheet is counted if it travels through the
                duplex page path, regardless of whether or not marks are
                made on the page.  The POS will indicate if the value is
                kept in NVRAM.
                Additional information:
                In The LJ Series 4000 the count is kept in
                NVRAM however the NVRAM value is only updated every 10
                sheets.  NOTE: The value returned by this object will be
                incremented every sheet but if power is lost between
                NVRAM updates up to 9 sheets of the count may be
                lost.  The counter will be reset to zero
                after 16,777,215 (2^24-1) pages. "

Note: from LJ2200 MIB:

TOTAL-ENGINE-PAGE-COUNT     .1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.5.0 
total-engine-page-count OBJECT-TYPE
    SYNTAX  INTEGER
    ACCESS  read-write
    STATUS  optional
    DESCRIPTION
                "Total number of pages printed by the device.  POS
                indicates if the total engine page count is kept in
                NVRAM, and the maximum supported value before the page
                count rolls over to zero.
                Additional information:
                This object is stored in NVRAM.  The maximum value of
                this count is 1000000 before it rolls over to zero."

TOTAL-COLOR-PAGE-COUNT      .1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.7.0 

total-color-page-count OBJECT-TYPE
    SYNTAX  INTEGER
    ACCESS  read-only
    STATUS  optional
    DESCRIPTION

		"Total number of color pages printed by the device.
		Additional information: Any page with one or more
		color pixels is counted as a color page.  Pages
		that only contain black marks are not counted by
		this object.  The valid range of this object is 0
		to 2^24-1.  When the number of color pages printed
		exceeds the maximum color page count, the value
		will roll to zero.  (Realistically, this should
		never happen since that value is mo re than 16 times
		the rated life of the engine.) A duplexed sheet of
		media will cause the counter to be incremented by
		two."

TOTAL-MONO-PAGE-COUNT       .1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.6.0 

[printerdata default]
alert_oid =".1.3.6.1.2.1.43.18.1.1"
alertseveritylevel = ".1.3.6.1.2.1.43.18.1.1.2.1"
alertdescription   = ".1.3.6.1.2.1.43.18.1.1.8.1"
alertgroup         = ".1.3.6.1.2.1.43.18.1.1.4.1"
#pagecount_oid         = ".1.3.6.1.2.1.43.10.2.1.4.1" 
#poweroncount_oid      = ".1.3.6.1.2.1.43.10.2.1.5.1.1"
devicestatus_oid      = ".1.3.6.1.2.1.25.3.2.1.5.1"
printerstatus_oid     = ".1.3.6.1.2.1.25.3.5.1.1.1"
#display_oid          = ".1.3.6.1.2.1.43.16.5.1.2.1.1" 
#  call this the status OID
status_oid            = ".1.3.6.1.2.1.43.16.5.1.2.1.1" 
devicedescr_oid       = ".1.3.6.1.2.1.25.3.2.1.3.1" 
printername_oid       = ".1.3.6.1.2.1.43.5.1.1.16.1"
total_engine_page_count_oid     = ".1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.5"
prtmarkerlifecount_oid          = ".1.3.6.1.2.1.43.10.2.1.4.1.1"
duplex_page_count_oid           = ".1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.22"
pcl_total_page_count_oid        = ".1.3.6.1.4.1.11.2.3.9.4.2.1.3.3.3.5"
postscript_total_page_count_oid = ".1.3.6.1.4.1.11.2.3.9.4.2.1.3.3.4.5"
total_color_page_count_oid      = ".1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.7"
total_mono_page_count_oid       = ".1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.6"

# set this to the list of valid page count oids
pagecounters="total_engine_page_count_oid prtmarkerlifecount_oid"
required="devicestatus_oid printerstatus_oid"


[status devicestatus_oid]
other="1"  unknown="2"  idle="3"  printing="4"  warmup="5"
[status printerstatus_oid ]
other="1" unknown="2" idle="3" printing="4" warmup="5"
[status alertseveritylevel ]
other="1" critical="3" warning="4"
# warningBinaryChangeEvent="5"
statuschange="5"
[status alertgroup ]
other="1" hostResourcesMIBStorageTable="3" hostResourcesMIBDeviceTable="4" generalPrinter="5" cover="6"
localization="7" input="8" output="9" marker="10" markerSupplies="11" markerColorant="12" mediaPath="13"
channel="14" interpreter="15" consoleDisplayBuffer="16" consoleLights="17" alert="18" finDevice="30"