Menu

prmonsnmp manual

Dirk Krause
← Previous ↑ Home → Next

prmonsnmp — Monitor printer

Synopsis

prmonsnmp [_options_] _printer_

The printer is specified by host name or IP address.


Description

The program uses the SNMP protocol to periodically retrieve the

  • hrDeviceStatus
  • hrPrinterStatus
  • hrPrinterDetectedErrorState
  • prtMarkerLifeCount
  • prtConsoleDisplayBufferText

OIDs and reports changes.

The hrPrinterDetectedErrorState value is shown both as bits array and as text.

Use IP address or host name to specify the printer.

Prmonsnmp can be used for two purposes:

  • Finding information desired to build an SNMP model for the [pjsnmp] program.
  • Monitoring a printer.

Options

Option Purpose
-v version SNMP version, one from "1", "2c", "2" (same as 2c) and "3". Default: 1.
-c name SNMP community name, default: "public".
-t number Timeout in seconds for exiting automatically. Default: endless (until interrupted by INT or TERM signal).
-n No grace period of 250ms between SNMP queries.
--help Show help text.
--version Show version information.
--license Show license information.

Exit status

0 on success, all other status codes indicate an error.


Restrictions

The program is not available on Windows platforms.

This is a simple program: All texts are shown in English, the program is not relocatable.


Notes

This program uses DK libraries version 4.

Non-ASCII characters in the prtConsoleDisplayBufferText value are replaced by question marks "?" when writing the text.


← Previous ↑ Home → Next

Related

Wiki: pjsnmp
Wiki: prmonsnmp