#!/bin/sh
# .1.3.6.1.4.enterprises.hp.nm.system.net_peripheral.net_printer.generalDeviceStatus.gdStatusDisplay.0
DISPLAY=.1.3.6.1.4.1.11.2.3.9.1.1.3.0
# .1.3.6.1.4.enterprises.hp.nm.system.net_peripheral.net_printer.generalDeviceStatus.gdStatusJobName.0
JOB=.1.3.6.1.4.1.11.2.3.9.1.1.4.0
# system.sysUptime.0
UPTIME=.1.3.6.1.2.1.1.3.0
# printmib.prtMarker.prtMarkerTable.prtMarkerEntry.prtMarkerLifeCount.1.1 = 17901
MARKER=.1.3.6.1.2.1.43.10.2.1.4.1.1
# host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus
STATUS=.1.3.6.1.2.1.25.3.2.1.5.1
DUPLEX=.1.3.6.1.2.1.43.13.4.1.10.1.2
#
echo 'uptime, front-panel display, current job, pages printed (for all time), operational status'
# MIBS=: export MIBS
MIBS=HOST-RESOURCES-MIB export MIBS
for i in "$@"
do
  echo "$i"
  snmpget -v 1 "$i" public $UPTIME $DISPLAY $JOB $MARKER $STATUS $DUPLEX
done
